类 UpsertMask<E>

java.lang.Object
org.babyfish.jimmer.sql.ast.mutation.UpsertMask<E>

public class UpsertMask<E> extends Object
  • 方法详细资料

    • of

      public static <E> UpsertMask<E> of(Class<E> type)
    • forbidInsert

      @NewChain public UpsertMask<E> forbidInsert()
    • forbidUpdate

      @NewChain public UpsertMask<E> forbidUpdate()
    • addInsertableProp

      @NewChain public UpsertMask<E> addInsertableProp(org.babyfish.jimmer.meta.ImmutableProp prop)
    • addInsertableProp

      @NewChain public UpsertMask<E> addInsertableProp(org.babyfish.jimmer.meta.TypedProp.Single<E,?> prop)
    • addInsertablePath

      @NewChain public UpsertMask<E> addInsertablePath(org.babyfish.jimmer.meta.ImmutableProp... props)
      Add insertable path, the type of first property must be embeddable
      参数:
      props - The properties of embeddable properties path
      返回:
      Another UpsertMask object which is not current object
    • addInsertablePath

      @NewChain public UpsertMask<E> addInsertablePath(org.babyfish.jimmer.meta.TypedProp.Single<E,?> prop, org.babyfish.jimmer.meta.TypedProp.Single<?,?>... embeddedProps)
      Add insertable path, the first property must be embeddable
      参数:
      prop - The entity property whose type is embeddable
      embeddedProps - Deeper properties of embeddable path
      返回:
      Another UpsertMask object which is not current object
    • addUpdatableProp

      @NewChain public UpsertMask<E> addUpdatableProp(org.babyfish.jimmer.meta.ImmutableProp prop)
    • addUpdatableProp

      @NewChain public UpsertMask<E> addUpdatableProp(org.babyfish.jimmer.meta.TypedProp.Single<E,?> prop)
    • addUpdatablePath

      @NewChain public UpsertMask<E> addUpdatablePath(org.babyfish.jimmer.meta.ImmutableProp... props)
      Add updatable path, the type of first property must be embeddable
      参数:
      props - The properties of embeddable properties path
      返回:
      Another UpsertMask object which is not current object
    • addUpdatablePath

      @NewChain public UpsertMask<E> addUpdatablePath(org.babyfish.jimmer.meta.TypedProp.Single<E,?> prop, org.babyfish.jimmer.meta.TypedProp.Single<?,?>... embeddedProps)
      Add updatable path, the first property must be embeddable
      参数:
      prop - The entity property whose type is embeddable
      embeddedProps - Deeper properties of embeddable path
      返回:
      Another UpsertMask object which is not current object
    • getType

      @NotNull public @NotNull org.babyfish.jimmer.meta.ImmutableType getType()
    • getInsertablePaths

      @Nullable public @Nullable List<List<org.babyfish.jimmer.meta.ImmutableProp>> getInsertablePaths()
    • getUpdatablePaths

      @Nullable public @Nullable List<List<org.babyfish.jimmer.meta.ImmutableProp>> getUpdatablePaths()
    • toString

      public String toString()
      覆盖:
      toString 在类中 Object