类 GlobalConfig

java.lang.Object
com.baomidou.mybatisplus.core.config.GlobalConfig
所有已实现的接口:
Serializable

public class GlobalConfig extends Object implements Serializable
Mybatis 全局缓存
从以下版本开始:
2016-12-06
作者:
Caratacus
另请参阅:
  • 构造器详细资料

    • GlobalConfig

      public GlobalConfig()
  • 方法详细资料

    • isBanner

      public boolean isBanner()
      是否开启 LOGO
    • isEnableSqlRunner

      public boolean isEnableSqlRunner()
      是否初始化 SqlRunner
    • getDbConfig

      public GlobalConfig.DbConfig getDbConfig()
      数据库相关配置
    • getSqlInjector

      public ISqlInjector getSqlInjector()
      SQL注入器
    • getSuperMapperClass

      public Class<?> getSuperMapperClass()
      Mapper父类
    • getSqlSessionFactory

      @Deprecated public org.apache.ibatis.session.SqlSessionFactory getSqlSessionFactory()
      已过时。
      3.5.3.2
      仅用于缓存 SqlSessionFactory(外部勿进行set,set了也没用)
    • getMapperRegistryCache

      public Set<String> getMapperRegistryCache()
      缓存已注入CRUD的Mapper信息
    • getMetaObjectHandler

      public MetaObjectHandler getMetaObjectHandler()
      元对象字段填充控制器
    • getAnnotationHandler

      public AnnotationHandler getAnnotationHandler()
      注解控制器
    • getPostInitTableInfoHandler

      public PostInitTableInfoHandler getPostInitTableInfoHandler()
      参与 TableInfo 的初始化
    • getIdentifierGenerator

      public IdentifierGenerator getIdentifierGenerator()
      主键生成器
    • getSequence

      public GlobalConfig.Sequence getSequence()
      数据库相关配置
    • setBanner

      public GlobalConfig setBanner(boolean banner)
      是否开启 LOGO
      返回:
      this.
    • setEnableSqlRunner

      public GlobalConfig setEnableSqlRunner(boolean enableSqlRunner)
      是否初始化 SqlRunner
      返回:
      this.
    • setDbConfig

      public GlobalConfig setDbConfig(GlobalConfig.DbConfig dbConfig)
      数据库相关配置
      返回:
      this.
    • setSqlInjector

      public GlobalConfig setSqlInjector(ISqlInjector sqlInjector)
      SQL注入器
      返回:
      this.
    • setSuperMapperClass

      public GlobalConfig setSuperMapperClass(Class<?> superMapperClass)
      Mapper父类
      返回:
      this.
    • setSqlSessionFactory

      @Deprecated public GlobalConfig setSqlSessionFactory(org.apache.ibatis.session.SqlSessionFactory sqlSessionFactory)
      已过时。
      3.5.3.2
      仅用于缓存 SqlSessionFactory(外部勿进行set,set了也没用)
      返回:
      this.
    • setMapperRegistryCache

      public GlobalConfig setMapperRegistryCache(Set<String> mapperRegistryCache)
      缓存已注入CRUD的Mapper信息
      返回:
      this.
    • setMetaObjectHandler

      public GlobalConfig setMetaObjectHandler(MetaObjectHandler metaObjectHandler)
      元对象字段填充控制器
      返回:
      this.
    • setAnnotationHandler

      public GlobalConfig setAnnotationHandler(AnnotationHandler annotationHandler)
      注解控制器
      返回:
      this.
    • setPostInitTableInfoHandler

      public GlobalConfig setPostInitTableInfoHandler(PostInitTableInfoHandler postInitTableInfoHandler)
      参与 TableInfo 的初始化
      返回:
      this.
    • setIdentifierGenerator

      public GlobalConfig setIdentifierGenerator(IdentifierGenerator identifierGenerator)
      主键生成器
      返回:
      this.
    • setSequence

      public GlobalConfig setSequence(GlobalConfig.Sequence sequence)
      数据库相关配置
      返回:
      this.
    • equals

      public boolean equals(Object o)
      覆盖:
      equals 在类中 Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      覆盖:
      hashCode 在类中 Object
    • toString

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