com.evermind.sql
Class OrionCMTDataSource
java.lang.Object
|
+--com.evermind.sql.OrionPooledDataSource
|
+--com.evermind.sql.OrionCMTDataSource
- All Implemented Interfaces:
- javax.sql.DataSource, com.evermind.util.LoggingDestroyable, java.lang.Runnable, java.io.Serializable
- public class OrionCMTDataSource
- extends OrionPooledDataSource
- implements java.io.Serializable
A DataSource implementation that handles distributed transactions and connection pooling.
It either acts on a vendor-supplied XADataSource implementation or an emulating XADataSource
implementation (DriverManagerXADataSource) provided by Orion.
- See Also:
- Serialized Form
| Methods inherited from class com.evermind.sql.OrionPooledDataSource |
checkIntegrity, destroy, getLocation, getLoginTimeout, getLogWriter, getOpenConnections, getPooledInstance, getPooledInstance, getUserSource, run, setAutoCommit, setConnectionRetryInterval, setDataSource, setDataSourceName, setLocation, setLoginTimeout, setLogWriter, setMaxConnectionAttempts, setMinConnections, setPassword, setUsername, setWaitTimeout, toString |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
nonTXSource
public OrionPooledDataSource nonTXSource
OrionCMTDataSource
public OrionCMTDataSource()
setXADataSource
public void setXADataSource(javax.sql.XADataSource source)
getConnection
public java.sql.Connection getConnection()
throws java.sql.SQLException
- Overrides:
getConnection in class OrionPooledDataSource
getConnection
public java.sql.Connection getConnection(java.lang.String username,
java.lang.String password)
throws java.sql.SQLException
- Overrides:
getConnection in class OrionPooledDataSource
setNonTXDataSource
public void setNonTXDataSource(javax.sql.ConnectionPoolDataSource source)
setNonTXDataSource
public void setNonTXDataSource(javax.sql.DataSource source)
removeCache
public void removeCache()
- Overrides:
removeCache in class OrionPooledDataSource
setTimeout
public void setTimeout(int timeout)
- Overrides:
setTimeout in class OrionPooledDataSource
setMaxConnections
public void setMaxConnections(int maxConnections)
- Overrides:
setMaxConnections in class OrionPooledDataSource
getCachedConnections
public int getCachedConnections()
- Overrides:
getCachedConnections in class OrionPooledDataSource
getUsedConnections
public int getUsedConnections()
- Overrides:
getUsedConnections in class OrionPooledDataSource
getRuntimeInfo
public com.evermind.server.administration.DataSourceRuntimeInfo getRuntimeInfo()
- Overrides:
getRuntimeInfo in class OrionPooledDataSource