|
|||||||||||
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.standard.StandardDataSource
org.enhydra.jdbc.standard.StandardConnectionPoolDataSource
org.enhydra.jdbc.standard.StandardXADataSource
Data source for creating StandardXAConnections.
Field Summary | |
int |
connectionCount
|
long |
deadLockMaxWait
|
long |
deadLockRetryWait
|
static long |
DEFAULT_DEADLOCKMAXWAIT
|
static int |
DEFAULT_DEADLOCKRETRYWAIT
|
static int |
DEFAULT_MAX_CON
|
static int |
DEFAULT_MIN_CON
|
int |
maxCon
|
int |
minCon
|
javax.transaction.TransactionManager |
transactionManager
|
Fields inherited from class org.enhydra.jdbc.standard.StandardConnectionPoolDataSource |
DEFAULT_PREPAREDSTMTCACHESIZE |
Fields inherited from class org.enhydra.jdbc.core.CoreDataSource |
logWriter, password, user |
Fields inherited from class org.enhydra.jdbc.util.JdbcUtil |
log |
Constructor Summary | |
StandardXADataSource()
Constructor |
Method Summary | |
void |
closeFreeConnection()
|
void |
dump()
|
void |
freeConnection(javax.transaction.xa.Xid id,
boolean placeAtStart)
Frees a connection to make it eligible for reuse. |
int |
getAllConnections()
|
int |
getConnectionCount()
|
long |
getDeadLockMaxWait()
|
long |
getDeadLockRetryWait()
|
int |
getMaxCon()
|
int |
getMinCon()
|
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()
Methods inherited from referenceable |
javax.transaction.TransactionManager |
getTransactionManager()
|
javax.sql.XAConnection |
getXAConnection()
Creates an XA connection using the default username and password. |
javax.sql.XAConnection |
getXAConnection(java.lang.String user,
java.lang.String password)
Creates an XA connection using the supplied username and password. |
java.util.Hashtable |
getXidConnections()
|
int |
getXidCount()
Returns the number of connections that are either prepared or heuristically completed. |
void |
processToWait()
|
void |
setDeadLockMaxWait(long deadLock)
|
void |
setDeadLockRetryWait(long deadLockRetryWait)
|
void |
setDriverName(java.lang.String driverName)
set the name of the jdbc driver |
void |
setMaxCon(int max)
|
void |
setMinCon(int min)
|
void |
setPassword(java.lang.String password)
|
void |
setTransactionManager(javax.transaction.TransactionManager tm)
|
void |
setTransactionManagerName(java.lang.String tmName)
|
void |
setUrl(java.lang.String url)
set the database url |
void |
setUser(java.lang.String user)
|
java.lang.String |
toString()
|
Methods inherited from class org.enhydra.jdbc.standard.StandardConnectionPoolDataSource |
getMasterPrepStmtCache, getPooledConnection, getPooledConnection, getPreparedStmtCacheSize, setPreparedStmtCacheSize |
Methods inherited from class org.enhydra.jdbc.standard.StandardDataSource |
equals, getConnection, getConnection, getDriverName, getTransactionIsolation, getUrl, hashCode, setTransactionIsolation |
Methods inherited from class org.enhydra.jdbc.core.CoreDataSource |
getDescription, getLoginTimeout, getLogWriter, getPassword, getThreadFactory, getUser, isDebug, isVerbose, setDebug, setDescription, setLoginTimeout, setLogWriter, setThreadFactory, setVerbose, shutdown |
Methods inherited from class org.enhydra.jdbc.util.JdbcUtil |
setLogger |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface javax.sql.XADataSource |
getLoginTimeout, getLogWriter, setLoginTimeout, setLogWriter |
Methods inherited from interface javax.sql.ConnectionPoolDataSource |
getLoginTimeout, getLogWriter, setLoginTimeout, setLogWriter |
Methods inherited from interface javax.sql.DataSource |
getLoginTimeout, getLogWriter, setLoginTimeout, setLogWriter |
Field Detail |
public int minCon
public int maxCon
public long deadLockMaxWait
public int connectionCount
public long deadLockRetryWait
public transient javax.transaction.TransactionManager transactionManager
public static final int DEFAULT_MIN_CON
public static final int DEFAULT_MAX_CON
public static final long DEFAULT_DEADLOCKMAXWAIT
public static final int DEFAULT_DEADLOCKRETRYWAIT
Constructor Detail |
public StandardXADataSource()
Method Detail |
public int getConnectionCount()
public java.util.Hashtable getXidConnections()
public javax.sql.XAConnection getXAConnection() throws java.sql.SQLException
getXAConnection
in interface javax.sql.XADataSource
java.sql.SQLException
public javax.sql.XAConnection getXAConnection(java.lang.String user, java.lang.String password) throws java.sql.SQLException
getXAConnection
in interface javax.sql.XADataSource
java.sql.SQLException
public void setTransactionManager(javax.transaction.TransactionManager tm)
public javax.transaction.TransactionManager getTransactionManager()
public void setTransactionManagerName(java.lang.String tmName)
public void setUser(java.lang.String user)
setUser
in class CoreDataSource
public void setPassword(java.lang.String password)
setPassword
in class CoreDataSource
public void setUrl(java.lang.String url)
StandardDataSource
setUrl
in class StandardDataSource
url
- the string representation of the database urlpublic void setDriverName(java.lang.String driverName) throws java.sql.SQLException
StandardDataSource
setDriverName
in class StandardDataSource
driverName
- the string representation of the jdbc driver name
java.sql.SQLException
public int getXidCount()
public void freeConnection(javax.transaction.xa.Xid id, boolean placeAtStart)
public void closeFreeConnection()
public void setMinCon(int min)
public void setMaxCon(int max)
public void setDeadLockMaxWait(long deadLock)
public int getMinCon()
public int getMaxCon()
public long getDeadLockMaxWait()
public int getAllConnections()
public void processToWait() throws java.lang.Exception
java.lang.Exception
public void dump()
public void setDeadLockRetryWait(long deadLockRetryWait)
public long getDeadLockRetryWait()
public java.lang.String toString()
toString
in class StandardConnectionPoolDataSource
public javax.naming.Reference getReference() throws javax.naming.NamingException
StandardDataSource
getReference
in interface javax.naming.Referenceable
getReference
in class StandardDataSource
javax.naming.NamingException
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
StandardDataSource
getObjectInstance
in interface javax.naming.spi.ObjectFactory
getObjectInstance
in class StandardDataSource
java.lang.Exception
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |