|
||||||||||
| 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
public class 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
|
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(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()
|
Object |
getObjectInstance(Object refObj,
Name name,
Context nameCtx,
Hashtable env)
Methods inherited from ObjectFactory |
Reference |
getReference()
Methods inherited from referenceable |
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 |
setTransactionManagerName(String tmName)
|
void |
setUrl(String url)
set the database url |
void |
setUser(String user)
|
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.CommonDataSource |
|---|
getLoginTimeout, getLogWriter, setLoginTimeout, setLogWriter |
| Methods inherited from interface java.sql.Wrapper |
|---|
isWrapperFor, unwrap |
| Field Detail |
|---|
public 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
| Constructor Detail |
|---|
public StandardXADataSource()
| Method Detail |
|---|
public int getConnectionCount()
public Hashtable getXidConnections()
public XAConnection getXAConnection()
throws SQLException
getXAConnection in interface XADataSourceSQLException
public XAConnection getXAConnection(String user,
String password)
throws SQLException
getXAConnection in interface XADataSourceSQLExceptionpublic void setTransactionManager(TransactionManager tm)
public TransactionManager getTransactionManager()
public void setTransactionManagerName(String tmName)
public void setUser(String user)
setUser in class CoreDataSourcepublic void setPassword(String password)
setPassword in class CoreDataSourcepublic void setUrl(String url)
StandardDataSource
setUrl in class StandardDataSourceurl - the string representation of the database url
public void setDriverName(String driverName)
throws SQLException
StandardDataSource
setDriverName in class StandardDataSourcedriverName - the string representation of the jdbc driver name
SQLExceptionpublic int getXidCount()
public void freeConnection(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 Exception
Exceptionpublic void dump()
public void setDeadLockRetryWait(long deadLockRetryWait)
public long getDeadLockRetryWait()
public String toString()
toString in class StandardConnectionPoolDataSource
public Reference getReference()
throws NamingException
StandardDataSource
getReference in interface ReferenceablegetReference in class StandardDataSourceNamingException
public Object getObjectInstance(Object refObj,
Name name,
Context nameCtx,
Hashtable env)
throws Exception
StandardDataSource
getObjectInstance in interface ObjectFactorygetObjectInstance in class StandardDataSourceException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||