public interface NamingFactory
Modifier and Type | Method and Description |
---|---|
String |
getColumnName(AbstractClassMetaData cmd,
ColumnType type)
Method to return the name of the column for the specified class (version, datastore-id, discriminator etc).
|
String |
getColumnName(AbstractMemberMetaData mmd,
ColumnType type)
Method to return the name of the column for the specified field.
|
String |
getColumnName(AbstractMemberMetaData mmd,
ColumnType type,
int position)
Method to return the name of the column for the position of the specified field.
|
String |
getIndexName(AbstractClassMetaData cmd,
IndexMetaData idxmd,
int position)
Method to return the name of an index specified at class level.
|
String |
getIndexName(AbstractMemberMetaData mmd,
IndexMetaData idxmd)
Method to return the name of an index specified at member level.
|
String |
getTableName(AbstractClassMetaData cmd)
Method to return the name of the table for the specified class.
|
String |
getTableName(AbstractMemberMetaData mmd)
Method to return the name of the (join) table for the specified field.
|
NamingFactory |
setMaximumLength(SchemaComponent cmpt,
int max)
Method to set the maximum length of the name of the specified schema component.
|
NamingFactory |
setNamingCase(NamingCase nameCase)
Method to set the required case of the names.
|
NamingFactory |
setQuoteString(String quote)
Method to set the quote string to use (when the identifiers need to be quoted).
|
NamingFactory |
setWordSeparator(String sep)
Method to set the word separator of the names.
|
NamingFactory setMaximumLength(SchemaComponent cmpt, int max)
cmpt
- The componentmax
- The maximum it acceptsNamingFactory setQuoteString(String quote)
setIdentifierCase.
quote
- The quote stringNamingFactory setWordSeparator(String sep)
sep
- SeparatorNamingFactory setNamingCase(NamingCase nameCase)
nameCase
- Required caseString getTableName(AbstractClassMetaData cmd)
cmd
- Metadata for the classString getTableName(AbstractMemberMetaData mmd)
mmd
- Metadata for the field/property needing a join tableString getColumnName(AbstractClassMetaData cmd, ColumnType type)
cmd
- Metadata for the classtype
- Column typeString getColumnName(AbstractMemberMetaData mmd, ColumnType type)
getColumnNamemethod.
mmd
- Metadata for the fieldtype
- Type of columnString getColumnName(AbstractMemberMetaData mmd, ColumnType type, int position)
mmd
- Metadata for the fieldtype
- Type of columnposition
- Position of the columnString getIndexName(AbstractClassMetaData cmd, IndexMetaData idxmd, int position)
cmd
- Metadata for the classidxmd
- The index metadataposition
- Number of the index at class level (first is 0)String getIndexName(AbstractMemberMetaData mmd, IndexMetaData idxmd)
mmd
- Metadata for the memberidxmd
- The index metadataCopyright © 2021. All rights reserved.