|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
oracle.jdbc.pool.OracleXAConnectionCacheImpl
Constructor Summary | |
OracleXAConnectionCacheImpl()
Default Constructor. |
|
OracleXAConnectionCacheImpl(javax.sql.ConnectionPoolDataSource cpds)
Create an OracleXAConnectionCacheImpl with the given ConnectionPoolDataSource from which XAConnections have to be created. |
Method Summary | |
void |
closeActualConnection(oracle.jdbc.pool.PooledConnection xac)
Close the XAConnection |
boolean |
getNativeXA()
Return the nativeXA flag setting on this data source. |
javax.sql.XAConnection |
getXAConnection()
Attempt to get a physical XAConnection from the Cache. |
javax.sql.XAConnection |
getXAConnection(java.lang.String user,
java.lang.String passwd)
Attempt to get a physical XAConnection from the Cache. |
void |
setNativeXA(boolean nativeXA)
Set the nativeXA flag to the given value. |
Constructor Detail |
public OracleXAConnectionCacheImpl() throws java.sql.SQLException
Default Constructor. Should have an explicit call to set the URL, User, Password and other DataSource details. A ConnectionPoolDataSource is created with these options from which XAConnections can be created.
public OracleXAConnectionCacheImpl(javax.sql.ConnectionPoolDataSource cpds) throws java.sql.SQLException
Create an OracleXAConnectionCacheImpl with the given ConnectionPoolDataSource from which XAConnections have to be created. In this case, url, user name, password, and other DataSource properties set on this Cache are ignored.
cpds
- a datasource from which the Cache can create
XAConnections.Method Detail |
public javax.sql.XAConnection getXAConnection() throws java.sql.SQLException
public javax.sql.XAConnection getXAConnection(java.lang.String user, java.lang.String passwd) throws java.sql.SQLException
user
- User name for the connection.passwd
- Password for user.public boolean getNativeXA()
public void setNativeXA(boolean nativeXA)
nativeXA
- The nativeXA flag to be set.public void closeActualConnection(oracle.jdbc.pool.PooledConnection xac) throws java.sql.SQLException
Close the XAConnection
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |