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.Constructor and Description |
---|
CheckedDeleteOperation(Entity entity) |
Modifier and Type | Method and Description |
---|---|
void |
clearCache() |
void |
execute() |
Entity |
getEntity() |
Class<? extends Entity> |
getEntityClass() |
boolean |
sameIdentity(Entity other) |
String |
toString() |
protected final Entity entity
public CheckedDeleteOperation(Entity entity)
public Class<? extends Entity> getEntityClass()
getEntityClass
in interface DbSqlSession.DeleteOperation
public boolean sameIdentity(Entity other)
sameIdentity
in interface DbSqlSession.DeleteOperation
public void clearCache()
clearCache
in interface DbSqlSession.DeleteOperation
public void execute()
execute
in interface DbSqlSession.DeleteOperation
public Entity getEntity()
Copyright © 2015 Alfresco. All rights reserved.