Deprecated
as a consequence of NamingStrategy being deprecated. See corresponding docs for further information.
| Modifier and Type | Field and Description |
|---|---|
| public static final NamingStrategy | INSTANCE
Deprecated
as a consequence of
NamingStrategy being deprecated.
|
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public String | classToTableName(String
the fully-qualified class name className)Implements org. |
| public String | collectionTableName(String ownerEntity, String
owner side table name ownerEntityTable, String associatedEntity, String reverse side table name if any associatedEntityTable, String collection role propertyName)Implements org. |
| public String | columnName(String
a column name columnName)Implements org. |
| public String | foreignKeyColumnName(String
the property name involved propertyName, String propertyEntityName, String the property table name involved (logical one) propertyTableName, String the referenced column name involved (logical one) referencedColumnName)Implements org. |
| public String | joinKeyColumnName(String
joined column name (logical one) used to join with joinedColumn, String joined table name (ie the referenced table) used to join with joinedTable)Implements org. |
| public String | logicalCollectionColumnName(String
given column name in the metadata if any columnName, String property name propertyName, String referenced column name (logical one) in the join referencedColumn)Implements org. |
| public String | logicalCollectionTableName(String
the metadata explicit name tableName, String owner table entity table name (logical one) ownerEntityTable, String reverse side table name if any (logical one) associatedEntityTable, String collection role propertyName)Implements org. |
| public String | logicalColumnName(String
given column name if any columnName, String property name of this column propertyName)Implements org. |
| public String | propertyToColumnName(String
a property path propertyName)Implements org. |
| public String | tableName(String
a table name tableName)Implements org. |
| INSTANCE | back to summary |
|---|---|
| public static final NamingStrategy INSTANCE
Deprecated as a consequence of | |
| EJB3NamingStrategy | back to summary |
|---|---|
| public EJB3NamingStrategy() | |
| classToTableName | back to summary |
|---|---|
| public String classToTableName(String className) Implements org. Doc from org. Return a table name for an entity class | |
| collectionTableName | back to summary |
|---|---|
| public String collectionTableName(String ownerEntity, String ownerEntityTable, String associatedEntity, String associatedEntityTable, String propertyName) Implements org. Doc from org. Return a collection table name ie an association having a join table | |
| columnName | back to summary |
|---|---|
| public String columnName(String columnName) Implements org. Doc from org. Alter the column name given in the mapping document | |
| foreignKeyColumnName | back to summary |
|---|---|
| public String foreignKeyColumnName(String propertyName, String propertyEntityName, String propertyTableName, String referencedColumnName) Implements org. Doc from org. Return the foreign key column name for the given parameters | |
| joinKeyColumnName | back to summary |
|---|---|
| public String joinKeyColumnName(String joinedColumn, String joinedTable) Implements org. Doc from org. Return the join key column name ie a FK column used in a JOINED strategy or for a secondary table | |
| logicalCollectionColumnName | back to summary |
|---|---|
| public String logicalCollectionColumnName(String columnName, String propertyName, String referencedColumn) Implements org. Doc from org. Returns the logical foreign key column name used to refer to this column in the mapping metadata | |
| logicalCollectionTableName | back to summary |
|---|---|
| public String logicalCollectionTableName(String tableName, String ownerEntityTable, String associatedEntityTable, String propertyName) Implements org. Doc from org. Returns the logical collection table name used to refer to a table in the mapping metadata | |
| logicalColumnName | back to summary |
|---|---|
| public String logicalColumnName(String columnName, String propertyName) Implements org. Doc from org. Return the logical column name used to refer to a column in the metadata (like index, unique constraints etc) A full bijection is required between logicalNames and physical ones logicalName have to be case insensitively unique for a given table | |
| propertyToColumnName | back to summary |
|---|---|
| public String propertyToColumnName(String propertyName) Implements org. Doc from org. Return a column name for a property path expression | |
| tableName | back to summary |
|---|---|
| public String tableName(String tableName) Implements org. Doc from org. Alter the table name given in the mapping document | |