|
Enhydra 3.1 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.lutris.appserver.server.sql.standard.StandardDBTransaction
Standard implementation of SQL database transaction.
DBTransaction
Constructor Summary | |
protected |
StandardDBTransaction(DBConnection conn)
Construct a transaction object for use on the supplied dB connection. |
Method Summary | |
void |
commit()
Method to commit upates. |
void |
delete(Transaction transaction)
Method to delete an object in the database. |
protected void |
finalize()
If this object has not been released, this method ensures that garbage collection does so. |
boolean |
handleException(java.sql.SQLException e)
Exception handeler. |
void |
insert(Transaction transaction)
Method to insert an object in the database. |
protected void |
logDebug(java.lang.String str)
Logging. |
void |
release()
Frees all resources consumed by this transaction Connections are returned to the connection pool. |
void |
rollback()
Method to rollback changes. |
void |
update(Transaction transaction)
Method to update an object in the database. |
Methods inherited from class java.lang.Object |
clone,
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
protected StandardDBTransaction(DBConnection conn) throws java.sql.SQLException
conn
- The database connection to use.Method Detail |
public void update(Transaction transaction)
transaction
- Object that implements transaction interface.public void delete(Transaction transaction)
transaction
- Object that implements transaction interface.public void insert(Transaction transaction)
transaction
- Object that implements transaction interface.public void commit() throws java.sql.SQLException, DBRowUpdateException
public void rollback() throws java.sql.SQLException
public void release()
public boolean handleException(java.sql.SQLException e)
protected void finalize()
protected void logDebug(java.lang.String str)
str
- The data to log.
|
Enhydra 3.1 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |