Class Property

java.lang.Object
org.miaixz.bus.mapper.entity.Property

public class Property extends Object
通用Mapper属性配置
Since:
Java 17+
Author:
Kimi Liu
  • Field Details

  • Constructor Details

    • Property

      public Property()
  • Method Details

    • getCatalog

      public String getCatalog()
    • setCatalog

      public void setCatalog(String catalog)
      设置全局的catalog,默认为空,如果设置了值,操作表时的sql会是catalog.tablename
      Parameters:
      catalog - 表空间
    • getIDENTITY

      public String getIDENTITY()
      获取主键自增回写SQL
      Returns:
      the string
    • setIDENTITY

      public void setIDENTITY(String IDENTITY)
      主键自增回写方法,默认值MYSQL,详细说明请看文档
      Parameters:
      IDENTITY - 自增信息
    • getPrefix

      public String getPrefix()
      获取表前缀,带catalog或schema
      Returns:
      the string
    • getSchema

      public String getSchema()
    • setSchema

      public void setSchema(String schema)
      设置全局的schema,默认为空,如果设置了值,操作表时的sql会是schema.tablename 如果同时设置了catalog,优先使用catalog.tablename
      Parameters:
      schema - 数据模型
    • getSeqFormat

      public String getSeqFormat()
      获取序列格式化模板
      Returns:
      the sting
    • setSeqFormat

      public void setSeqFormat(String seqFormat)
      序列的获取规则,使用{num}格式化参数,默认值为{0}.nextval,针对Oracle 可选参数一共3个,对应0,1,2,3分别为SequenceName,ColumnName, PropertyName,TableName
      Parameters:
      seqFormat - 规则
    • getStyle

      public org.miaixz.bus.core.lang.EnumMap.Naming getStyle()
    • setStyle

      public void setStyle(org.miaixz.bus.core.lang.EnumMap.Naming naming)
    • getWrapKeyword

      public String getWrapKeyword()
    • setWrapKeyword

      public void setWrapKeyword(String wrapKeyword)
    • isBEFORE

      public boolean isBEFORE()
      获取SelectKey的Order
      Returns:
      the boolean
    • setBEFORE

      public void setBEFORE(boolean BEFORE)
    • isCheckConditionEntityClass

      public boolean isCheckConditionEntityClass()
    • setCheckConditionEntityClass

      public void setCheckConditionEntityClass(boolean checkConditionEntityClass)
    • isEnableMethodAnnotation

      public boolean isEnableMethodAnnotation()
    • setEnableMethodAnnotation

      public void setEnableMethodAnnotation(boolean enableMethodAnnotation)
    • isEnumAsSimpleType

      public boolean isEnumAsSimpleType()
    • setEnumAsSimpleType

      public void setEnumAsSimpleType(boolean enumAsSimpleType)
    • isNotEmpty

      public boolean isNotEmpty()
    • setNotEmpty

      public void setNotEmpty(boolean notEmpty)
    • isUseSimpleType

      public boolean isUseSimpleType()
    • setUseSimpleType

      public void setUseSimpleType(boolean useSimpleType)
    • setOrder

      public void setOrder(String order)
      主键自增回写方法执行顺序,默认AFTER,可选值为(BEFORE|AFTER)
      Parameters:
      order - 排序
    • getIdentity

      public String getIdentity()
    • setIdentity

      public void setIdentity(String identity)
    • getMappers

      public List<Class> getMappers()
    • setMappers

      public void setMappers(List<Class> mappers)
    • isBefore

      public boolean isBefore()
    • setBefore

      public void setBefore(boolean before)
    • getResolveClass

      public Class<? extends EntityResolve> getResolveClass()
    • setResolveClass

      public void setResolveClass(Class<? extends EntityResolve> resolveClass)
    • isSafeDelete

      public boolean isSafeDelete()
    • setSafeDelete

      public void setSafeDelete(boolean safeDelete)
    • isSafeUpdate

      public boolean isSafeUpdate()
    • setSafeUpdate

      public void setSafeUpdate(boolean safeUpdate)
    • isUseJavaType

      public boolean isUseJavaType()
    • setUseJavaType

      public void setUseJavaType(boolean useJavaType)
    • setProperties

      public void setProperties(Properties properties)
      配置属性
      Parameters:
      properties - 属性