|
EAF 7.4 Implementation | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.lutris.appserver.server.sessionEnhydra.persistent.SessionDeleteDO
public class SessionDeleteDO
Database interface that is used to delete a session from the database.
Constructor Summary | |
---|---|
protected |
SessionDeleteDO(java.lang.String sessionKey)
|
Method Summary | |
---|---|
void |
executeDelete(com.lutris.appserver.server.sql.DBConnection conn)
Method to delete an object from the database. |
void |
executeInsert(com.lutris.appserver.server.sql.DBConnection conn)
Inserts the session into the database. |
void |
executeUpdate(com.lutris.appserver.server.sql.DBConnection conn)
Method to update contents of object in database. |
void |
finalizeDelete(boolean success)
If this object's executeDelete method was
called then finalizeDelete is called with
the status of the database transaction. |
void |
finalizeInsert(boolean success)
If this object's executeInsert method was
called then finalizeInsert is called with
the status of the database transaction. |
void |
finalizeUpdate(boolean success)
If this object's executeUpdate method was
called then finalizeUpdate is called with
the status of the database transaction. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected SessionDeleteDO(java.lang.String sessionKey)
sessionKey
- the key identifying the session
that should be deleted.Method Detail |
---|
public void executeInsert(com.lutris.appserver.server.sql.DBConnection conn) throws java.sql.SQLException
executeInsert
in interface com.lutris.appserver.server.sql.Transaction
conn
- Database connection.
java.sql.SQLException
- If a database access error
occurs.public void finalizeInsert(boolean success)
executeInsert
method was
called then finalizeInsert
is called with
the status of the database transaction. This method
allows the data object to perform any post processing
if the transaction succeeded or failed.
finalizeInsert
in interface com.lutris.appserver.server.sql.Transaction
success
- true if the transaction succeeded
and this object was successfully inserted into the database.public void executeUpdate(com.lutris.appserver.server.sql.DBConnection conn) throws java.sql.SQLException
executeUpdate
in interface com.lutris.appserver.server.sql.Transaction
conn
- Database connection.
java.sql.SQLException
- If a database access error
occurs.public void finalizeUpdate(boolean success)
executeUpdate
method was
called then finalizeUpdate
is called with
the status of the database transaction.
For instance the data object may want to
increment its version number once it has successfully
been commited to the database.
finalizeUpdate
in interface com.lutris.appserver.server.sql.Transaction
success
- true if the transaction succeeded
and this object was successfully updated in the database.public void executeDelete(com.lutris.appserver.server.sql.DBConnection conn) throws java.sql.SQLException
executeDelete
in interface com.lutris.appserver.server.sql.Transaction
conn
- Database connection.
java.sql.SQLException
- If a database access error
occurs.public void finalizeDelete(boolean success)
executeDelete
method was
called then finalizeDelete
is called with
the status of the database transaction.
finalizeDelete
in interface com.lutris.appserver.server.sql.Transaction
success
- true if the transaction succeeded
and this object was successfully deleted from the
database.
|
EAF 7.4 Implementation | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |