接口 AbstractEntitySaveCommand

所有已知子接口:
BatchEntitySaveCommand<E>, SaveCommandImplementor, SimpleEntitySaveCommand<E>
所有已知实现类:
BatchEntitySaveCommandImpl, SimpleEntitySaveCommandImpl

public interface AbstractEntitySaveCommand
  • 方法详细资料

    • setMode

      @NewChain AbstractEntitySaveCommand setMode(SaveMode mode)
    • setAssociatedModeAll

      @NewChain AbstractEntitySaveCommand setAssociatedModeAll(AssociatedSaveMode mode)
    • 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

      @NewChain AbstractEntitySaveCommand setKeyProps(org.babyfish.jimmer.meta.ImmutableProp... props)
    • 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

      @NewChain AbstractEntitySaveCommand setUpsertMask(org.babyfish.jimmer.meta.ImmutableProp... props)
      Set UpsertMask with updatable properties

      When upsert is executed, existing rows will be updated. By default, the properties is determined by object shape

      
       updatedProperties = propertiesOf(dynamicEntity) - conflictIdOrKey
       

      If 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 properties

      When upsert is executed, existing rows will be updated. By default, the properties is determined by object shape

      
       updatedProperties = propertiesOf(dynamicEntity) - conflictIdOrKey
       

      If 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(UpsertMask<?> mask)
      Set UpsertMask object

      When 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) - conflictIdOrKey
       

      If 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

      @NewChain AbstractEntitySaveCommand 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)
    • setIdOnlyAsReferenceAll

      @NewChain AbstractEntitySaveCommand setIdOnlyAsReferenceAll(boolean asReference)
    • setIdOnlyAsReference

      @NewChain AbstractEntitySaveCommand setIdOnlyAsReference(org.babyfish.jimmer.meta.ImmutableProp prop, boolean asReference)
    • setIdOnlyAsReference

      @NewChain AbstractEntitySaveCommand setIdOnlyAsReference(org.babyfish.jimmer.meta.TypedProp.Association<?,?> prop, boolean asReference)
    • setKeyOnlyAsReferenceAll

      @NewChain AbstractEntitySaveCommand 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

      @NewChain AbstractEntitySaveCommand setDeleteMode(DeleteMode mode)
    • setMaxCommandJoinCount

      @NewChain AbstractEntitySaveCommand setMaxCommandJoinCount(int count)
    • setPessimisticLock

      @NewChain AbstractEntitySaveCommand setPessimisticLock(Class<?> entityType, boolean lock)
    • setPessimisticLock

      @NewChain AbstractEntitySaveCommand setPessimisticLock(Class<?> entityType)
    • setPessimisticLockAll

      @NewChain AbstractEntitySaveCommand setPessimisticLockAll()
    • setDumbBatchAcceptable

      @NewChain AbstractEntitySaveCommand setDumbBatchAcceptable()
    • setDumbBatchAcceptable

      @NewChain AbstractEntitySaveCommand setDumbBatchAcceptable(boolean acceptable)
    • setConstraintViolationTranslatable

      @NewChain AbstractEntitySaveCommand setConstraintViolationTranslatable(boolean transferable)
    • addExceptionTranslator

      @NewChain AbstractEntitySaveCommand addExceptionTranslator(ExceptionTranslator<?> translator)
    • setTransactionRequired

      @NewChain AbstractEntitySaveCommand setTransactionRequired(boolean required)