anvil.database.jndi
Class JNDIConnection

java.lang.Object
  |
  +--anvil.database.PooledConnection
        |
        +--anvil.database.jndi.JNDIConnection

public class JNDIConnection
extends PooledConnection

Concrete class wrapping javax.naming.Context objects.

Version:
$Revision: 1.3 $
Author:
Simo Tuokko

Field Summary
 
Fields inherited from class anvil.database.PooledConnection
closedAt, connection, createdAt, myPool, name, releasedAt, reserved, reservedAt, timeout
 
Constructor Summary
JNDIConnection(ConnectionPool myPool, java.lang.String name, javax.naming.Context context)
          Creates the context.
 
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

JNDIConnection

public JNDIConnection(ConnectionPool myPool,
                      java.lang.String name,
                      javax.naming.Context context)
Creates the context.

Parameters:
myPool - Connection pool
name - Name of connection
context - javax.naming.Context
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