public class DbSqlSession.CheckedDeleteOperation extends Object implements DbSqlSession.DeleteOperation
DbSqlSession.DeleteOperation
that checks for concurrent modifications if the persistent object implements HasRevision
.
That is, it employs optimisting concurrency control. Used when the persistent object has been fetched already.Modifier and Type | Field and Description |
---|---|
protected PersistentObject |
persistentObject |
Constructor and Description |
---|
CheckedDeleteOperation(PersistentObject persistentObject) |
Modifier and Type | Method and Description |
---|---|
void |
clearCache() |
void |
execute() |
PersistentObject |
getPersistentObject() |
Class<? extends PersistentObject> |
getPersistentObjectClass() |
boolean |
sameIdentity(PersistentObject other) |
String |
toString() |
protected final PersistentObject persistentObject
public CheckedDeleteOperation(PersistentObject persistentObject)
public Class<? extends PersistentObject> getPersistentObjectClass()
getPersistentObjectClass
in interface DbSqlSession.DeleteOperation
public boolean sameIdentity(PersistentObject other)
sameIdentity
in interface DbSqlSession.DeleteOperation
public void clearCache()
clearCache
in interface DbSqlSession.DeleteOperation
public void execute()
execute
in interface DbSqlSession.DeleteOperation
public PersistentObject getPersistentObject()
Copyright © 2016 Alfresco. All rights reserved.