public class ExpandedNameTranslator extends java.lang.Object implements NameTranslator
Constructor and Description |
---|
ExpandedNameTranslator()
Constructs for a default word delimiter of "_".
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getWordDelimiter()
Gets the delimiter to use between words in sql names.
|
void |
setWordDelimiter(java.lang.String wordDelimiter)
Sets delimiter between words in sql names.
|
java.lang.String |
translate(java.lang.String camelCaseName,
java.lang.Class rowClass)
Provides SQL name for corresponding name
|
public ExpandedNameTranslator()
public java.lang.String translate(java.lang.String camelCaseName, java.lang.Class rowClass)
translate
in interface NameTranslator
camelCaseName
- 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)public java.lang.String getWordDelimiter()
public void setWordDelimiter(java.lang.String wordDelimiter)
wordDelimiter
- String to appear between words