public enum CaseType extends java.lang.Enum<CaseType>
Modifier and Type | Method and Description |
---|---|
static CaseType |
caseTypeOfDatasource(ICdmDataSource datasource)
Defines the CaseType (camel, upper, lower) of a datasource depending on the case used for the CdmMetaData table.
|
java.lang.String |
replaceTableNames(java.lang.String sql)
Replaces all words marked with @@ at the beginning and end by the correctly cased name.
|
java.lang.String |
transformTo(java.lang.String camelCaseTableName)
Transforms the camel case table name to the required case
|
static CaseType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static CaseType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CaseType CamelCase
public static final CaseType UpperCase
public static final CaseType LowerCase
public static CaseType[] values()
for (CaseType c : CaseType.values()) System.out.println(c);
public static CaseType 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 java.lang.String transformTo(java.lang.String camelCaseTableName)
camelCaseTableName
- public static CaseType caseTypeOfDatasource(ICdmDataSource datasource)
datasource
- the datasourcepublic java.lang.String replaceTableNames(java.lang.String sql)
CaseType
is
LowerCase
sql
- the original sql string with masked table namesCopyright © 2007-2020 EDIT. All Rights Reserved.