Enum Class OrmConfigHolder
- 所有已实现的接口:
Serializable,Comparable<OrmConfigHolder>,java.lang.constant.Constable
全局配置
- 作者:
- johnhan
-
嵌套类概要
从类继承的嵌套类/接口 java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
方法概要
修饰符和类型方法说明static CommandInterceptorstatic MapperInterceptorstatic OrmConfig返回克隆对象static Stringstatic ServiceEnvironmentstatic SqlClientInterceptorstatic longstatic Stringstatic booleanstatic booleanstatic booleanstatic voidinit(ServiceEnvironment serviceEnvironment, OrmConfig ormConfig) static booleanisCache()static booleanstatic booleanstatic booleanisDebug()static booleanstatic booleanstatic OrmConfigHolderReturns the enum constant of this class with the specified name.static OrmConfigHolder[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
方法详细资料
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- 返回:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- 参数:
name- 要返回的枚举常量的名称。- 返回:
- 返回带有指定名称的枚举常量
- 抛出:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- 如果参数为空值
-
init
-
getOrmConfig
返回克隆对象- 返回:
-
getServiceEnvironment
-
getParseSqlType
-
isDebug
public static boolean isDebug() -
isCacheKeyMd5
public static boolean isCacheKeyMd5() -
isSqlStatOpen
public static boolean isSqlStatOpen() -
isCache
public static boolean isCache() -
isOptimisticLockEnable
public static boolean isOptimisticLockEnable() -
isCaseSensitive
public static boolean isCaseSensitive() -
getSqlExecuteTimeThreshold
public static long getSqlExecuteTimeThreshold() -
getSqlClientInterceptor
-
hasSqlClientInterceptor
public static boolean hasSqlClientInterceptor() -
getCommandInterceptor
-
hasCommandInterceptor
public static boolean hasCommandInterceptor() -
getMapperInterceptor
-
hasMapperInterceptor
public static boolean hasMapperInterceptor() -
getSqlPostfix
-