|
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.PersistentSessionDO
public class PersistentSessionDO
Database interface for persistent session.
Constructor Summary | |
---|---|
protected |
PersistentSessionDO(PersistentSession session)
|
|
PersistentSessionDO(java.sql.ResultSet rs,
java.lang.ClassLoader loader)
|
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 PersistentSessionDO(PersistentSession session)
session
- the session for which this data object
will provide a database interface.public PersistentSessionDO(java.sql.ResultSet rs, java.lang.ClassLoader loader) throws java.sql.SQLException, java.io.IOException, java.lang.ClassNotFoundException
rs
- Result set from which to instantiate the session.loader
- The class loader to use when reconstructing the session
from serialized data.
java.sql.SQLException
- If a database connection error occurs.
java.io.IOException
- If the serialized session cannot be re-instantiated from the
persistent data.
java.lang.ClassNotFoundException
- If a class associated with the serialized session cannot
be found.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 or if the session data could not be serialized.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 |