Save This Page
Home » xapool-1.5.0-src » org.enhydra.jdbc » pool » [javadoc | source]
org.enhydra.jdbc.pool
public class: StandardXAPoolDataSource [javadoc | source]
java.lang.Object
   org.enhydra.jdbc.util.JdbcUtil
      org.enhydra.jdbc.core.CoreDataSource
         org.enhydra.jdbc.pool.StandardPoolDataSource
            org.enhydra.jdbc.pool.StandardXAPoolDataSource

All Implemented Interfaces:
    DataSource, PoolHelper, ConnectionEventListener, Referenceable, Serializable, ObjectFactory

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
public  XADataSource xads     
public  TransactionManager transactionManager     
public  Log glog     
Fields inherited from org.enhydra.jdbc.pool.StandardPoolDataSource:
cpds,  pool,  dataSourceName,  jdbcTestStmt,  onOff,  ictx,  glog
Fields inherited from org.enhydra.jdbc.core.CoreDataSource:
logWriter,  user,  password
Fields inherited from org.enhydra.jdbc.util.JdbcUtil:
log
Constructor:
 public StandardXAPoolDataSource() 
 public StandardXAPoolDataSource(int initSize) 
 public StandardXAPoolDataSource(StandardXADataSource ds) 
    Constructor
 public StandardXAPoolDataSource(StandardXADataSource ds,
    int initSize) 
    Constructor
Method from org.enhydra.jdbc.pool.StandardXAPoolDataSource Summary:
connectionClosed,   create,   getDataSource,   getObjectInstance,   getReference,   setDataSource,   setTransactionManager,   testThisObject,   toString
Methods from org.enhydra.jdbc.pool.StandardPoolDataSource:
checkThisObject,   connectionClosed,   connectionErrorOccurred,   create,   create,   expire,   getCheckLevelObject,   getConnection,   getConnection,   getDataSourceName,   getDeadLockMaxWait,   getDeadLockRetryWait,   getGeneration,   getJdbcTestStmt,   getLifeTime,   getLockedObjectCount,   getLogWriter,   getMaxSize,   getMinSize,   getObjectInstance,   getReference,   getSleepTime,   getUnlockedObjectCount,   isGC,   setCheckLevelObject,   setDataSourceName,   setDeadLockMaxWait,   setDeadLockRetryWait,   setDebug,   setGC,   setGeneration,   setJdbcTestStmt,   setLifeTime,   setLogWriter,   setMaxSize,   setMinSize,   setSleepTime,   setThreadFactory,   shutdown,   stopPool,   testThisObject,   toString
Methods from org.enhydra.jdbc.core.CoreDataSource:
getDescription,   getLogWriter,   getLoginTimeout,   getObjectInstance,   getPassword,   getReference,   getThreadFactory,   getUser,   isDebug,   isVerbose,   setDebug,   setDescription,   setLogWriter,   setLoginTimeout,   setPassword,   setThreadFactory,   setUser,   setVerbose,   shutdown,   toString
Methods from org.enhydra.jdbc.util.JdbcUtil:
setLogger
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.enhydra.jdbc.pool.StandardXAPoolDataSource Detail:
 public  void connectionClosed(ConnectionEvent event) 
    Invoked when the application calls close() on its representation of the connection
 public GenerationObject create(String _user,
    String _password) throws SQLException 
 public XADataSource getDataSource() 
    Getter for property dataSource.
 public Object getObjectInstance(Object refObj,
    Name name,
    Context nameCtx,
    Hashtable env) throws Exception 
 public Reference getReference() throws NamingException 
    Retrieves the Reference of this object. Used at binding time by JNDI to build a reference on this object.
 public  void setDataSource(XADataSource dataSource) 
    Setter for property dataSource.
 public  void setTransactionManager(TransactionManager tm) 
 public boolean testThisObject(Object o) 
    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
 public String toString()