public class JPANamingFactory extends AbstractNamingFactory
clr, namingCase, nucCtx, quoteString, wordSeparator
Constructor and Description |
---|
JPANamingFactory(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, getIndexName, getIndexName, getMaximumLengthForComponent, getNameInRequiredCase, getTableName, prepareColumnNameForUse, setMaximumLength, setNamingCase, setQuoteString, setWordSeparator, truncate
public JPANamingFactory(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 © 2021. All rights reserved.