|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.glite.security.voms.database.connection.Transaction
A wrapper around java.sql.Connection
for convenient handling of
prepared SQL statements.
Field Summary | |
protected java.sql.Connection |
conn
The raw database connection. |
protected static org.apache.log4j.Logger |
log
Logger. |
Constructor Summary | |
protected |
Transaction(java.sql.Connection conn)
Protected constructor. |
Method Summary | |
java.sql.Connection |
getConnection()
Returns the raw java.sql.Connection object
associated with this handler. |
java.sql.PreparedStatement |
getStatement(java.lang.String statement)
Converts the given SQL statement to a PreparedStatement . |
int |
getStatementCount()
Return the number of times getStatement() was executed in this transaction so far. |
boolean |
isReadOnly()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static org.apache.log4j.Logger log
protected java.sql.Connection conn
Constructor Detail |
protected Transaction(java.sql.Connection conn)
Method Detail |
public java.sql.Connection getConnection()
java.sql.Connection
object
associated with this handler.
public java.sql.PreparedStatement getStatement(java.lang.String statement) throws java.sql.SQLException
PreparedStatement
. This is usually equivalent to
the prepareStatement
method of the wrapped
java.sql.Connection
object.
java.sql.SQLException
public boolean isReadOnly()
public final int getStatementCount()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |