Interface SyncCascadeOperations.SyncCascadeOperationsHelper<Ctx extends OperationContext>
- Type Parameters:
- Ctx- The operation context.
- All Known Implementing Classes:
- DefaultJdbcRepositoryOperations
- Enclosing class:
- SyncCascadeOperations<Ctx extends OperationContext>
public static interface SyncCascadeOperations.SyncCascadeOperationsHelper<Ctx extends OperationContext>
The cascade operations helper.
- 
Method SummaryModifier and TypeMethodDescriptiondefault booleanisSupportsBatchDelete(Ctx ctx, RuntimePersistentEntity<?> persistentEntity) Is supports batch delete.default booleanisSupportsBatchInsert(Ctx ctx, RuntimePersistentEntity<?> persistentEntity) Is supports batch insert.default booleanisSupportsBatchUpdate(Ctx ctx, RuntimePersistentEntity<?> persistentEntity) Is supports batch update.<T> List<T>persistBatch(Ctx ctx, Iterable<T> entityValues, RuntimePersistentEntity<T> persistentEntity, Predicate<T> predicate) Persist multiple entities in batch during cascade.voidpersistManyAssociation(Ctx ctx, RuntimeAssociation runtimeAssociation, Object parentEntityValue, RuntimePersistentEntity<Object> parentPersistentEntity, Object childEntityValue, RuntimePersistentEntity<Object> childPersistentEntity) Persist JOIN table relationship.voidpersistManyAssociationBatch(Ctx ctx, RuntimeAssociation runtimeAssociation, Object parentEntityValue, RuntimePersistentEntity<Object> parentPersistentEntity, Iterable<Object> childEntityValues, RuntimePersistentEntity<Object> childPersistentEntity) Persist JOIN table relationships in batch.<T> TpersistOne(Ctx ctx, T entityValue, RuntimePersistentEntity<T> persistentEntity) Persist one entity during cascade.<T> TupdateOne(Ctx ctx, T entityValue, RuntimePersistentEntity<T> persistentEntity) Update one entity during cascade.
- 
Method Details- 
isSupportsBatchInsertIs supports batch insert.- Parameters:
- ctx- The context
- persistentEntity- The persistent entity
- Returns:
- True if supports
 
- 
isSupportsBatchUpdateIs supports batch update.- Parameters:
- ctx- The context
- persistentEntity- The persistent entity
- Returns:
- True if supports
 
- 
isSupportsBatchDeleteIs supports batch delete.- Parameters:
- ctx- The context
- persistentEntity- The persistent entity
- Returns:
- True if supports
 
- 
persistOnePersist one entity during cascade.- Type Parameters:
- T- The entity type
- Parameters:
- ctx- The context
- entityValue- The entity value
- persistentEntity- The persistent entity
- Returns:
- The entity value
 
- 
persistBatch<T> List<T> persistBatch(Ctx ctx, Iterable<T> entityValues, RuntimePersistentEntity<T> persistentEntity, Predicate<T> predicate) Persist multiple entities in batch during cascade.- Type Parameters:
- T- The entity type
- Parameters:
- ctx- The context
- entityValues- The entity values
- persistentEntity- The persistent entity
- predicate- The veto predicate
- Returns:
- The entity values
 
- 
updateOneUpdate one entity during cascade.- Type Parameters:
- T- The entity type
- Parameters:
- ctx- The context
- entityValue- The entity value
- persistentEntity- The persistent entity
- Returns:
- The entity value
 
- 
persistManyAssociationvoid persistManyAssociation(Ctx ctx, RuntimeAssociation runtimeAssociation, Object parentEntityValue, RuntimePersistentEntity<Object> parentPersistentEntity, Object childEntityValue, RuntimePersistentEntity<Object> childPersistentEntity) Persist JOIN table relationship.- Parameters:
- ctx- The context
- runtimeAssociation- The association
- parentEntityValue- The parent entity value
- parentPersistentEntity- The parent persistent entity
- childEntityValue- The child entity value
- childPersistentEntity- The child persistent entity
 
- 
persistManyAssociationBatchvoid persistManyAssociationBatch(Ctx ctx, RuntimeAssociation runtimeAssociation, Object parentEntityValue, RuntimePersistentEntity<Object> parentPersistentEntity, Iterable<Object> childEntityValues, RuntimePersistentEntity<Object> childPersistentEntity) Persist JOIN table relationships in batch.- Parameters:
- ctx- The context
- runtimeAssociation- The association
- parentEntityValue- The parent entity value
- parentPersistentEntity- The parent persistent entity
- childEntityValues- The child entity values
- childPersistentEntity- The child persistent entity
 
 
-