接口 ImmutableType


public interface ImmutableType
  • 方法详细资料

    • get

      static ImmutableType get(Class<?> javaClass)
    • tryGet

      static ImmutableType tryGet(Class<?> javaClass)
    • newBuilder

      static ImmutableType.Builder newBuilder(Class<?> javaClass, ImmutableType superType, BiFunction<DraftContext,Object,Draft> draftFactory)
    • newBuilder

      static ImmutableType.Builder newBuilder(kotlin.reflect.KClass<?> kotlinClass, ImmutableType superType, BiFunction<DraftContext,Object,Draft> draftFactory)
    • getJavaClass

      @NotNull Class<?> getJavaClass()
    • isKotlinClass

      boolean isKotlinClass()
    • isEntity

      boolean isEntity()
    • isMappedSuperclass

      boolean isMappedSuperclass()
    • isEmbeddable

      boolean isEmbeddable()
    • getImmutableAnnotation

      @NotNull Annotation getImmutableAnnotation()
    • isAssignableFrom

      boolean isAssignableFrom(ImmutableType type)
    • getSuperType

      @Nullable ImmutableType getSuperType()
    • getDraftFactory

      @NotNull BiFunction<DraftContext,Object,Draft> getDraftFactory()
    • getDeclaredProps

      @NotNull Map<String,ImmutableProp> getDeclaredProps()
    • getIdProp

      ImmutableProp getIdProp()
      返回:
      The id property declared in this type of super types.
      • If the current type is decorated by Entity, returns non-null value
      • If the current type is decorated by MappedSuperclass, find id property in current type of super types, if nothing can be found, return null
      • Otherwise, always returns null
    • getVersionProp

      @Nullable ImmutableProp getVersionProp()
      返回:
      The version property declared in this type of super types.
      • If the current type is decorated by Entity, returns non-null value
      • If the current type is decorated by MappedSuperclass, find version property in current type of super types, if nothing can be found, return null
      • Otherwise, always returns null
    • getDeclaredLogicalDeletedInfo

      @Nullable LogicalDeletedInfo getDeclaredLogicalDeletedInfo()
      Get the logical deleted property declared in this type, exclude super types
      返回:
      The logical deleted property, may be null.
    • getLogicalDeletedInfo

      @Nullable LogicalDeletedInfo getLogicalDeletedInfo()
      Get the logical deleted property declared in this type or super types
      返回:
      The logical deleted property, may be null.
    • getKeyProps

      @NotNull Set<ImmutableProp> getKeyProps()
    • getTableName

      @Nullable String getTableName()
    • getProps

      @NotNull Map<String,ImmutableProp> getProps()
    • getProp

      @NotNull ImmutableProp getProp(String name)
    • getProp

      @NotNull ImmutableProp getProp(int id)
    • getPropChainByColumnName

      @NotNull List<ImmutableProp> getPropChainByColumnName(String columnName)
    • getSelectableProps

      @NotNull Map<String,ImmutableProp> getSelectableProps()
    • getSelectableReferenceProps

      @NotNull Map<String,ImmutableProp> getSelectableReferenceProps()
    • getIdGenerator

      @Nullable IdGenerator getIdGenerator()