public class StandardXADataSource extends StandardConnectionPoolDataSource implements XADataSource
| Modifier and Type | Field and Description |
|---|---|
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 |
TransactionManager |
transactionManager |
DEFAULT_PREPAREDSTMTCACHESIZElogWriter, password, user| Constructor and Description |
|---|
StandardXADataSource()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
closeFreeConnection() |
void |
dump() |
void |
freeConnection(Xid id,
boolean placeAtStart)
Frees a connection to make it eligible for reuse.
|
int |
getAllConnections() |
int |
getConnectionCount() |
long |
getDeadLockMaxWait() |
long |
getDeadLockRetryWait() |
StandardXAStatefulConnection |
getFreeConnection()
Returns a connection from the free list, removing it
in the process.
|
int |
getMaxCon() |
int |
getMinCon() |
TransactionManager |
getTransactionManager() |
XAConnection |
getXAConnection()
Creates an XA connection using the default username and password.
|
XAConnection |
getXAConnection(String user,
String password)
Creates an XA connection using the supplied username and password.
|
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(String driverName)
set the name of the jdbc driver
|
void |
setMaxCon(int max) |
void |
setMinCon(int min) |
void |
setPassword(String password) |
void |
setTransactionManager(TransactionManager tm) |
void |
setUrl(String url)
set the database url
|
void |
setUser(String user) |
String |
toString() |
getMasterPrepStmtCache, getPooledConnection, getPooledConnection, getPreparedStmtCacheSize, setPreparedStmtCacheSizeequals, getConnection, getConnection, getDriverName, getObjectInstance, getParentLogger, getReference, getTransactionIsolation, getUrl, hashCode, isWrapperFor, setTransactionIsolation, unwrapgetDescription, getLoginTimeout, getLogWriter, getPassword, getThreadFactory, getUser, isDebug, isVerbose, setDebug, setDescription, setLoginTimeout, setLogWriter, setThreadFactory, setVerbose, shutdownclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetLoginTimeout, getLogWriter, getParentLogger, setLoginTimeout, setLogWriterpublic int minCon
public int maxCon
public long deadLockMaxWait
public int connectionCount
public long deadLockRetryWait
public transient 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
public int getConnectionCount()
public Hashtable getXidConnections()
public XAConnection getXAConnection() throws SQLException
getXAConnection in interface XADataSourceSQLExceptionpublic XAConnection getXAConnection(String user, String password) throws SQLException
getXAConnection in interface XADataSourceSQLExceptionpublic void setTransactionManager(TransactionManager tm)
public TransactionManager getTransactionManager()
public void setUser(String user)
setUser in class CoreDataSourcepublic void setPassword(String password)
setPassword in class CoreDataSourcepublic void setUrl(String url)
StandardDataSourcesetUrl in class StandardDataSourceurl - the string representation of the database urlpublic void setDriverName(String driverName) throws SQLException
StandardDataSourcesetDriverName in class StandardDataSourcedriverName - the string representation of the jdbc driver nameSQLExceptionpublic int getXidCount()
public void freeConnection(Xid id, boolean placeAtStart)
public StandardXAStatefulConnection getFreeConnection() throws SQLException
SQLExceptionpublic 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 dump()
public void setDeadLockRetryWait(long deadLockRetryWait)
public long getDeadLockRetryWait()
public String toString()
toString in class StandardConnectionPoolDataSourceCopyright © 2014–2015. All rights reserved.