|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Implemented by any class which needs to save itself to the database.
All of the methods described by this interface are called by the
commit
method of the CommitPoint
object with which this Archivable object is associated. The
CommitPoint
object decides which Archivable method to
call based upon the CommitPoint
list the Archivable
object is a member of.
The methods in this interface should never be called directly by cassettes.
CommitPoint
Method Summary | |
---|---|
void |
createRecord(Connection conn)
Creates a new record representing this object in a Commerce Payments database table. |
void |
deleteRecord(Connection conn)
Deletes an existing or newly-created record representing this object from a database table. |
void |
updateRecord(Connection conn)
Updates an existing or newly-created record representing this object in a Payment Server database table. |
Method Detail |
public void createRecord(Connection conn) throws ETillAbortOperation
CommitPoint
object calls this method during commit processing
when this Archivable object is a member of the CommitPoint
create list.
This method should never be called directly from cassettes.
The implementation of this method determines which table is used and which data members from the object are to be stored into the table.
Connection
- The JDBC Connection object used to access the database.ETillAbortOperation
- Thrown if an SQLException is caught.public void updateRecord(Connection conn) throws ETillAbortOperation
CommitPoint
object calls this method during commit processing
when this Archivable object is a member of the CommitPoint
update list.
This method should never be called directly from cassettes.
If the Archivable object's record is being created within the same CommitPoint as this update, the CommitPoint object will ensure that the update is applied after the record has been created. The implementation of this method determines which fields in the record will be updated.
Connection
- The JDBC Connection object used to access the database.ETillAbortOperation
- Thrown if an SQLException is caught.public void deleteRecord(Connection conn) throws ETillAbortOperation
CommitPoint
object calls this method during commit processing
when this Archivable object is a member of the CommitPoint
delete list.
This method should never be called directly from cassettes.
If the Archivable object's record is being created within the same CommitPoint as this deletion, the CommitPoint object will simply remove all operations on this record before committing the changes.
Connection
- The JDBC Connection object used to access the database.ETillAbortOperation
- Thrown if an SQLException is caught.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |