接口 BatchEntitySaveCommand<E>
- 所有超级接口:
AbstractEntitySaveCommand,Executable<BatchSaveResult<E>>
- 所有已知实现类:
BatchEntitySaveCommandImpl
public interface BatchEntitySaveCommand<E>
extends Executable<BatchSaveResult<E>>, AbstractEntitySaveCommand
-
方法概要
修饰符和类型方法说明addExceptionTranslator(ExceptionTranslator<?> translator) default BatchSaveResult<E> execute()Executed on a JDBC connection determined by jimmer-sql.default <V extends org.babyfish.jimmer.View<E>>
BatchSaveResult.View<E, V> default BatchSaveResult<E> execute(Connection con) Execute on the specified JDBC connection.<V extends org.babyfish.jimmer.View<E>>
BatchSaveResult.View<E, V> execute(Connection con, Class<V> viewType) execute(Connection con, Fetcher<E> fetcher) default BatchSaveResult<E> setAssociatedMode(org.babyfish.jimmer.meta.ImmutableProp prop, AssociatedSaveMode mode) default BatchEntitySaveCommand<E> setAssociatedMode(org.babyfish.jimmer.meta.TypedProp.Association<?, ?> prop, AssociatedSaveMode mode) default BatchEntitySaveCommand<E> setAutoIdOnlyTargetChecking(org.babyfish.jimmer.meta.ImmutableProp prop) setAutoIdOnlyTargetChecking(org.babyfish.jimmer.meta.ImmutableProp prop, boolean checking) default BatchEntitySaveCommand<E> setAutoIdOnlyTargetChecking(org.babyfish.jimmer.meta.TypedProp.Association<?, ?> prop) default BatchEntitySaveCommand<E> setAutoIdOnlyTargetChecking(org.babyfish.jimmer.meta.TypedProp.Association<?, ?> prop, boolean checking) setConstraintViolationTranslatable(boolean transferable) setDeleteMode(DeleteMode mode) setDissociateAction(org.babyfish.jimmer.meta.ImmutableProp prop, org.babyfish.jimmer.sql.DissociateAction dissociateAction) default BatchEntitySaveCommand<E> setDissociateAction(org.babyfish.jimmer.meta.TypedProp.Reference<?, ?> prop, org.babyfish.jimmer.sql.DissociateAction dissociateAction) default BatchEntitySaveCommand<E> setDumbBatchAcceptable(boolean acceptable) setIdOnlyAsReference(org.babyfish.jimmer.meta.ImmutableProp prop, boolean asReference) default BatchEntitySaveCommand<E> setIdOnlyAsReference(org.babyfish.jimmer.meta.TypedProp.Association<?, ?> prop, boolean asReference) setIdOnlyAsReferenceAll(boolean asReference) default BatchEntitySaveCommand<E> setKeyOnlyAsReference(org.babyfish.jimmer.meta.ImmutableProp prop) setKeyOnlyAsReference(org.babyfish.jimmer.meta.ImmutableProp prop, boolean asReference) default BatchEntitySaveCommand<E> setKeyOnlyAsReference(org.babyfish.jimmer.meta.TypedProp.Association<?, ?> prop) default BatchEntitySaveCommand<E> setKeyOnlyAsReference(org.babyfish.jimmer.meta.TypedProp.Association<?, ?> prop, boolean asReference) setKeyProps(String group, org.babyfish.jimmer.meta.ImmutableProp... props) default BatchEntitySaveCommand<E> setKeyProps(String group, org.babyfish.jimmer.meta.TypedProp.Single<?, ?>... props) default BatchEntitySaveCommand<E> setKeyProps(org.babyfish.jimmer.meta.ImmutableProp... props) default BatchEntitySaveCommand<E> setKeyProps(org.babyfish.jimmer.meta.TypedProp.Single<?, ?>... props) setMaxCommandJoinCount(int count) <T extends Table<E>>
BatchEntitySaveCommand<E> setOptimisticLock(Class<T> tableType, UnloadedVersionBehavior unloadedVersionBehavior, UserOptimisticLock<E, T> block) Example:default <T extends Table<E>>
BatchEntitySaveCommand<E> setOptimisticLock(Class<T> tableType, UserOptimisticLock<E, T> block) Example:default BatchEntitySaveCommand<E> setPessimisticLock(Class<?> entityType) setPessimisticLock(Class<?> entityType, boolean lock) setTargetTransferMode(org.babyfish.jimmer.meta.ImmutableProp prop, org.babyfish.jimmer.sql.TargetTransferMode mode) default BatchEntitySaveCommand<E> setTargetTransferMode(org.babyfish.jimmer.meta.TypedProp.ReferenceList<?, ?> prop, org.babyfish.jimmer.sql.TargetTransferMode mode) setTargetTransferModeAll(org.babyfish.jimmer.sql.TargetTransferMode mode) setTransactionRequired(boolean required) default BatchEntitySaveCommand<E> setUpsertMask(org.babyfish.jimmer.meta.ImmutableProp... props) Set UpsertMask with updatable propertiesdefault BatchEntitySaveCommand<E> setUpsertMask(org.babyfish.jimmer.meta.TypedProp.Single<?, ?>... props) Set UpsertMask with updatable propertiessetUpsertMask(UpsertMask<?> mask) Set UpsertMask object
-
方法详细资料
-
setMode
- 指定者:
setMode在接口中AbstractEntitySaveCommand
-
setAssociatedModeAll
-
setAssociatedMode
@NewChain BatchEntitySaveCommand<E> setAssociatedMode(org.babyfish.jimmer.meta.ImmutableProp prop, AssociatedSaveMode mode) - 指定者:
setAssociatedMode在接口中AbstractEntitySaveCommand
-
setAssociatedMode
@NewChain default BatchEntitySaveCommand<E> setAssociatedMode(org.babyfish.jimmer.meta.TypedProp.Association<?, ?> prop, AssociatedSaveMode mode) - 指定者:
setAssociatedMode在接口中AbstractEntitySaveCommand
-
setKeyProps
@NewChain default BatchEntitySaveCommand<E> setKeyProps(org.babyfish.jimmer.meta.ImmutableProp... props) - 指定者:
setKeyProps在接口中AbstractEntitySaveCommand
-
setKeyProps
@NewChain BatchEntitySaveCommand<E> setKeyProps(String group, org.babyfish.jimmer.meta.ImmutableProp... props) - 指定者:
setKeyProps在接口中AbstractEntitySaveCommand
-
setKeyProps
@NewChain default BatchEntitySaveCommand<E> setKeyProps(org.babyfish.jimmer.meta.TypedProp.Single<?, ?>... props) - 指定者:
setKeyProps在接口中AbstractEntitySaveCommand
-
setKeyProps
@NewChain default BatchEntitySaveCommand<E> setKeyProps(String group, org.babyfish.jimmer.meta.TypedProp.Single<?, ?>... props) - 指定者:
setKeyProps在接口中AbstractEntitySaveCommand
-
setUpsertMask
@NewChain default BatchEntitySaveCommand<E> setUpsertMask(org.babyfish.jimmer.meta.ImmutableProp... props) 从接口复制的说明:AbstractEntitySaveCommandSet UpsertMask with updatable propertiesWhen upsert is executed, existing rows will be updated. By default, the properties is determined by object shape
updatedProperties = propertiesOf(dynamicEntity) - conflictIdOrKeyIf the UpsertMask is specified,
updatedProperties = ( propertiesOf(dynamicEntity) - conflictIdOrKey ) & upsertMask.updatableProps- 指定者:
setUpsertMask在接口中AbstractEntitySaveCommand- 参数:
props- Properties that can be updated- its length cannot be 0
- all properties must belong to one entity type
-
setUpsertMask
@NewChain default BatchEntitySaveCommand<E> setUpsertMask(org.babyfish.jimmer.meta.TypedProp.Single<?, ?>... props) 从接口复制的说明:AbstractEntitySaveCommandSet UpsertMask with updatable propertiesWhen upsert is executed, existing rows will be updated. By default, the properties is determined by object shape
updatedProperties = propertiesOf(dynamicEntity) - conflictIdOrKeyIf the UpsertMask is specified,
updatedProperties = ( propertiesOf(dynamicEntity) - conflictIdOrKey ) & upsertMask.updatableProps- 指定者:
setUpsertMask在接口中AbstractEntitySaveCommand- 参数:
props- Properties that can be updated- its length cannot be 0
- all properties must belong to one entity type
-
setUpsertMask
从接口复制的说明:AbstractEntitySaveCommandSet UpsertMask objectWhen upsert is executed, existing rows will be updated and non-existing rows will be inserted. By default, the properties is determined by object shape
insertedProperties = propertiesOf(dynamicEntity) updatedProperties = propertiesOf(dynamicEntity) - conflictIdOrKeyIf the UpsertMask is specified,
insertedProperties = ( propertiesOf(dynamicEntity) & upsertMask.insertableProps ) + conflictIdOrKey updatedProperties = ( propertiesOf(dynamicEntity) - conflictIdOrKey ) & upsertMask.updatableProps- 指定者:
setUpsertMask在接口中AbstractEntitySaveCommand- 参数:
mask- The upsert mask object, it cannot be null
-
setAutoIdOnlyTargetCheckingAll
-
setAutoIdOnlyTargetChecking
@NewChain default BatchEntitySaveCommand<E> setAutoIdOnlyTargetChecking(org.babyfish.jimmer.meta.TypedProp.Association<?, ?> prop) -
setAutoIdOnlyTargetChecking
@NewChain default BatchEntitySaveCommand<E> setAutoIdOnlyTargetChecking(org.babyfish.jimmer.meta.TypedProp.Association<?, ?> prop, boolean checking) -
setAutoIdOnlyTargetChecking
@NewChain default BatchEntitySaveCommand<E> setAutoIdOnlyTargetChecking(org.babyfish.jimmer.meta.ImmutableProp prop) -
setAutoIdOnlyTargetChecking
@NewChain BatchEntitySaveCommand<E> setAutoIdOnlyTargetChecking(org.babyfish.jimmer.meta.ImmutableProp prop, boolean checking) -
setIdOnlyAsReferenceAll
-
setIdOnlyAsReference
default BatchEntitySaveCommand<E> setIdOnlyAsReference(org.babyfish.jimmer.meta.TypedProp.Association<?, ?> prop, boolean asReference) -
setIdOnlyAsReference
BatchEntitySaveCommand<E> setIdOnlyAsReference(org.babyfish.jimmer.meta.ImmutableProp prop, boolean asReference) -
setKeyOnlyAsReferenceAll
-
setKeyOnlyAsReference
@NewChain default BatchEntitySaveCommand<E> setKeyOnlyAsReference(org.babyfish.jimmer.meta.TypedProp.Association<?, ?> prop) -
setKeyOnlyAsReference
@NewChain default BatchEntitySaveCommand<E> setKeyOnlyAsReference(org.babyfish.jimmer.meta.TypedProp.Association<?, ?> prop, boolean asReference) -
setKeyOnlyAsReference
@NewChain default BatchEntitySaveCommand<E> setKeyOnlyAsReference(org.babyfish.jimmer.meta.ImmutableProp prop) -
setKeyOnlyAsReference
@NewChain BatchEntitySaveCommand<E> setKeyOnlyAsReference(org.babyfish.jimmer.meta.ImmutableProp prop, boolean asReference) -
setDissociateAction
@NewChain default BatchEntitySaveCommand<E> setDissociateAction(org.babyfish.jimmer.meta.TypedProp.Reference<?, ?> prop, org.babyfish.jimmer.sql.DissociateAction dissociateAction) - 指定者:
setDissociateAction在接口中AbstractEntitySaveCommand
-
setDissociateAction
@NewChain BatchEntitySaveCommand<E> setDissociateAction(org.babyfish.jimmer.meta.ImmutableProp prop, org.babyfish.jimmer.sql.DissociateAction dissociateAction) - 指定者:
setDissociateAction在接口中AbstractEntitySaveCommand
-
setTargetTransferMode
@NewChain default BatchEntitySaveCommand<E> setTargetTransferMode(org.babyfish.jimmer.meta.TypedProp.ReferenceList<?, ?> prop, org.babyfish.jimmer.sql.TargetTransferMode mode) -
setTargetTransferMode
@NewChain BatchEntitySaveCommand<E> setTargetTransferMode(org.babyfish.jimmer.meta.ImmutableProp prop, org.babyfish.jimmer.sql.TargetTransferMode mode) -
setTargetTransferModeAll
@NewChain BatchEntitySaveCommand<E> setTargetTransferModeAll(org.babyfish.jimmer.sql.TargetTransferMode mode) -
setPessimisticLock
- 指定者:
setPessimisticLock在接口中AbstractEntitySaveCommand
-
setPessimisticLock
- 指定者:
setPessimisticLock在接口中AbstractEntitySaveCommand
-
setPessimisticLockAll
-
setOptimisticLock
@NewChain default <T extends Table<E>> BatchEntitySaveCommand<E> setOptimisticLock(Class<T> tableType, UserOptimisticLock<E, T> block) Example:sqlClient .getEntities() .saveEntitiesCommand( Arrays.asList(process1, process2, process3) ) .setOptimisticLock(ProcessTable.class, (table, vf) -> { return Predicate.and( table.version().eq(vf.newNumber(ProcessProps.VERSION)), table.status().eq(States.PENDING) ); }) .execute() -
setOptimisticLock
@NewChain <T extends Table<E>> BatchEntitySaveCommand<E> setOptimisticLock(Class<T> tableType, UnloadedVersionBehavior unloadedVersionBehavior, UserOptimisticLock<E, T> block) Example:sqlClient .getEntities() .saveEntitiesCommand( Arrays.asList(process1, process2, process3) ) .setOptimisticLock(ProcessTable.class, UnloadedVersionBehavior.INCREASE, (table, vf) -> { return Predicate.and( table.version().eq(vf.newNumber(ProcessProps.VERSION)), table.status().eq(States.PENDING) ); }) .execute() -
setDeleteMode
- 指定者:
setDeleteMode在接口中AbstractEntitySaveCommand
-
setMaxCommandJoinCount
-
setDumbBatchAcceptable
-
setDumbBatchAcceptable
-
setConstraintViolationTranslatable
-
addExceptionTranslator
-
setTransactionRequired
-
execute
从接口复制的说明:ExecutableExecuted on a JDBC connection determined by jimmer-sql.- 指定者:
execute在接口中Executable<E>- 返回:
- Execution result
-
execute
从接口复制的说明:ExecutableExecute on the specified JDBC connection.- 指定者:
execute在接口中Executable<E>- 返回:
- Execution result
-
execute
-
execute
default <V extends org.babyfish.jimmer.View<E>> BatchSaveResult.View<E,V> execute(Class<V> viewType) -
execute
-
execute
<V extends org.babyfish.jimmer.View<E>> BatchSaveResult.View<E,V> execute(Connection con, Class<V> viewType)
-