Package | Description |
---|---|
org.sormula |
Fundamental classes.
|
org.sormula.active |
An implementation of the
active record pattern built on top of sormula.
|
org.sormula.translator |
Classes that provide mapping between columns and Java class members.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.Class<? extends NameTranslator>> |
Database.getNameTranslatorClasses()
Gets the default name translator classes for tables when none is specified for the table.
|
java.util.List<? extends NameTranslator> |
Table.getNameTranslators()
Gets the name translators used by
Table.translateName(String) . |
protected java.util.List<? extends NameTranslator> |
Table.initNameTranslators(Row rowAnnotation)
Initialize all name translators annotated on table.
|
Modifier and Type | Method and Description |
---|---|
void |
Database.addNameTranslatorClass(java.lang.Class<? extends NameTranslator> nameTranslatorClass)
Adds a default name translator class.
|
void |
Database.removeNameTranslatorClass(java.lang.Class<? extends NameTranslator> nameTranslatorClass)
Removes a name translator class.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.Class<? extends NameTranslator>> |
ActiveDatabase.getNameTranslatorClasses()
Gets the default name translators to be used when none are defined for the table.
|
Modifier and Type | Method and Description |
---|---|
void |
ActiveDatabase.addNameTranslatorClass(java.lang.Class<? extends NameTranslator> nameTranslatorClass)
Adds a default name translator to use when none are defined for the table.
|
void |
ActiveDatabase.removeNameTranslatorClass(java.lang.Class<? extends NameTranslator> nameTranslatorClass)
Removes a default name translator.
|
Modifier and Type | Class and Description |
---|---|
class |
DelimitedNameTranslator
Converts name to name surrounded with delimiters.
|
class |
ExpandedNameTranslator
Converts name from CamelCase (mixed case) to a SQL name that is case insensitive with
a delimiter between each word.
|
class |
LowerCaseNameTranslator
Converts name to lower case using
String.toLowerCase() . |
class |
Sql2003KeywordNameTranslator
Converts keyword from SQL 2003 to keyword with delimiters.
|
class |
Sql92KeywordNameTranslator
Converts keyword from SQL 92 to keyword with delimiters.
|
class |
Sql99KeywordNameTranslator
Converts keyword from SQL 99 to keyword with delimiters.
|
class |
UpperCaseNameTranslator
Converts name to upper case using
String.toUpperCase() . |