EAF 7.4 Implementation

com.lutris.appserver.server.sessionEnhydra.persistent
Class SessionDeleteDO

java.lang.Object
  extended by com.lutris.appserver.server.sessionEnhydra.persistent.SessionDeleteDO
All Implemented Interfaces:
com.lutris.appserver.server.sql.Transaction

public class SessionDeleteDO
extends java.lang.Object
implements com.lutris.appserver.server.sql.Transaction

Database interface that is used to delete a session from the database.

Version:
$Revision: 1.2 $
Author:
Kyle Clark

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

SessionDeleteDO

protected SessionDeleteDO(java.lang.String sessionKey)
Parameters:
sessionKey - the key identifying the session that should be deleted.
Method Detail

executeInsert

public void executeInsert(com.lutris.appserver.server.sql.DBConnection conn)
                   throws java.sql.SQLException
Inserts the session into the database.

Specified by:
executeInsert in interface com.lutris.appserver.server.sql.Transaction
Parameters:
conn - Database connection.
Throws:
java.sql.SQLException - If a database access error occurs.

finalizeInsert

public void finalizeInsert(boolean success)
If this object's 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.

Specified by:
finalizeInsert in interface com.lutris.appserver.server.sql.Transaction
Parameters:
success - true if the transaction succeeded and this object was successfully inserted into the database.

executeUpdate

public void executeUpdate(com.lutris.appserver.server.sql.DBConnection conn)
                   throws java.sql.SQLException
Method to update contents of object in database.

Specified by:
executeUpdate in interface com.lutris.appserver.server.sql.Transaction
Parameters:
conn - Database connection.
Throws:
java.sql.SQLException - If a database access error occurs.

finalizeUpdate

public void finalizeUpdate(boolean success)
If this object's 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.

Specified by:
finalizeUpdate in interface com.lutris.appserver.server.sql.Transaction
Parameters:
success - true if the transaction succeeded and this object was successfully updated in the database.

executeDelete

public void executeDelete(com.lutris.appserver.server.sql.DBConnection conn)
                   throws java.sql.SQLException
Method to delete an object from the database.

Specified by:
executeDelete in interface com.lutris.appserver.server.sql.Transaction
Parameters:
conn - Database connection.
Throws:
java.sql.SQLException - If a database access error occurs.

finalizeDelete

public void finalizeDelete(boolean success)
If this object's executeDelete method was called then finalizeDelete is called with the status of the database transaction.

Specified by:
finalizeDelete in interface com.lutris.appserver.server.sql.Transaction
Parameters:
success - true if the transaction succeeded and this object was successfully deleted from the database.

EAF 7.4 Implementation