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 Entity> |
getEntityClass() |
boolean |
sameIdentity(Entity other) |
String |
toString() |
public Class<? extends Entity> getEntityClass()
getEntityClass in interface DbSqlSession.DeleteOperationpublic boolean sameIdentity(Entity other)
sameIdentity in interface DbSqlSession.DeleteOperationpublic void clearCache()
clearCache in interface DbSqlSession.DeleteOperationpublic void execute()
execute in interface DbSqlSession.DeleteOperationCopyright © 2015 Alfresco. All rights reserved.