类 SimpleEntitySaveCommandImpl<E>
java.lang.Object
org.babyfish.jimmer.sql.ast.impl.mutation.SimpleEntitySaveCommandImpl<E>
- 所有已实现的接口:
Executable<SimpleSaveResult<E>>,SaveCommandImplementor,AbstractEntitySaveCommand,SimpleEntitySaveCommand<E>
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明addExceptionTranslator(ExceptionTranslator<?> translator) <V extends org.babyfish.jimmer.View<E>>
SimpleSaveResult.View<E, V> execute(Connection con, Class<V> viewType) execute(Connection con, Fetcher<E> fetcher) setAssociatedMode(org.babyfish.jimmer.meta.ImmutableProp prop, AssociatedSaveMode mode) setAutoIdOnlyTargetChecking(org.babyfish.jimmer.meta.ImmutableProp prop, boolean checking) setConstraintViolationTranslatable(boolean transferable) setDeleteMode(DeleteMode mode) setDissociateAction(org.babyfish.jimmer.meta.ImmutableProp prop, org.babyfish.jimmer.sql.DissociateAction dissociateAction) setDumbBatchAcceptable(boolean acceptable) setEntityOptimisticLock(org.babyfish.jimmer.meta.ImmutableType type, UnloadedVersionBehavior behavior, UserOptimisticLock<Object, Table<Object>> block) setIdOnlyAsReference(org.babyfish.jimmer.meta.ImmutableProp prop, boolean asReference) setIdOnlyAsReferenceAll(boolean asReference) setKeyOnlyAsReference(org.babyfish.jimmer.meta.ImmutableProp prop, boolean asReference) setKeyProps(String group, org.babyfish.jimmer.meta.ImmutableProp... props) setMaxCommandJoinCount(int count) <T extends Table<E>>
SimpleEntitySaveCommand<E> setOptimisticLock(Class<T> tableType, UnloadedVersionBehavior behavior, UserOptimisticLock<E, T> block) Example:setPessimisticLock(Class<?> entityType, boolean lock) setTargetTransferMode(org.babyfish.jimmer.meta.ImmutableProp prop, org.babyfish.jimmer.sql.TargetTransferMode mode) setTargetTransferModeAll(org.babyfish.jimmer.sql.TargetTransferMode mode) setTransactionRequired(boolean required) setUpsertMask(UpsertMask<?> mask) Set UpsertMask object从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait从接口继承的方法 org.babyfish.jimmer.sql.ast.mutation.SimpleEntitySaveCommand
execute, execute, execute, execute, setAssociatedMode, setAutoIdOnlyTargetChecking, setAutoIdOnlyTargetChecking, setAutoIdOnlyTargetChecking, setDissociateAction, setDumbBatchAcceptable, setIdOnlyAsReference, setKeyOnlyAsReference, setKeyOnlyAsReference, setKeyOnlyAsReference, setKeyProps, setKeyProps, setKeyProps, setOptimisticLock, setPessimisticLock, setTargetTransferMode, setUpsertMask, setUpsertMask
-
构造器详细资料
-
SimpleEntitySaveCommandImpl
-
-
方法详细资料
-
setMode
- 指定者:
setMode在接口中AbstractEntitySaveCommand- 指定者:
setMode在接口中SimpleEntitySaveCommand<E>
-
setAssociatedModeAll
- 指定者:
setAssociatedModeAll在接口中AbstractEntitySaveCommand- 指定者:
setAssociatedModeAll在接口中SimpleEntitySaveCommand<E>
-
setAssociatedMode
public SimpleEntitySaveCommand<E> setAssociatedMode(org.babyfish.jimmer.meta.ImmutableProp prop, AssociatedSaveMode mode) - 指定者:
setAssociatedMode在接口中AbstractEntitySaveCommand- 指定者:
setAssociatedMode在接口中SimpleEntitySaveCommand<E>
-
setKeyProps
public SimpleEntitySaveCommand<E> setKeyProps(String group, org.babyfish.jimmer.meta.ImmutableProp... props) - 指定者:
setKeyProps在接口中AbstractEntitySaveCommand- 指定者:
setKeyProps在接口中SimpleEntitySaveCommand<E>
-
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- 指定者:
setUpsertMask在接口中SimpleEntitySaveCommand<E>- 参数:
mask- The upsert mask object, it cannot be null
-
setAutoIdOnlyTargetCheckingAll
-
setAutoIdOnlyTargetChecking
public SimpleEntitySaveCommand<E> setAutoIdOnlyTargetChecking(org.babyfish.jimmer.meta.ImmutableProp prop, boolean checking) -
setIdOnlyAsReferenceAll
- 指定者:
setIdOnlyAsReferenceAll在接口中AbstractEntitySaveCommand- 指定者:
setIdOnlyAsReferenceAll在接口中SimpleEntitySaveCommand<E>
-
setIdOnlyAsReference
public SimpleEntitySaveCommand<E> setIdOnlyAsReference(org.babyfish.jimmer.meta.ImmutableProp prop, boolean asReference) - 指定者:
setIdOnlyAsReference在接口中AbstractEntitySaveCommand- 指定者:
setIdOnlyAsReference在接口中SimpleEntitySaveCommand<E>
-
setKeyOnlyAsReferenceAll
- 指定者:
setKeyOnlyAsReferenceAll在接口中AbstractEntitySaveCommand- 指定者:
setKeyOnlyAsReferenceAll在接口中SimpleEntitySaveCommand<E>
-
setKeyOnlyAsReference
public SimpleEntitySaveCommand<E> setKeyOnlyAsReference(org.babyfish.jimmer.meta.ImmutableProp prop, boolean asReference) - 指定者:
setKeyOnlyAsReference在接口中AbstractEntitySaveCommand- 指定者:
setKeyOnlyAsReference在接口中SimpleEntitySaveCommand<E>
-
setDissociateAction
public SimpleEntitySaveCommand<E> setDissociateAction(org.babyfish.jimmer.meta.ImmutableProp prop, org.babyfish.jimmer.sql.DissociateAction dissociateAction) - 指定者:
setDissociateAction在接口中AbstractEntitySaveCommand- 指定者:
setDissociateAction在接口中SimpleEntitySaveCommand<E>
-
setTargetTransferMode
public SimpleEntitySaveCommand<E> setTargetTransferMode(org.babyfish.jimmer.meta.ImmutableProp prop, org.babyfish.jimmer.sql.TargetTransferMode mode) - 指定者:
setTargetTransferMode在接口中AbstractEntitySaveCommand- 指定者:
setTargetTransferMode在接口中SimpleEntitySaveCommand<E>
-
setTargetTransferModeAll
public SimpleEntitySaveCommand<E> setTargetTransferModeAll(org.babyfish.jimmer.sql.TargetTransferMode mode) - 指定者:
setTargetTransferModeAll在接口中AbstractEntitySaveCommand- 指定者:
setTargetTransferModeAll在接口中SimpleEntitySaveCommand<E>
-
setPessimisticLock
- 指定者:
setPessimisticLock在接口中AbstractEntitySaveCommand- 指定者:
setPessimisticLock在接口中SimpleEntitySaveCommand<E>
-
setPessimisticLockAll
- 指定者:
setPessimisticLockAll在接口中AbstractEntitySaveCommand- 指定者:
setPessimisticLockAll在接口中SimpleEntitySaveCommand<E>
-
setOptimisticLock
public <T extends Table<E>> SimpleEntitySaveCommand<E> setOptimisticLock(Class<T> tableType, UnloadedVersionBehavior behavior, UserOptimisticLock<E, T> block) 从接口复制的说明:SimpleEntitySaveCommandExample:sqlClient .getEntities() .saveCommand(process) .setOptimisticLock(ProcessTable.class, UnloadedVersionBehavior.INCREASE, (table, vf) -> { return Predicate.and( table.version().eq(vf.newNumber(ProcessProps.VERSION)), table.status().eq(States.PENDING) ); }) .execute()- 指定者:
setOptimisticLock在接口中SimpleEntitySaveCommand<E>
-
setEntityOptimisticLock
public SimpleEntitySaveCommand<E> setEntityOptimisticLock(org.babyfish.jimmer.meta.ImmutableType type, UnloadedVersionBehavior behavior, UserOptimisticLock<Object, Table<Object>> block) -
setDeleteMode
- 指定者:
setDeleteMode在接口中AbstractEntitySaveCommand- 指定者:
setDeleteMode在接口中SimpleEntitySaveCommand<E>
-
setMaxCommandJoinCount
- 指定者:
setMaxCommandJoinCount在接口中AbstractEntitySaveCommand- 指定者:
setMaxCommandJoinCount在接口中SimpleEntitySaveCommand<E>
-
setDumbBatchAcceptable
- 指定者:
setDumbBatchAcceptable在接口中AbstractEntitySaveCommand- 指定者:
setDumbBatchAcceptable在接口中SimpleEntitySaveCommand<E>
-
setConstraintViolationTranslatable
-
addExceptionTranslator
- 指定者:
addExceptionTranslator在接口中AbstractEntitySaveCommand- 指定者:
addExceptionTranslator在接口中SimpleEntitySaveCommand<E>
-
setTransactionRequired
- 指定者:
setTransactionRequired在接口中AbstractEntitySaveCommand- 指定者:
setTransactionRequired在接口中SimpleEntitySaveCommand<E>
-
execute
- 指定者:
execute在接口中SimpleEntitySaveCommand<E>
-
execute
public <V extends org.babyfish.jimmer.View<E>> SimpleSaveResult.View<E,V> execute(Connection con, Class<V> viewType) - 指定者:
execute在接口中SimpleEntitySaveCommand<E>
-