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 |
getColumnName(List<AbstractMemberMetaData> mmds,
int position)
Method to return the name of the column for the position of the specified EMBEDDED field, within the specified owner field.
|
String |
getConstraintName(AbstractClassMetaData cmd,
ConstraintMetaData cnstrmd,
ColumnType type)
Method to return the name of the constraint for the specified class (version, datastore-id, discriminator etc).
|
String |
getConstraintName(AbstractClassMetaData cmd,
ConstraintMetaData cnstrmd,
int position)
Method to return the name of a constraint specified at class level.
|
String |
getConstraintName(String className,
AbstractMemberMetaData mmd,
ConstraintMetaData cnstrmd)
Method to return the name of a constraint specified at member level.
|
String |
getSequenceName(SequenceMetaData seqmd)
Method to return the name of sequence.
|
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 |
setReservedKeywords(Set<String> keywords)
Method to set the provided list of keywords as names that identifiers have to surround by quotes to use.
|
NamingFactory |
setWordSeparator(String sep)
Method to set the word separator of the names.
|
NamingFactory setReservedKeywords(Set<String> keywords)
keywords - The keywordsNamingFactory 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 getColumnName(List<AbstractMemberMetaData> mmds, int position)
mmds - MetaData for the field(s) with the column. The first value is the original field that is embedded, followed by fields of the embedded object(s).position - The position of the column (where this field has multiple columns)String getConstraintName(AbstractClassMetaData cmd, ConstraintMetaData cnstrmd, int position)
cmd - Metadata for the classcnstrmd - The constraint metadataposition - Number of the constraint at class level (first is 0)String getConstraintName(String className, AbstractMemberMetaData mmd, ConstraintMetaData cnstrmd)
className - Name of the class that this constraint is for.mmd - Metadata for the membercnstrmd - The constraint metadataString getConstraintName(AbstractClassMetaData cmd, ConstraintMetaData cnstrmd, ColumnType type)
cmd - Metadata for the classcnstrmd - The constraint metadatatype - Column typeString getSequenceName(SequenceMetaData seqmd)
seqmd - Metadata for the sequenceCopyright © 2020. All rights reserved.