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

java.lang.Object
  extended byorg.glite.security.voms.database.connection.Transaction
      extended byorg.glite.security.voms.database.connection.ClientTransaction
          extended byorg.glite.security.voms.database.connection.Query

public final class Query
extends ClientTransaction

Database connection wrapper for read-only operations.


Field Summary
 
Fields inherited from class org.glite.security.voms.database.connection.Transaction
conn
 
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.glite.security.voms.database.connection.ClientTransaction
getClient, getClientCA, getClientDN, getClientId, setClient
 
Methods inherited from class org.glite.security.voms.database.connection.Transaction
getConnection, getStatement, getStatementCount
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

get

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

Throws:
VOMSException

release

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

Throws:
GeneralDatabaseException

isReadOnly

public boolean isReadOnly()
Overrides:
isReadOnly in class Transaction