public enum CaseMode extends Enum<CaseMode>
UPPER_CASE
, LOWER_CASE
, and MIXED_CASE
) a database may
support. Use convertCase(String)
to convert identifiers to the appropiate supported case. UsegetComparator()
for comparison - e.g. MIXED_CASE.getComparator("test", "Test") yields 0
.Enum Constant and Description |
---|
LOWER_CASE |
LOWER_CASE_IGNORED_FOR_COMPARE |
MIXED_CASE |
UPPER_CASE |
Modifier and Type | Method and Description |
---|---|
String |
convertCase(String value) |
Comparator<String> |
getComparator() |
boolean |
isLowerCase() |
boolean |
isUpperCase() |
static CaseMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CaseMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CaseMode UPPER_CASE
public static final CaseMode LOWER_CASE
public static final CaseMode MIXED_CASE
public static final CaseMode LOWER_CASE_IGNORED_FOR_COMPARE
public static CaseMode[] values()
for (CaseMode c : CaseMode.values()) System.out.println(c);
public static CaseMode valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant
with the specified nameNullPointerException
- if the argument is null@NotNull public String convertCase(@NotNull String value)
value
- The string to convert.@NotNull public Comparator<String> getComparator()
public boolean isLowerCase()
true
if names should be lower case.public boolean isUpperCase()
true
if names should be upper case.Copyright © 2014 e-Spirit AG. All Rights Reserved. Build 5.0_BETA.500