Enum Class NamingStrategy

java.lang.Object
java.lang.Enum<NamingStrategy>
cn.lonelysnow.generator.config.common.rules.NamingStrategy
所有已实现的接口:
Serializable, Comparable<NamingStrategy>, java.lang.constant.Constable

public enum NamingStrategy extends Enum<NamingStrategy>
作者:
LonelySnow
  • 枚举常量详细资料

    • no_change

      public static final NamingStrategy no_change
      不做任何改变,原样输出
    • underline_to_camel

      public static final NamingStrategy underline_to_camel
      下划线转驼峰命名
  • 构造器详细资料

    • NamingStrategy

      private NamingStrategy()
  • 方法详细资料

    • values

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

      public static NamingStrategy valueOf(String name)
      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 name
      NullPointerException - 如果参数为空值
    • underlineToCamel

      public static String underlineToCamel(String name)
    • removePrefix

      public static String removePrefix(String name, String... prefix)
      去掉指定的前缀
      参数:
      name - ignore
      prefix - ignore
      返回:
      ignore
    • isPrefixContained

      public static boolean isPrefixContained(String name, String... prefix)
      判断是否包含prefix
      参数:
      name - ignore
      prefix - ignore
      返回:
      ignore
    • removePrefixAndCamel

      public static String removePrefixAndCamel(String name, String[] tablePrefix)
      去掉下划线前缀且将后半部分转成驼峰格式
      参数:
      name - ignore
      tablePrefix - ignore
      返回:
      ignore
    • capitalFirst

      public static String capitalFirst(String name)
      实体首字母大写
      参数:
      name - 待转换的字符串
      返回:
      转换后的字符串