类 Config


  • public class Config
    extends Object
    通用Mapper属性配置
    作者:
    liuzh
    • 构造器详细资料

      • Config

        public Config()
    • 方法详细资料

      • getCatalog

        public String getCatalog()
      • setCatalog

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

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

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

        public String getPrefix()
        获取表前缀,带catalog或schema
        返回:
      • getSchema

        public String getSchema()
      • setSchema

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

        public String getSeqFormat()
        获取序列格式化模板
        返回:
      • setSeqFormat

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

        public Style getStyle()
      • setStyle

        public void setStyle​(Style style)
      • getWrapKeyword

        public String getWrapKeyword()
      • setWrapKeyword

        public void setWrapKeyword​(String wrapKeyword)
      • isBEFORE

        public boolean isBEFORE()
        获取SelectKey的Order
        返回:
      • setBEFORE

        public void setBEFORE​(boolean BEFORE)
      • isCheckExampleEntityClass

        public boolean isCheckExampleEntityClass()
      • setCheckExampleEntityClass

        public void setCheckExampleEntityClass​(boolean checkExampleEntityClass)
      • 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)
        参数:
        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)
      • 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)
        配置属性
        参数:
        properties -