Enum FeatureEnum

java.lang.Object
java.lang.Enum<FeatureEnum>
com.pugwoo.dbhelper.enums.FeatureEnum
All Implemented Interfaces:
Serializable, Comparable<FeatureEnum>, java.lang.constant.Constable

public enum FeatureEnum extends Enum<FeatureEnum>
特性枚举
  • Enum Constant Details

    • AUTO_SUM_NULL_TO_ZERO

      public static final FeatureEnum AUTO_SUM_NULL_TO_ZERO
      如果计算列是sum()函数,那么则将sum函数包一层COALESCE(SUM(column),0),将null值转成0. 默认[开启]
    • LOG_SQL_AT_INFO_LEVEL

      public static final FeatureEnum LOG_SQL_AT_INFO_LEVEL
      以info的级别log SQL,默认[关闭],默认时用debug级别打印sql
    • THROW_EXCEPTION_IF_COLUMN_NOT_EXIST

      public static final FeatureEnum THROW_EXCEPTION_IF_COLUMN_NOT_EXIST
      当DO类@Column注解的列不在数据库返回的列中时,是否抛出异常,默认[关闭],即不抛出异常
    • AUTO_ADD_ORDER_FOR_PAGINATION

      public static final FeatureEnum AUTO_ADD_ORDER_FOR_PAGINATION
      分页是否自动加上order by子句,默认[开启];分页强烈建议加上order by排序,否则分页结果可能不正确
    • AUTO_EXPLAIN_SLOW_SQL

      public static final FeatureEnum AUTO_EXPLAIN_SLOW_SQL
      是否自动对慢SQL进行explain分析,默认[开启]
  • Method Details

    • values

      public static FeatureEnum[] 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

      public static FeatureEnum valueOf(String name)
      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 name
      NullPointerException - if the argument is null