| |
|
| java.lang.Object org.logicalcobwebs.proxool.ProxyConnection
ProxyConnection | public class ProxyConnection implements ProxyConnectionIF(Code) | | Manages a connection. This is wrapped up inside a...
version: $Revision: 1.37 $, $Date: 2006/01/18 14:40:02 $ author: bill author: $Author: billhorsman $ (current maintainer) since: Proxool 0.10 |
STATUS_FORCE | final static int STATUS_FORCE(Code) | | |
addOpenStatement | protected void addOpenStatement(Statement statement)(Code) | | By calling this we can keep track of any statements that are
left open when this connection is returned to the pool.
Parameters: statement - the statement that we have just opened/created. See Also: ProxyConnection.registerClosedStatement |
equals | public boolean equals(Object obj)(Code) | | Whether the underlying connections are equal
Parameters: obj - the object (probably another connection) that weare being compared to whether they are the same |
getConnectionPool | protected ConnectionPool getConnectionPool()(Code) | | The ConnectionPool that this connection belongs to
connectionPool |
getId | public long getId()(Code) | | |
getMark | public int getMark()(Code) | | |
getStatus | public int getStatus()(Code) | | |
isClosed | public boolean isClosed()(Code) | | Whether this connection is available. (When you close the connection
it doesn't really close, it just becomes available for others to use).
true if the connection is not active |
setId | public void setId(long id)(Code) | | |
setNeedToReset | protected void setNeedToReset(boolean needToReset)(Code) | | The subclass should call this to indicate that a change has been made to
the connection that might mean it needs to be reset (like setting autoCommit
to false or something). We don't reset unless this has been called to avoid
the overhead of unnecessary resetting.
Parameters: needToReset - true if the connection might need resetting. |
|
|
|