|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.informix.jdbcx.IfxCoreDataSource
com.informix.jdbcx.IfxDataSource
IfxDataSource class is the Informix implementation of javax.sql.DataSource.
DataSource
,
IfxCoreDataSource
,
Serialized FormConstructor Summary | |
IfxDataSource()
Allocates an empty IfxDataSource object. |
|
IfxDataSource(IfxConnectionPoolDataSource lcpds)
Allocates an IfxDataSource object using the properties of the input ConnectionPoolDataSource. |
Method Summary | |
void |
activateHDRPool_Primary()
|
void |
activateHDRPool_Secondary()
|
java.sql.Connection |
getConnection()
Attempts to establish a connection to the data source that this DataSource object represents. |
java.sql.Connection |
getConnection(java.lang.String luser,
java.lang.String lpassword)
Attempts to establish a connection to the data source that this DataSource object represents. |
IfxConnectionPoolDataSource |
getCPDS()
|
int |
getCPMFreeCount()
|
javax.naming.Reference |
getReference()
This method implements the Referenceable interface. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.sql.DataSource |
getLoginTimeout, getLogWriter, setLoginTimeout, setLogWriter |
Constructor Detail |
public IfxDataSource() throws java.sql.SQLException
java.sql.SQLException
- if error is encountered while instantiating
the object.public IfxDataSource(IfxConnectionPoolDataSource lcpds) throws java.sql.SQLException
lcpds
- the ConnectionPoolDataSource object that contains
the properties needed to make the physical connection.
java.sql.SQLException
- if error is encountered while instantiating
the object.IfxConnectionPoolDataSource
Method Detail |
public java.sql.Connection getConnection() throws java.sql.SQLException
getConnection
in interface javax.sql.DataSource
java.sql.SQLException
- if a database-access error occurs.public java.sql.Connection getConnection(java.lang.String luser, java.lang.String lpassword) throws java.sql.SQLException
getConnection
in interface javax.sql.DataSource
java.sql.SQLException
- if a database-access error occurs.public javax.naming.Reference getReference() throws javax.naming.NamingException
getReference
in interface javax.naming.Referenceable
javax.naming.NamingException
public int getCPMFreeCount()
public IfxConnectionPoolDataSource getCPDS()
public void activateHDRPool_Primary() throws java.sql.SQLException
java.sql.SQLException
public void activateHDRPool_Secondary() throws java.sql.SQLException
java.sql.SQLException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |