public class CommitManager
extends java.lang.Object
Constructor and Description |
---|
CommitManager(AbstractSession session)
Create the commit manager on the session.
|
Modifier and Type | Method and Description |
---|---|
void |
addDataModificationEvent(DatabaseMapping mapping,
java.lang.Object[] event)
Add the data query to be performed at the end of the commit.
|
void |
addDeferredCall(DatabaseTable table,
DatasourceCall call,
DatabaseQueryMechanism mechanism)
Add the data query to be performed at the end of the commit.
|
void |
addObjectToDelete(java.lang.Object objectToDelete)
Deletion are cached until the end.
|
void |
commitAllObjectsWithChangeSet(UnitOfWorkChangeSet uowChangeSet)
Commit all of the objects as a single transaction.
|
void |
deleteAllObjects(java.lang.Class theClass,
java.util.List objects,
AbstractSession session)
Delete all of the objects with the matching class.
|
void |
deleteAllObjects(java.util.List objects)
delete all of the objects as a single transaction.
|
java.util.List<java.lang.Class> |
getCommitOrder()
Return the order in which objects should be committed to the database.
|
java.util.List |
getObjectsToDelete()
Deletion are cached until the end.
|
void |
initializeCommitOrder()
Reset the commit order from the session's descriptors.
|
boolean |
isActive()
Return if the commit manager is active.
|
boolean |
isCommitCompleted(java.lang.Object object)
Return if the object has been committed.
|
boolean |
isCommitCompletedInPostOrIgnore(java.lang.Object object)
Return if the object has been committed.
|
boolean |
isCommitInPostModify(java.lang.Object object)
Return if the object is being in progress of being post modify commit.
|
boolean |
isCommitInPreModify(java.lang.Object objectOrChangeSet)
Return if the object is being in progress of being pre modify commit.
|
boolean |
isProcessedCommit(java.lang.Object object)
Return if the object has been processed.
|
boolean |
isShallowCommitted(java.lang.Object object)
Return if the object is shallow committed.
|
void |
markCommitCompleted(java.lang.Object object)
Mark the commit of the object as being fully completed.
|
void |
markIgnoreCommit(java.lang.Object object) |
void |
markPostModifyCommitInProgress(java.lang.Object object)
Add an object as being in progress of being committed.
|
void |
markPreModifyCommitInProgress(java.lang.Object object)
Add an object as being in progress of being committed.
|
void |
markShallowCommit(java.lang.Object object)
Mark the object as shallow committed.
|
void |
reinitialize()
Reset the commits.
|
void |
setCommitOrder(java.util.List commitOrder)
Set the order in which objects should be committed to the database.
|
void |
setIsActive(boolean isActive)
Set if the commit manager is active.
|
java.lang.String |
toString()
Print the in progress depth.
|
public CommitManager(AbstractSession session)
public void addDataModificationEvent(DatabaseMapping mapping, java.lang.Object[] event)
public void addDeferredCall(DatabaseTable table, DatasourceCall call, DatabaseQueryMechanism mechanism)
public void addObjectToDelete(java.lang.Object objectToDelete)
public void commitAllObjectsWithChangeSet(UnitOfWorkChangeSet uowChangeSet) throws java.lang.RuntimeException, DatabaseException, OptimisticLockException
java.lang.RuntimeException
DatabaseException
OptimisticLockException
public void deleteAllObjects(java.util.List objects) throws java.lang.RuntimeException, DatabaseException, OptimisticLockException
java.lang.RuntimeException
DatabaseException
OptimisticLockException
public void deleteAllObjects(java.lang.Class theClass, java.util.List objects, AbstractSession session)
public java.util.List<java.lang.Class> getCommitOrder()
public java.util.List getObjectsToDelete()
public void initializeCommitOrder()
public boolean isActive()
public boolean isProcessedCommit(java.lang.Object object)
public boolean isCommitCompleted(java.lang.Object object)
public boolean isCommitCompletedInPostOrIgnore(java.lang.Object object)
public boolean isCommitInPostModify(java.lang.Object object)
public boolean isCommitInPreModify(java.lang.Object objectOrChangeSet)
public boolean isShallowCommitted(java.lang.Object object)
public void markCommitCompleted(java.lang.Object object)
public void markIgnoreCommit(java.lang.Object object)
public void markPostModifyCommitInProgress(java.lang.Object object)
public void markPreModifyCommitInProgress(java.lang.Object object)
public void markShallowCommit(java.lang.Object object)
public void reinitialize()
public void setCommitOrder(java.util.List commitOrder)
public void setIsActive(boolean isActive)
public java.lang.String toString()
toString
in class java.lang.Object
EclipseLink 2.6.3, "build v20160428-59c81c5" API Reference