public class DbSqlSession.BulkDeleteOperation extends Object implements DbSqlSession.DeleteOperation
DbSqlSession.DeleteOperation
to execute a dedicated delete statement.
It is important to note there won't be any optimistic locking checks done
for these kind of delete operations!
For example, a usage of this operation would be to delete all variables for
a certain execution, when that certain execution is removed. The optimistic locking
happens on the execution, but the variables can be removed by a simple
'delete from var_table where execution_id is xxx'. It could very well be there
are no variables, which would also work with this query, but not with the
regular DbSqlSession.CheckedDeleteOperation
.Constructor and Description |
---|
BulkDeleteOperation(String statement,
Object parameter) |
Modifier and Type | Method and Description |
---|---|
void |
clearCache() |
void |
execute() |
Class<? extends PersistentObject> |
getPersistentObjectClass() |
boolean |
sameIdentity(PersistentObject other) |
String |
toString() |
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
Copyright © 2016 Alfresco. All rights reserved.