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 |
|
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
log
private static org.apache.log4j.Logger log
- Logger.
Query
public Query(java.sql.Connection c,
ConnectionPool pool,
int id)
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