|
Oracle10g JDBC | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectoracle.jdbc.pool.OracleDataSource
oracle.jdbc.pool.OracleConnectionCacheImpl
oracle.jdbc.pool.OracleXAConnectionCacheImpl
Field Summary | |
static java.lang.String |
BUILD_DATE
|
static boolean |
PRIVATE_TRACE
|
static boolean |
TRACE
|
Fields inherited from class oracle.jdbc.pool.OracleDataSource |
isOracleDataSource |
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(javax.sql.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. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.sql.XADataSource |
getLoginTimeout, getLogWriter, setLoginTimeout, setLogWriter |
Methods inherited from interface javax.sql.DataSource |
getLoginTimeout, getLogWriter, setLoginTimeout, setLogWriter |
Field Detail |
public static final boolean TRACE
public static final boolean PRIVATE_TRACE
public static final java.lang.String BUILD_DATE
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.
java.sql.SQLException
- error creating Cachepublic 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.
java.sql.SQLException
- error creating CacheMethod Detail |
public javax.sql.XAConnection getXAConnection() throws java.sql.SQLException
getXAConnection
in interface javax.sql.XADataSource
java.sql.SQLException
- error creating XAConnection Object.public javax.sql.XAConnection getXAConnection(java.lang.String user, java.lang.String passwd) throws java.sql.SQLException
getXAConnection
in interface javax.sql.XADataSource
user
- User name for the connection.passwd
- Password for user.
java.sql.SQLException
- error creating XAConnection Object.public boolean getNativeXA()
public void setNativeXA(boolean nativeXA)
nativeXA
- The nativeXA flag to be set.public void closeActualConnection(javax.sql.PooledConnection xac) throws java.sql.SQLException
Close the XAConnection
java.sql.SQLException
|
Oracle10g JDBC | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |