@groovy.transform.CompileStatic class BatchOperation extends java.lang.Object
Represents a batch operation
Modifiers | Name | Description |
---|---|---|
static class |
BatchOperation.EntityOperation |
Modifiers | Name | Description |
---|---|---|
private java.util.Map<java.lang.String, java.lang.Object> |
arguments |
Arguments to the operation |
private java.util.Map<PersistentEntity, java.util.Map<java.io.Serializable, EntityOperation>> |
deletes |
|
private java.util.Map<PersistentEntity, java.util.Map<java.io.Serializable, EntityOperation>> |
inserts |
|
private java.util.Map<PersistentEntity, java.util.Map<java.io.Serializable, EntityOperation>> |
updates |
Type | Name and description |
---|---|
java.util.Map<java.lang.String, java.lang.Object> |
arguments Arguments 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#wait(long), java.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Arguments to the operation
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
Groovy Documentation