|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--org.enhydra.jdbc.util.JdbcUtil
|
+--org.enhydra.jdbc.core.CoreDataSource
|
+--org.enhydra.jdbc.pool.StandardPoolDataSource
|
+--org.enhydra.jdbc.pool.StandardXAPoolDataSource
StandardXAPoolDataSource class allows to make some operations on XAConnection. It implements PoolHelper for the 3 methods :
create : create an XAConnection
create(user,password) : create a PooledConnection with an other user/password
testThisObject : check if the object is still valid
checkThisObject : check if the object is closed
expire : kill the object
| Field Summary | |
org.apache.commons.logging.Log |
glog
|
javax.transaction.TransactionManager |
transactionManager
|
javax.sql.XADataSource |
xads
|
| Fields inherited from class org.enhydra.jdbc.pool.StandardPoolDataSource |
cpds, dataSourceName, ictx, onOff, pool |
| Fields inherited from class org.enhydra.jdbc.core.CoreDataSource |
logWriter, password, user |
| Fields inherited from class org.enhydra.jdbc.util.JdbcUtil |
log |
| Constructor Summary | |
StandardXAPoolDataSource()
Constructor |
|
StandardXAPoolDataSource(int initSize)
Constructor |
|
StandardXAPoolDataSource(StandardXADataSource ds)
Constructor |
|
StandardXAPoolDataSource(StandardXADataSource ds,
int initSize)
Constructor |
|
| Method Summary | |
void |
connectionClosed(javax.sql.ConnectionEvent event)
Invoked when the application calls close() on its representation of the connection |
GenerationObject |
create(java.lang.String _user,
java.lang.String _password)
|
javax.sql.XADataSource |
getDataSource()
Getter for property dataSource. |
javax.naming.Reference |
getReference()
Retrieves the Reference of this object. |
void |
initContext()
|
void |
setDataSource(javax.sql.XADataSource dataSource)
Setter for property dataSource. |
void |
setTransactionManager(javax.transaction.TransactionManager tm)
|
| Methods inherited from class org.enhydra.jdbc.core.CoreDataSource |
getDescription, getLoginTimeout, getObjectInstance, getPassword, getThreadFactory, getUser, isDebug, isVerbose, setDescription, setLoginTimeout, setPassword, setUser, setVerbose |
| Methods inherited from class org.enhydra.jdbc.util.JdbcUtil |
setLogger |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface javax.sql.DataSource |
getLoginTimeout, setLoginTimeout |
| Field Detail |
public javax.sql.XADataSource xads
public javax.transaction.TransactionManager transactionManager
public org.apache.commons.logging.Log glog
| Constructor Detail |
public StandardXAPoolDataSource()
public StandardXAPoolDataSource(int initSize)
public StandardXAPoolDataSource(StandardXADataSource ds)
public StandardXAPoolDataSource(StandardXADataSource ds,
int initSize)
| Method Detail |
public void setTransactionManager(javax.transaction.TransactionManager tm)
public void initContext()
throws java.sql.SQLException
initContext in class StandardPoolDataSourcejava.sql.SQLExceptionpublic void connectionClosed(javax.sql.ConnectionEvent event)
connectionClosed in interface javax.sql.ConnectionEventListenerconnectionClosed in class StandardPoolDataSource
public GenerationObject create(java.lang.String _user,
java.lang.String _password)
throws java.sql.SQLException
create in interface PoolHelpercreate in class StandardPoolDataSourcejava.sql.SQLException
public javax.naming.Reference getReference()
throws javax.naming.NamingException
getReference in interface javax.naming.ReferenceablegetReference in class StandardPoolDataSourcejavax.naming.NamingException - If a naming exception was encountered while
retrieving the reference.public javax.sql.XADataSource getDataSource()
public void setDataSource(javax.sql.XADataSource dataSource)
dataSource - New value of property dataSource.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||