wt.pom
Class WTConnection
java.lang.Object
wt.pom.WTConnection
- public class WTConnection
- extends Object
WTConnection provides a datastore connection
- See Also:
PersistentObjectManager
,
TransactionManager
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
pds
private PDSIfc pds
datastoreConnection
private Connection datastoreConnection
transactionMgr
private TransactionManager transactionMgr
encoder
private PDSEncoder encoder
encoderBusy
private boolean encoderBusy
activeStatementCount
private int activeStatementCount
lastTouched
long lastTouched
statementCache
private StatementCache statementCache
statementCacheReference
private SoftReference statementCacheReference
INVALID_OWNER
static int INVALID_OWNER
AVAILABLE
static int AVAILABLE
CLASSNAME
private static final String CLASSNAME
DEBUG
public static final boolean DEBUG
LOG
private static final DebugWriter LOG
DEFAULT_SELECTOR
private static final String DEFAULT_SELECTOR
- See Also:
- Constant Field Values
owner
long owner
WTConnection
public WTConnection(PDSIfc pds)
throws ConnectionException
setOwner
void setOwner(long owner)
getOwner
long getOwner()
checkOwner
void checkOwner()
touch
void touch()
getLastTouched
long getLastTouched()
connect
private void connect()
throws ConnectionException
- Throws:
ConnectionException
disconnect
public void disconnect()
throws ConnectionException
- Disconnect from a datastore.
- Throws:
ConnectionException
- Occurs if the persistent object manager cannont
disconnect from the datastore.
getPds
public PDSIfc getPds()
reconnect
public void reconnect()
throws PersistenceException
- Throws:
PersistenceException
getConnection
public Connection getConnection()
getTransactionManager
protected TransactionManager getTransactionManager()
isTransactionActive
public boolean isTransactionActive()
isActive
boolean isActive()
getStatementCache
private StatementCache getStatementCache()
freeStatementCache
void freeStatementCache(boolean a_clear)
hold
public void hold()
release
public void release()
prepareStatement
public PreparedStatement prepareStatement(String sql)
throws SQLException
- Throws:
SQLException
prepareStatement
public PreparedStatement prepareStatement(String sql,
int fetchSize)
throws SQLException
- Throws:
SQLException
prepareCall
public CallableStatement prepareCall(String sql)
throws SQLException
- Throws:
SQLException
freeStatement
public void freeStatement(String sql,
PreparedStatement pstmt,
boolean close)
freeStatement
public void freeStatement(String sql,
PreparedStatement pstmt,
boolean close,
boolean clear)
getEncoder
public PDSEncoder getEncoder()
throws IOException
- Throws:
IOException
freeEncoder
public void freeEncoder(PDSEncoder a_encoder)
_isTransactionActive
private boolean _isTransactionActive()