Package com.pugwoo.dbhelper.enums
Enum FeatureEnum
- All Implemented Interfaces:
Serializable,Comparable<FeatureEnum>,java.lang.constant.Constable
特性枚举
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription分页是否自动加上order by子句,默认[开启];分页强烈建议加上order by排序,否则分页结果可能不正确是否自动对慢SQL进行explain分析,默认[开启]如果计算列是sum()函数,那么则将sum函数包一层COALESCE(SUM(column),0),将null值转成0.以info的级别log SQL,默认[关闭],默认时用debug级别打印sql当DO类@Column注解的列不在数据库返回的列中时,是否抛出异常,默认[关闭],即不抛出异常 -
Method Summary
Modifier and TypeMethodDescriptionstatic FeatureEnumReturns the enum constant of this type with the specified name.static FeatureEnum[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
AUTO_SUM_NULL_TO_ZERO
如果计算列是sum()函数,那么则将sum函数包一层COALESCE(SUM(column),0),将null值转成0. 默认[开启] -
LOG_SQL_AT_INFO_LEVEL
以info的级别log SQL,默认[关闭],默认时用debug级别打印sql -
THROW_EXCEPTION_IF_COLUMN_NOT_EXIST
当DO类@Column注解的列不在数据库返回的列中时,是否抛出异常,默认[关闭],即不抛出异常 -
AUTO_ADD_ORDER_FOR_PAGINATION
分页是否自动加上order by子句,默认[开启];分页强烈建议加上order by排序,否则分页结果可能不正确 -
AUTO_EXPLAIN_SLOW_SQL
是否自动对慢SQL进行explain分析,默认[开启]
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-