anvil.database.jdbc
Class JDBCConnection

java.lang.Object
  |
  +--anvil.database.PooledConnection
        |
        +--anvil.database.jdbc.JDBCConnection

public class JDBCConnection
extends PooledConnection

Concrete class wrapping java.sql.Connection objects.

Version:
$Revision: 1.3 $
Author:
Jani Lehtimäki

Field Summary
 
Fields inherited from class anvil.database.PooledConnection
closedAt, connection, createdAt, myPool, name, releasedAt, reserved, reservedAt, timeout
 
Constructor Summary
JDBCConnection(ConnectionPool myPool, java.lang.String name, java.sql.Connection connection)
          Creates the connection.
 
Method Summary
protected  void closeConnection()
           
protected  boolean isConnectionClosed()
           
 
Methods inherited from class anvil.database.PooledConnection
equals, getClosingTime, getConnection, getCreationTime, getName, getPool, getReleaseTime, getReserveTime, hasTimedOut, isAlive, isReserved, release, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JDBCConnection

public JDBCConnection(ConnectionPool myPool,
                      java.lang.String name,
                      java.sql.Connection connection)
Creates the connection.

Parameters:
myPool - Connection pool
name - Name of connection
connection - java.sql.Connection
Method Detail

isConnectionClosed

protected boolean isConnectionClosed()
                              throws java.lang.Exception
Specified by:
isConnectionClosed in class PooledConnection
java.lang.Exception

closeConnection

protected void closeConnection()
                        throws java.lang.Exception
Specified by:
closeConnection in class PooledConnection
java.lang.Exception