public class DN2NamingFactory extends AbstractNamingFactory
Note that in addition to the above rules,
clr, namingCase, nucCtx, quoteString, reservedWords, wordSeparator
Constructor and Description |
---|
DN2NamingFactory(NucleusContext nucCtx) |
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,
int position)
Method to return the name of the column for the position of the specified field.
|
String |
getTableName(AbstractMemberMetaData mmd)
Method to return the name of the (join) table for the specified field.
|
getColumnName, getColumnName, getConstraintName, getConstraintName, getConstraintName, getMaximumLengthForComponent, getNameInRequiredCase, getSequenceName, getTableName, prepareIdentifierNameForUse, setMaximumLength, setNamingCase, setQuoteString, setReservedKeywords, setWordSeparator, truncate
public DN2NamingFactory(NucleusContext nucCtx)
public String getTableName(AbstractMemberMetaData mmd)
NamingFactory
mmd
- Metadata for the field/property needing a join tablepublic String getColumnName(AbstractClassMetaData cmd, ColumnType type)
NamingFactory
cmd
- Metadata for the classtype
- Column typepublic String getColumnName(AbstractMemberMetaData mmd, ColumnType type, int position)
NamingFactory
mmd
- Metadata for the fieldtype
- Type of columnposition
- Position of the columnCopyright © 2015. All rights reserved.