|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.etill.framework.archive.CommitPoint
Constructor Summary | |
---|---|
CommitPoint()
|
Method Summary | |
---|---|
void |
addToBoundOrders(Order order)
Deprecated. |
void |
addToCreateList(Archivable newItem)
Adds an Archivable object to the list of objects to be created. |
void |
addToDeleteList(Archivable newItem)
Adds an Archivable object to the list of objects to be deleted |
void |
addToEventList(PSEvent event)
Adds an PSEvent object to the list of events to be generated when the next commit occurs. |
void |
addToRestoreList(Restorable newItem)
Adds an Archivable object to the list of objects to be restored. |
void |
addToUpdateList(Archivable newItem)
Adds an Archivable object to the list of objects to be updated. |
void |
commit()
Causes all the collected Archivable objects to be commited to the database and notifications to be generated for all of the collected PSEvent objects. |
void |
noCommit()
Causes all the Restorable objects on the restoreList to be restored from the database. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CommitPoint()
Method Detail |
public void addToCreateList(Archivable newItem)
addToCreateList
in interface Commitable
newItem
- The item to create in the database upon the next commit.
This will be accomplished by calling the object's
createRecord
method when this Commitable
object's commit
is invoked.public void addToUpdateList(Archivable newItem)
addToUpdateList
in interface Commitable
newItem
- The item to be updated in the database upon the next commit.
This will be accomplished by calling the object's
updateRecord
method when this Commitable
object's commit
is invoked.public void addToDeleteList(Archivable newItem)
addToDeleteList
in interface Commitable
newItem
- The item to be deleted in the database upon the next commit.
This will be accomplished by calling the object's
deleteRecord
method when this Commitable
object's commit
is invoked.public void addToRestoreList(Restorable newItem)
newItem
- The item to be restored from the database upon the next noCommit.
This will be accomplished by calling the object's
restoreRecord
method when this Commitable
object's noCommit
is invoked.public void addToEventList(PSEvent event)
event
- The PSEvent object to be generated upon the next commit.public void commit()
createRecord
method.
updateRecord
method.
deleteRecord
method.
commit
in interface Commitable
ETillFrameworkException
- Thrown if the commit fails.public void noCommit()
noCommit
in interface Commitable
ETillFrameworkException
- Thrown if the commit fails.public void addToBoundOrders(Order order)
addToBoundOrders
in interface Commitable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |