Ctx
- The operation context.public static interface SyncCascadeOperations.SyncCascadeOperationsHelper<Ctx extends OperationContext>
Modifier and Type | Method and Description |
---|---|
default boolean |
isSupportsBatchDelete(Ctx ctx,
RuntimePersistentEntity<?> persistentEntity)
Is supports batch delete.
|
default boolean |
isSupportsBatchInsert(Ctx ctx,
RuntimePersistentEntity<?> persistentEntity)
Is supports batch insert.
|
default boolean |
isSupportsBatchUpdate(Ctx ctx,
RuntimePersistentEntity<?> persistentEntity)
Is supports batch update.
|
<T> java.util.List<T> |
persistBatch(Ctx ctx,
java.lang.Iterable<T> entityValues,
RuntimePersistentEntity<T> persistentEntity,
java.util.function.Predicate<T> predicate)
Persist multiple entities in batch during cascade.
|
void |
persistManyAssociation(Ctx ctx,
RuntimeAssociation runtimeAssociation,
java.lang.Object parentEntityValue,
RuntimePersistentEntity<java.lang.Object> parentPersistentEntity,
java.lang.Object childEntityValue,
RuntimePersistentEntity<java.lang.Object> childPersistentEntity)
Persist JOIN table relationship.
|
void |
persistManyAssociationBatch(Ctx ctx,
RuntimeAssociation runtimeAssociation,
java.lang.Object parentEntityValue,
RuntimePersistentEntity<java.lang.Object> parentPersistentEntity,
java.lang.Iterable<java.lang.Object> childEntityValues,
RuntimePersistentEntity<java.lang.Object> childPersistentEntity)
Persist JOIN table relationships in batch.
|
<T> T |
persistOne(Ctx ctx,
T entityValue,
RuntimePersistentEntity<T> persistentEntity)
Persist one entity during cascade.
|
<T> T |
updateOne(Ctx ctx,
T entityValue,
RuntimePersistentEntity<T> persistentEntity)
Update one entity during cascade.
|
default boolean isSupportsBatchInsert(Ctx ctx, RuntimePersistentEntity<?> persistentEntity)
ctx
- The contextpersistentEntity
- The persistent entitydefault boolean isSupportsBatchUpdate(Ctx ctx, RuntimePersistentEntity<?> persistentEntity)
ctx
- The contextpersistentEntity
- The persistent entitydefault boolean isSupportsBatchDelete(Ctx ctx, RuntimePersistentEntity<?> persistentEntity)
ctx
- The contextpersistentEntity
- The persistent entity<T> T persistOne(Ctx ctx, T entityValue, RuntimePersistentEntity<T> persistentEntity)
T
- The entity typectx
- The contextentityValue
- The entity valuepersistentEntity
- The persistent entity<T> java.util.List<T> persistBatch(Ctx ctx, java.lang.Iterable<T> entityValues, RuntimePersistentEntity<T> persistentEntity, java.util.function.Predicate<T> predicate)
T
- The entity typectx
- The contextentityValues
- The entity valuespersistentEntity
- The persistent entitypredicate
- The veto predicate<T> T updateOne(Ctx ctx, T entityValue, RuntimePersistentEntity<T> persistentEntity)
T
- The entity typectx
- The contextentityValue
- The entity valuepersistentEntity
- The persistent entityvoid persistManyAssociation(Ctx ctx, RuntimeAssociation runtimeAssociation, java.lang.Object parentEntityValue, RuntimePersistentEntity<java.lang.Object> parentPersistentEntity, java.lang.Object childEntityValue, RuntimePersistentEntity<java.lang.Object> childPersistentEntity)
ctx
- The contextruntimeAssociation
- The associationparentEntityValue
- The parent entity valueparentPersistentEntity
- The parent persistent entitychildEntityValue
- The child entity valuechildPersistentEntity
- The child persistent entityvoid persistManyAssociationBatch(Ctx ctx, RuntimeAssociation runtimeAssociation, java.lang.Object parentEntityValue, RuntimePersistentEntity<java.lang.Object> parentPersistentEntity, java.lang.Iterable<java.lang.Object> childEntityValues, RuntimePersistentEntity<java.lang.Object> childPersistentEntity)
ctx
- The contextruntimeAssociation
- The associationparentEntityValue
- The parent entity valueparentPersistentEntity
- The parent persistent entitychildEntityValues
- The child entity valueschildPersistentEntity
- The child persistent entity