public enum MapKeyNamingType extends java.lang.Enum<MapKeyNamingType>
Map<Object, String> object.
The key name is resolved from a column name by applying this convention.
| Enum Constant and Description |
|---|
CAMEL_CASE
Converts an underscore separated string to a camel case string.
|
LOWER_CASE
Converts a string to an lower case string.
|
NONE
Does nothing.
|
UPPER_CASE
Converts a string to an upper case string.
|
| Modifier and Type | Method and Description |
|---|---|
abstract java.lang.String |
apply(java.lang.String text)
Applies this naming conversion.
|
static MapKeyNamingType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static MapKeyNamingType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MapKeyNamingType NONE
public static final MapKeyNamingType CAMEL_CASE
For example, AAA_BBB is converted to aaaBbb.
public static final MapKeyNamingType UPPER_CASE
For example、aaaBbb is converted to AAABBB.
public static final MapKeyNamingType LOWER_CASE
For example, aaaBbb is converted to aaabbb.
public static MapKeyNamingType[] values()
for (MapKeyNamingType c : MapKeyNamingType.values()) System.out.println(c);
public static MapKeyNamingType valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic abstract java.lang.String apply(java.lang.String text)
text - the text