接口 AbstractEntitySaveCommand
- 所有已知子接口:
BatchEntitySaveCommand<E>,SaveCommandImplementor,SimpleEntitySaveCommand<E>
public interface AbstractEntitySaveCommand
-
方法概要
修饰符和类型方法说明addExceptionTranslator(ExceptionTranslator<?> translator) setAssociatedMode(org.babyfish.jimmer.meta.ImmutableProp prop, AssociatedSaveMode mode) setAssociatedMode(org.babyfish.jimmer.meta.TypedProp.Association<?, ?> prop, AssociatedSaveMode mode) setAutoIdOnlyTargetChecking(org.babyfish.jimmer.meta.ImmutableProp prop) setAutoIdOnlyTargetChecking(org.babyfish.jimmer.meta.ImmutableProp prop, boolean checking) setAutoIdOnlyTargetChecking(org.babyfish.jimmer.meta.TypedProp.Association<?, ?> prop) setAutoIdOnlyTargetChecking(org.babyfish.jimmer.meta.TypedProp.Association<?, ?> prop, boolean checking) setDeleteMode(DeleteMode mode) setDissociateAction(org.babyfish.jimmer.meta.ImmutableProp prop, org.babyfish.jimmer.sql.DissociateAction dissociateAction) default AbstractEntitySaveCommandsetDissociateAction(org.babyfish.jimmer.meta.TypedProp.Reference<?, ?> prop, org.babyfish.jimmer.sql.DissociateAction dissociateAction) setDumbBatchAcceptable(boolean acceptable) setKeyOnlyAsReference(org.babyfish.jimmer.meta.ImmutableProp prop) setKeyOnlyAsReference(org.babyfish.jimmer.meta.ImmutableProp prop, boolean asReference) setKeyOnlyAsReference(org.babyfish.jimmer.meta.TypedProp.Association<?, ?> prop) setKeyOnlyAsReference(org.babyfish.jimmer.meta.TypedProp.Association<?, ?> prop, boolean asReference) setKeyProps(String group, org.babyfish.jimmer.meta.ImmutableProp... props) setKeyProps(String group, org.babyfish.jimmer.meta.TypedProp.Single<?, ?>... props) setKeyProps(org.babyfish.jimmer.meta.ImmutableProp... props) setKeyProps(org.babyfish.jimmer.meta.TypedProp.Single<?, ?>... props) setMaxCommandJoinCount(int count) setPessimisticLock(Class<?> entityType) setPessimisticLock(Class<?> entityType, boolean lock) setTargetTransferMode(org.babyfish.jimmer.meta.ImmutableProp prop, org.babyfish.jimmer.sql.TargetTransferMode mode) default AbstractEntitySaveCommandsetTargetTransferMode(org.babyfish.jimmer.meta.TypedProp.ReferenceList<?, ?> prop, org.babyfish.jimmer.sql.TargetTransferMode mode) setTargetTransferModeAll(org.babyfish.jimmer.sql.TargetTransferMode mode) setUpsertMask(org.babyfish.jimmer.meta.ImmutableProp... props) Set UpsertMask with updatable propertiessetUpsertMask(org.babyfish.jimmer.meta.TypedProp.Single<?, ?>... props) Set UpsertMask with updatable propertiessetUpsertMask(UpsertMask<?> mask) Set UpsertMask object
-
方法详细资料
-
setMode
-
setAssociatedModeAll
-
setAssociatedMode
@NewChain AbstractEntitySaveCommand setAssociatedMode(org.babyfish.jimmer.meta.ImmutableProp prop, AssociatedSaveMode mode) -
setAssociatedMode
@NewChain AbstractEntitySaveCommand setAssociatedMode(org.babyfish.jimmer.meta.TypedProp.Association<?, ?> prop, AssociatedSaveMode mode) -
setKeyProps
-
setKeyProps
@NewChain AbstractEntitySaveCommand setKeyProps(String group, org.babyfish.jimmer.meta.ImmutableProp... props) -
setKeyProps
@NewChain AbstractEntitySaveCommand setKeyProps(org.babyfish.jimmer.meta.TypedProp.Single<?, ?>... props) -
setKeyProps
@NewChain AbstractEntitySaveCommand setKeyProps(String group, org.babyfish.jimmer.meta.TypedProp.Single<?, ?>... props) -
setUpsertMask
Set 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- 参数:
props- Properties that can be updated- its length cannot be 0
- all properties must belong to one entity type
-
setUpsertMask
@NewChain AbstractEntitySaveCommand setUpsertMask(org.babyfish.jimmer.meta.TypedProp.Single<?, ?>... props) Set 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- 参数:
props- Properties that can be updated- its length cannot be 0
- all properties must belong to one entity type
-
setUpsertMask
Set 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- 参数:
mask- The upsert mask object, it cannot be null
-
setAutoIdOnlyTargetCheckingAll
-
setAutoIdOnlyTargetChecking
@NewChain AbstractEntitySaveCommand setAutoIdOnlyTargetChecking(org.babyfish.jimmer.meta.TypedProp.Association<?, ?> prop) -
setAutoIdOnlyTargetChecking
@NewChain AbstractEntitySaveCommand setAutoIdOnlyTargetChecking(org.babyfish.jimmer.meta.TypedProp.Association<?, ?> prop, boolean checking) -
setAutoIdOnlyTargetChecking
@NewChain AbstractEntitySaveCommand setAutoIdOnlyTargetChecking(org.babyfish.jimmer.meta.ImmutableProp prop) -
setAutoIdOnlyTargetChecking
@NewChain AbstractEntitySaveCommand setAutoIdOnlyTargetChecking(org.babyfish.jimmer.meta.ImmutableProp prop, boolean checking) -
setKeyOnlyAsReferenceAll
-
setKeyOnlyAsReference
@NewChain AbstractEntitySaveCommand setKeyOnlyAsReference(org.babyfish.jimmer.meta.ImmutableProp prop) -
setKeyOnlyAsReference
@NewChain AbstractEntitySaveCommand setKeyOnlyAsReference(org.babyfish.jimmer.meta.ImmutableProp prop, boolean asReference) -
setKeyOnlyAsReference
@NewChain AbstractEntitySaveCommand setKeyOnlyAsReference(org.babyfish.jimmer.meta.TypedProp.Association<?, ?> prop) -
setKeyOnlyAsReference
@NewChain AbstractEntitySaveCommand setKeyOnlyAsReference(org.babyfish.jimmer.meta.TypedProp.Association<?, ?> prop, boolean asReference) -
setDissociateAction
@NewChain default AbstractEntitySaveCommand setDissociateAction(org.babyfish.jimmer.meta.TypedProp.Reference<?, ?> prop, org.babyfish.jimmer.sql.DissociateAction dissociateAction) -
setDissociateAction
@NewChain AbstractEntitySaveCommand setDissociateAction(org.babyfish.jimmer.meta.ImmutableProp prop, org.babyfish.jimmer.sql.DissociateAction dissociateAction) -
setTargetTransferMode
@NewChain default AbstractEntitySaveCommand setTargetTransferMode(org.babyfish.jimmer.meta.TypedProp.ReferenceList<?, ?> prop, org.babyfish.jimmer.sql.TargetTransferMode mode) -
setTargetTransferMode
@NewChain AbstractEntitySaveCommand setTargetTransferMode(org.babyfish.jimmer.meta.ImmutableProp prop, org.babyfish.jimmer.sql.TargetTransferMode mode) -
setTargetTransferModeAll
@NewChain AbstractEntitySaveCommand setTargetTransferModeAll(org.babyfish.jimmer.sql.TargetTransferMode mode) -
setDeleteMode
-
setMaxCommandJoinCount
-
setPessimisticLock
-
setPessimisticLock
-
setPessimisticLockAll
-
setDumbBatchAcceptable
-
setDumbBatchAcceptable
-
addExceptionTranslator
-