|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.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, jdbcTestStmt, 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. |
java.lang.Object |
getObjectInstance(java.lang.Object refObj,
javax.naming.Name name,
javax.naming.Context nameCtx,
java.util.Hashtable env)
Methods inherited from ObjectFactory |
javax.naming.Reference |
getReference()
Retrieves the Reference of this object. |
void |
setDataSource(javax.sql.XADataSource dataSource)
Setter for property dataSource. |
void |
setTransactionManager(javax.transaction.TransactionManager tm)
|
boolean |
testThisObject(java.lang.Object o)
This method tests if a connection is valid or not. |
java.lang.String |
toString()
|
Methods inherited from class org.enhydra.jdbc.core.CoreDataSource |
---|
getDescription, getLoginTimeout, 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 connectionClosed(javax.sql.ConnectionEvent event)
connectionClosed
in interface javax.sql.ConnectionEventListener
connectionClosed
in class StandardPoolDataSource
public GenerationObject create(java.lang.String _user, java.lang.String _password) throws java.sql.SQLException
create
in interface PoolHelper
create
in class StandardPoolDataSource
java.sql.SQLException
public javax.naming.Reference getReference() throws javax.naming.NamingException
getReference
in interface javax.naming.Referenceable
getReference
in class StandardPoolDataSource
javax.naming.NamingException
- If a naming exception was encountered while
retrieving the reference.public java.lang.Object getObjectInstance(java.lang.Object refObj, javax.naming.Name name, javax.naming.Context nameCtx, java.util.Hashtable env) throws java.lang.Exception
CoreDataSource
getObjectInstance
in interface javax.naming.spi.ObjectFactory
getObjectInstance
in class StandardPoolDataSource
java.lang.Exception
public javax.sql.XADataSource getDataSource()
public void setDataSource(javax.sql.XADataSource dataSource)
dataSource
- New value of property dataSource.public java.lang.String toString()
toString
in interface PoolHelper
toString
in class StandardPoolDataSource
public boolean testThisObject(java.lang.Object o)
testThisObject
in interface PoolHelper
testThisObject
in class StandardPoolDataSource
|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |