public class Sql99KeywordNameTranslator extends DelimitedNameTranslator
DelimitedNameTranslator.setOpeningDelimiter(String)
and DelimitedNameTranslator.setClosingDelimiter(String)
.
They are double quotes by default since they are typical SQL standard.
Case is preserved. Use UpperCaseNameTranslator
or LowerCaseNameTranslator
in addition to this class to force a specific case. With most databases a delimited identifier
is case-sensitive.
Constructor and Description |
---|
Sql99KeywordNameTranslator() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
translate(java.lang.String name,
java.lang.Class rowClass)
Provides SQL name for corresponding name
|
getClosingDelimiter, getOpeningDelimiter, setClosingDelimiter, setOpeningDelimiter
public java.lang.String translate(java.lang.String name, java.lang.Class rowClass)
translate
in interface NameTranslator
translate
in class DelimitedNameTranslator
name
- name to convert (for example, Java class or member name)rowClass
- class for row objects (not parameterized so that NameTranslator
may be used in annotations)