@CompileStatic class BatchOperation extends java.lang.Object
Represents a batch operation
| Modifiers | Name | Description |
|---|---|---|
static class |
BatchOperation.EntityOperation |
| Type | Name and description |
|---|---|
java.util.Map<java.lang.String, java.lang.Object> |
argumentsArguments to the operation |
java.util.Map<PersistentEntity, java.util.Map<java.io.Serializable, EntityOperation>> |
deletes |
java.util.Map<PersistentEntity, java.util.Map<java.io.Serializable, EntityOperation>> |
inserts |
java.util.Map<PersistentEntity, java.util.Map<java.io.Serializable, EntityOperation>> |
updates |
| Constructor and description |
|---|
BatchOperation(java.util.Map<java.lang.String, java.lang.Object> arguments) |
| Type Params | Return Type | Name and description |
|---|---|---|
|
void |
addDelete(PersistentEntity entity, java.io.Serializable id, java.lang.Object object)Adds a delete operation for the given entity, id and object |
|
void |
addInsert(PersistentEntity entity, java.io.Serializable id, java.lang.Object object)Adds an insert operation for the given entity and object |
|
void |
addUpdate(PersistentEntity entity, java.io.Serializable id, java.lang.Object object)Adds an update operation for the given entity, id and object |
|
boolean |
hasPendingOperations()
|
|
boolean |
isAlreadyPending(PersistentEntity entity, java.io.Serializable id, java.lang.Object o) |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#equals(java.lang.Object), java.lang.Object#getClass(), java.lang.Object#hashCode(), java.lang.Object#notify(), java.lang.Object#notifyAll(), java.lang.Object#toString(), java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int) |
Arguments to the operation
Adds a delete operation for the given entity, id and object
entity - The entity typeid - The id of the entityobject - The objectAdds an insert operation for the given entity and object
entity - The entity typeobject - The objectAdds an update operation for the given entity, id and object
entity - The entity typeid - The id of the entityobject - The object