类 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
    • getWorkerId

      @Deprecated public Long getWorkerId()
      已过时。
      3.3.0
      机器 ID 部分
      另请参阅:
      setIdentifierGenerator(IdentifierGenerator)
    • getDatacenterId

      @Deprecated public Long getDatacenterId()
      已过时。
      3.3.0
      数据标识 ID 部分
      另请参阅:
      setIdentifierGenerator(IdentifierGenerator)
    • isEnableSqlRunner

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

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

      public ISqlInjector getSqlInjector()
      SQL注入器
    • getSuperMapperClass

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

      public org.apache.ibatis.session.SqlSessionFactory getSqlSessionFactory()
      仅用于缓存 SqlSessionFactory(外部勿进行set,set了也没用)
    • getMapperRegistryCache

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

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

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

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

      @Deprecated public GlobalConfig setWorkerId​(Long workerId)
      已过时。
      3.3.0
      机器 ID 部分
      返回:
      this.
      另请参阅:
      setIdentifierGenerator(IdentifierGenerator)
    • setDatacenterId

      @Deprecated public GlobalConfig setDatacenterId​(Long datacenterId)
      已过时。
      3.3.0
      数据标识 ID 部分
      返回:
      this.
      另请参阅:
      setIdentifierGenerator(IdentifierGenerator)
    • 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

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

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

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

      public GlobalConfig setIdentifierGenerator​(IdentifierGenerator identifierGenerator)
      主键生成器
      返回:
      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