org.edg.security.voms.database.connection
Class Query

java.lang.Object
  |
  +--org.edg.security.voms.database.connection.ConnectionWrapper
        |
        +--org.edg.security.voms.database.connection.ClientConnection
              |
              +--org.edg.security.voms.database.connection.Query

public class Query
extends ClientConnection

Database connection wrapper for read-only operations.


Field Summary
private static org.apache.log4j.Logger log
          Logger.
 
Fields inherited from class org.edg.security.voms.database.connection.ClientConnection
 
Fields inherited from class org.edg.security.voms.database.connection.ConnectionWrapper
conn, id, inTransaction, pool, stmts
 
Constructor Summary
Query(java.sql.Connection c, ConnectionPool pool, int id)
           
 
Method Summary
static Query get()
          Allocate a new query connection.
 boolean isReadonly()
           
 void release()
          Close the current transaction and return the connection to its connection pool.
 
Methods inherited from class org.edg.security.voms.database.connection.ClientConnection
beginTransaction, endTransaction, getClient, getClientId
 
Methods inherited from class org.edg.security.voms.database.connection.ConnectionWrapper
close, getConnection, getStatement, isClosed, isDirty, isFunctional, isInTransaction, setDirty, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

log

private static org.apache.log4j.Logger log
Logger.

Constructor Detail

Query

public Query(java.sql.Connection c,
             ConnectionPool pool,
             int id)
Method Detail

get

public static Query get()
                 throws VOMSException
Allocate a new query connection.

VOMSException

release

public void release()
Close the current transaction and return the connection to its connection pool.


isReadonly

public boolean isReadonly()
Specified by:
isReadonly in class ClientConnection