public class StandardXAPoolDataSource extends StandardPoolDataSource
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
| Modifier and Type | Field and Description |
|---|---|
org.apache.commons.logging.Log |
glog |
TransactionManager |
transactionManager |
XADataSource |
xads |
cpds, dataSourceName, ictx, jdbcTestStmt, onOff, poollogWriter, password, user| Constructor and Description |
|---|
StandardXAPoolDataSource()
Constructor
|
StandardXAPoolDataSource(int initSize)
Constructor
|
StandardXAPoolDataSource(StandardXADataSource ds)
Constructor
|
StandardXAPoolDataSource(StandardXADataSource ds,
int initSize)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
connectionClosed(ConnectionEvent event)
Invoked when the application calls close()
on its representation of the connection
|
GenerationObject |
create(String _user,
String _password) |
XADataSource |
getDataSource()
Getter for property dataSource.
|
Object |
getObjectInstance(Object refObj,
Name name,
Context nameCtx,
Hashtable env)
Methods inherited from ObjectFactory
|
Reference |
getReference()
Retrieves the Reference of this object.
|
void |
setDataSource(XADataSource dataSource)
Setter for property dataSource.
|
void |
setTransactionManager(TransactionManager tm) |
boolean |
testThisObject(Object o)
This method tests if a connection is valid or not.
|
String |
toString() |
checkThisObject, connectionErrorOccurred, create, expire, getCheckLevelObject, getConnection, getConnection, getDataSourceName, getDeadLockMaxWait, getDeadLockRetryWait, getGeneration, getJdbcTestStmt, getLifeTime, getLockedObjectCount, getLogWriter, getMaxSize, getMinSize, getParentLogger, getSleepTime, getUnlockedObjectCount, isGC, isWrapperFor, setCheckLevelObject, setDataSourceName, setDeadLockMaxWait, setDeadLockRetryWait, setDebug, setGC, setGeneration, setJdbcTestStmt, setLifeTime, setLogWriter, setMaxSize, setMinSize, setSleepTime, setThreadFactory, shutdown, stopPool, unwrapgetDescription, getLoginTimeout, getPassword, getThreadFactory, getUser, isDebug, isVerbose, setDescription, setLoginTimeout, setPassword, setUser, setVerboseclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetLoginTimeout, setLoginTimeoutpublic XADataSource xads
public TransactionManager transactionManager
public org.apache.commons.logging.Log glog
public StandardXAPoolDataSource()
public StandardXAPoolDataSource(int initSize)
public StandardXAPoolDataSource(StandardXADataSource ds)
public StandardXAPoolDataSource(StandardXADataSource ds, int initSize)
public void setTransactionManager(TransactionManager tm)
public void connectionClosed(ConnectionEvent event)
connectionClosed in interface ConnectionEventListenerconnectionClosed in class StandardPoolDataSourcepublic GenerationObject create(String _user, String _password) throws SQLException
create in interface PoolHelpercreate in class StandardPoolDataSourceSQLExceptionpublic Reference getReference() throws NamingException
getReference in interface ReferenceablegetReference in class StandardPoolDataSourceNamingException - If a naming exception was encountered while
retrieving the reference.public Object getObjectInstance(Object refObj, Name name, Context nameCtx, Hashtable env) throws Exception
CoreDataSourcegetObjectInstance in interface ObjectFactorygetObjectInstance in class StandardPoolDataSourceExceptionpublic XADataSource getDataSource()
public void setDataSource(XADataSource dataSource)
dataSource - New value of property dataSource.public String toString()
toString in interface PoolHelpertoString in class StandardPoolDataSourcepublic boolean testThisObject(Object o)
testThisObject in interface PoolHelpertestThisObject in class StandardPoolDataSourceCopyright © 2014–2015. All rights reserved.