|
||||||||||
| 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
public class 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
|
TransactionManager |
transactionManager
|
String |
transactionManagerName
|
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(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)
|
void |
setTransactionManagerName(String tmName)
|
boolean |
testThisObject(Object o)
This method tests if a connection is valid or not. |
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.CommonDataSource |
|---|
getLoginTimeout, setLoginTimeout |
| Methods inherited from interface java.sql.Wrapper |
|---|
isWrapperFor, unwrap |
| Field Detail |
|---|
public XADataSource xads
public TransactionManager transactionManager
public String transactionManagerName
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(TransactionManager tm)
public void connectionClosed(ConnectionEvent event)
connectionClosed in interface ConnectionEventListenerconnectionClosed in class StandardPoolDataSource
public GenerationObject create(String _user,
String _password)
throws SQLException
create in interface PoolHelpercreate in class StandardPoolDataSourceSQLException
public 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
CoreDataSource
getObjectInstance 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 StandardPoolDataSourcepublic void setTransactionManagerName(String tmName)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||