| java.lang.Object simpleorm.quickstart.DefaultFormatter
DefaultFormatter | public class DefaultFormatter implements INiceNameFormatter(Code) | | This is the standard name conversion used by SimpleORMGenerator.
Performs a sort camel case conversion.
Examples
Table My_NEW_table" converts to "MyNEWTable".
Field My_NEW_field" converts to "fldMyNEWField"
ForeignKey "My_NEW_F_Key" converts to refMyNewFKey"
author: Richard Schmidt |
niceName | protected String niceName(String _name, boolean capFirst)(Code) | | To create a reasonable class name from the table name,
capitalize first character and convert a_b or a-b to aB
|
niceNameForColumn | public String niceNameForColumn(String table, String column)(Code) | | Return the field name camel case with "fld" as a prefix.
See Also: simpleorm.quickstart.INiceName.niceNameForColumn(Column) |
niceNameForForeignKey | public String niceNameForForeignKey(String localTable, String foreignTable)(Code) | | Return the foreign key table camel cased with "ref" as a prefix.
See Also: simpleorm.quickstart.INiceName.niceNameForColumn(Column) |
niceNameForTable | public String niceNameForTable(String table)(Code) | | Return the table name camel cased.
See Also: simpleorm.quickstart.INiceName.niceNameForTable(Table) |
|
|