|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.jso.sql.JDBCTransaction
Manages a transaction to a database with a JDBC
java.sql.Connection
object obtained through a
connection pool.
Constructor Summary | |
JDBCTransaction()
Constructs the transaction. |
|
JDBCTransaction(ConnectionPool aPool)
Constructs the transaction. |
Method Summary | |
void |
commit()
Commits the transaction. |
protected void |
finalize()
Frees resources before it's garbage collected. |
java.sql.Connection |
getConnection()
Returns the connection used by the transaction. |
boolean |
isActive()
Indicates if the transaction is active. |
void |
rollback()
Rolls back the transaction. |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public JDBCTransaction()
public JDBCTransaction(ConnectionPool aPool) throws java.sql.SQLException
Method Detail |
public java.sql.Connection getConnection() throws java.lang.IllegalStateException
java.lang.IllegalStateException
public boolean isActive()
public void commit() throws java.sql.SQLException
java.sql.SQLException
public void rollback() throws java.sql.SQLException
java.sql.SQLException
protected void finalize() throws java.lang.Throwable
java.lang.Throwable
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |