| |
|
| org.enhydra.jdbc.pool.StandardPoolDataSource org.enhydra.jdbc.pool.StandardXAPoolDataSource
StandardXAPoolDataSource | public class StandardXAPoolDataSource extends StandardPoolDataSource (Code) | | 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
|
transactionManager | public TransactionManager transactionManager(Code) | | |
transactionManagerName | public String transactionManagerName(Code) | | |
StandardXAPoolDataSource | public StandardXAPoolDataSource()(Code) | | Constructor
|
StandardXAPoolDataSource | public StandardXAPoolDataSource(int initSize)(Code) | | Constructor
|
connectionClosed | public void connectionClosed(ConnectionEvent event)(Code) | | Invoked when the application calls close()
on its representation of the connection
|
getDataSource | public XADataSource getDataSource()(Code) | | Getter for property dataSource.
Value of property dataSource. |
getReference | public Reference getReference() throws NamingException(Code) | | Retrieves the Reference of this object. Used at binding time by JNDI
to build a reference on this object.
The non-null Reference of this object. exception: NamingException - If a naming exception was encountered whileretrieving the reference. |
setDataSource | public void setDataSource(XADataSource dataSource)(Code) | | Setter for property dataSource.
Parameters: dataSource - New value of property dataSource. |
setTransactionManager | public void setTransactionManager(TransactionManager tm)(Code) | | |
setTransactionManagerName | public void setTransactionManagerName(String tmName)(Code) | | |
testThisObject | public boolean testThisObject(Object o)(Code) | | This method tests if a connection is valid or not. It overrides the
method in StandardPoolDataSource to take into account global transactions:
if global transaction is in progress - suspend it so that
connection testing happens ouside of transaction.
If connection testing fails - it will not affect transaction
and next good connection can join the transaction
|
|
|
|