public final class HoneyConfig extends Object implements org.teasoft.bee.logging.LoggerTypeConfig, org.teasoft.bee.logging.LogSqlConfig
| Modifier and Type | Method and Description |
|---|---|
int |
getDatabaseMajorVersion() |
String |
getDbName()
sharding, multi-ds 直接从config拿dbName则不会.
|
Map<String,Map<String,String>> |
getDbs() |
String |
getDriverName() |
static HoneyConfig |
getHoneyConfig() |
String |
getLoggerType() |
boolean |
getMultiDsSharding()
return multiDS_sharding
|
String |
getPassword() |
String |
getSchemaName() |
Map<String,Map<String,String>> |
getSharding() |
String |
getSqlLoggerLevel() |
String |
getUrl() |
String |
getUsername() |
boolean |
isShowSQL() |
void |
overrideByActive(String active)
override by Active file
|
void |
resetBeeProperties(InputStream inputStream)
reset the config with InputStream of BeeProperties.
|
void |
resetBeeProperties(String folderPath)
使用指定路径的bee.properties进行配置.set the folder path of bee.properties
若使用第三方框架管理配置,不建议在此处重置配置.
|
void |
setDatabaseMajorVersion(int databaseMajorVersion) |
void |
setDbName(String dbName)
set dbName like in DatabaseConst.
|
void |
setDbs(Map<String,Map<String,String>> dbs) |
void |
setDriverName(String driverName) |
void |
setLoggerType(String loggerType)
if change loggerType, need call LoggerFactory.init(LoggerTypeConfig loggerTypeConfig);
|
void |
setPassword(String password) |
void |
setSchemaName(String schemaName) |
void |
setSharding(Map<String,Map<String,String>> sharding) |
void |
setUrl(String url) |
void |
setUsername(String username) |
public String active
public String sqlLoggerLevel
public String systemLoggerLevel
public boolean logDonotPrintLevel
public String dateFormat
public String sqlKeyWordCase
public boolean notDeleteWholeRecords
public boolean notUpdateWholeRecords
public boolean notCatchModifyDuplicateException
public boolean notShowModifyDuplicateException
public boolean showMongoSelectAllFields
public boolean eachBatchCommit
public String lang
public boolean openDefineColumn
public boolean openFieldTypeHandler
public boolean openEntityCanExtend
public boolean closeDefaultParaResultRegistry
public boolean showSQL
public boolean showShardingSQL
public boolean showSqlExecuteTime
public int minSqlExecuteTime
public boolean showSql_showExecutableSql
public boolean showSql_sqlFormat
public boolean showSql_donotPrintCurrentDate
public boolean naming_toLowerCaseBefore
public int naming_translateType
public boolean naming_useMoreTranslateType
public String naming_entity2tableMappingList
public boolean naming_allowKeyWordInColumn
public String naming_SqlKeyWordInColumn
public boolean selectJson_ignoreNull
public boolean selectJson_timestampWithMillisecond
public boolean selectJson_dateWithMillisecond
public boolean selectJson_timeWithMillisecond
public boolean selectJson_longToString
public boolean returnStringList_nullToEmptyString
public boolean isAndroid
public String androidDbName
public int androidDbVersion
public boolean isHarmony
public String harmonyDbName
public int harmonyDbVersion
public boolean harmonyDbReadonly
public String oceanbaseMode
public int cache_timeout
public Double cache_startDeleteRate
public int cache_prototype
public boolean cache_useLevelTwo
public boolean cache_levelOneTolevelTwo
public int cache_levelTwoTimeout
public Double cache_randTimeoutRate
public boolean cache_randTimeoutAutoRefresh
public String cache_levelTwoEntityList
public String cacheRedis_host
public Integer cacheRedis_port
public String cacheRedis_password
public Integer cacheRedis_connectionTimeout
public Integer cacheRedis_soTimeout
public Integer cacheRedis_database
public String cacheRedis_clientName
public boolean cacheRedis_ssl
public int genid_workerid
public int genid_generatorType
public boolean genid_forAllTableLongId
public boolean genid_replaceOldId
public String genid_includesEntityList
public String genid_excludesEntityList
public int genid_startYear
public long pearFlowerId_tolerateSecond
public boolean pearFlowerId_useHalfWorkId
public long pearFlowerId_switchWorkIdTimeThreshold
public int pearFlowerId_randomNumBound
public boolean multiDS_enable
public int multiDS_type
public String multiDS_defalutDS
public String multiDS_writeDB
public String multiDS_readDB
public int multiDS_rDbRouteWay
public String multiDS_matchEntityClassPath
public String multiDS_matchTable
public boolean multiDS_differentDbType
public boolean multiDS_justMongodb
public boolean sharding_forkJoinBatchInsert
public boolean sharding_jdbcStreamSelect
public boolean sharding_notSupportUnionQuery
public int sharding_executorSize
public static HoneyConfig getHoneyConfig()
public boolean isShowSQL()
isShowSQL in interface org.teasoft.bee.logging.LogSqlConfigpublic String getSqlLoggerLevel()
getSqlLoggerLevel in interface org.teasoft.bee.logging.LogSqlConfigpublic boolean getMultiDsSharding()
public int getDatabaseMajorVersion()
public void setDatabaseMajorVersion(int databaseMajorVersion)
public void setDriverName(String driverName)
public void setUrl(String url)
public void setUsername(String username)
public void setPassword(String password)
public void setDbName(String dbName)
dbName - dbName like in DatabaseConst.public String getDbName()
public String getDriverName()
public String getUrl()
public String getUsername()
public String getPassword()
public String getSchemaName()
public void setSchemaName(String schemaName)
public String getLoggerType()
getLoggerType in interface org.teasoft.bee.logging.LoggerTypeConfigpublic void setLoggerType(String loggerType)
loggerType - public void overrideByActive(String active)
active - public void resetBeeProperties(String folderPath)
folderPath - bee.properties所在的路径. the folder path of bee.propertiespublic void resetBeeProperties(InputStream inputStream)
Copyright © 2025. All rights reserved.