org.hibernate.cfg.naming
Interface NamingStrategyDelegate

All Known Subinterfaces:
LegacyNamingStrategyDelegate
All Known Implementing Classes:
HbmNamingStrategyDelegate, JpaNamingStrategyDelegate, LegacyHbmNamingStrategyDelegate, LegacyJpaNamingStrategyDelegate, LegacyNamingStrategyDelegateAdapter, NamingStrategyDelegateAdapter

public interface NamingStrategyDelegate

A


Method Summary
 String determineImplicitElementCollectionJoinColumnName(String ownerEntityName, String ownerJpaEntityName, String ownerEntityTable, String referencedColumnName, String propertyPath)
          Determine the name of the join column in a collection table for a collection of (non-entity) values when a name is not explicitly configured.
 String determineImplicitElementCollectionTableName(String ownerEntityName, String ownerJpaEntityName, String ownerEntityTable, String propertyPath)
          Determine the name of a collection table for a collection of (non-entity) values when a name is not explicitly configured.
 String determineImplicitEntityAssociationJoinColumnName(String propertyEntityName, String propertyJpaEntityName, String propertyTableName, String referencedColumnName, String propertyPath)
          Determine the name of join column for an entity (singular or plural) association when a name is not explicitly configured.
 String determineImplicitEntityAssociationJoinTableName(String ownerEntityName, String ownerJpaEntityName, String ownerEntityTable, String associatedEntityName, String associatedJpaEntityName, String associatedEntityTable, String propertyPath)
          Determine the name of the join table for an entity (singular or plural) association when a name is not explicitly configured.
 String determineImplicitPrimaryTableName(String entityName, String jpaEntityName)
          Determine the name of a entity's primary table when a name is not explicitly configured.
 String determineImplicitPropertyColumnName(String propertyPath)
          Determine the name of a property's column when a name is not explicitly configured.
 String determineLogicalCollectionColumnName(String columnName, String propertyName, String referencedColumn)
           
 String determineLogicalColumnName(String columnName, String propertyName)
           
 String determineLogicalElementCollectionTableName(String tableName, String ownerEntityName, String ownerJpaEntityName, String ownerEntityTable, String propertyName)
           
 String determineLogicalEntityAssociationJoinTableName(String tableName, String ownerEntityName, String ownerJpaEntityName, String ownerEntityTable, String associatedEntityName, String associatedJpaEntityName, String associatedEntityTable, String propertyName)
           
 String toPhysicalColumnName(String columnName)
          Alter the column name given in the mapping document
 String toPhysicalJoinKeyColumnName(String joinedColumn, String joinedTable)
           
 String toPhysicalTableName(String tableName)
          Alter the table name given in the mapping document
 

Method Detail

determineImplicitPrimaryTableName

String determineImplicitPrimaryTableName(String entityName,
                                         String jpaEntityName)
Determine the name of a entity's primary table when a name is not explicitly configured.

Parameters:
entityName - The fully qualified entity name
jpaEntityName - The entity name provided by the Entity name attribute; or, if not mapped in this way, then the unqualified entity name.
Returns:
The implicit table name.

determineImplicitPropertyColumnName

String determineImplicitPropertyColumnName(String propertyPath)
Determine the name of a property's column when a name is not explicitly configured.

Parameters:
propertyPath - The property path (not qualified by the entity name)
Returns:
The implicit column name.

determineImplicitElementCollectionTableName

String determineImplicitElementCollectionTableName(String ownerEntityName,
                                                   String ownerJpaEntityName,
                                                   String ownerEntityTable,
                                                   String propertyPath)
Determine the name of a collection table for a collection of (non-entity) values when a name is not explicitly configured.

Parameters:
ownerEntityName - The fully qualified entity name for the entity that owns the collection.
ownerJpaEntityName - The entity name provided by the Entity name attribute for the entity that owns the collection; or, if not mapped in this way, then the unqualified owner entity name.
ownerEntityTable - The owner entity's physical primary table name;
propertyPath - The property path (not qualified by the entity name),
Returns:
The implicit table name.

determineImplicitElementCollectionJoinColumnName

String determineImplicitElementCollectionJoinColumnName(String ownerEntityName,
                                                        String ownerJpaEntityName,
                                                        String ownerEntityTable,
                                                        String referencedColumnName,
                                                        String propertyPath)
Determine the name of the join column in a collection table for a collection of (non-entity) values when a name is not explicitly configured.

Parameters:
ownerEntityName - The fully qualified name of the entity that owns the collection.
ownerJpaEntityName - The entity name provided by the Entity name attribute for the entity that owns the collection; or, if not mapped in this way, then the unqualified entity name.
ownerEntityTable - The owner entity's physical primary table name;
referencedColumnName - The physical name of the column that the join column references.
propertyPath - The property path (not qualified by the entity name),
Returns:
The implicit column name.

determineImplicitEntityAssociationJoinTableName

String determineImplicitEntityAssociationJoinTableName(String ownerEntityName,
                                                       String ownerJpaEntityName,
                                                       String ownerEntityTable,
                                                       String associatedEntityName,
                                                       String associatedJpaEntityName,
                                                       String associatedEntityTable,
                                                       String propertyPath)
Determine the name of the join table for an entity (singular or plural) association when a name is not explicitly configured.

Parameters:
ownerEntityName - The fully qualified name of the entity that owns the association;.
ownerJpaEntityName - The entity name provided by the Entity name attribute for the entity that owns the association; or, if not mapped in this way, then the unqualified owner entity name.
ownerEntityTable - The owner entity's physical primary table name;
associatedEntityName - The fully qualified name of the associated entity.
associatedJpaEntityName - The entity name provided by the Entity name attribute for the associated entity; or, if not mapped in this way, then the unqualified associated entity name.
associatedEntityTable - The associated entity's physical primary table name;
propertyPath - The property path (not qualified by the entity name),
Returns:
The implicit table name.

determineImplicitEntityAssociationJoinColumnName

String determineImplicitEntityAssociationJoinColumnName(String propertyEntityName,
                                                        String propertyJpaEntityName,
                                                        String propertyTableName,
                                                        String referencedColumnName,
                                                        String propertyPath)
Determine the name of join column for an entity (singular or plural) association when a name is not explicitly configured.

Parameters:
propertyEntityName - The fully qualified name of the entity that contains the association;
propertyJpaEntityName - The entity name provided by the Entity name attribute for the entity that contains the association; or, if not mapped in this way, then the unqualified entity name.
propertyTableName - The physical primary table name for the entity that contains the association.
referencedColumnName - The physical name of the column that the join column references.
propertyPath - The property path (not qualified by the entity name),
Returns:
The implicit table name.

toPhysicalJoinKeyColumnName

String toPhysicalJoinKeyColumnName(String joinedColumn,
                                   String joinedTable)

determineLogicalColumnName

String determineLogicalColumnName(String columnName,
                                  String propertyName)

determineLogicalElementCollectionTableName

String determineLogicalElementCollectionTableName(String tableName,
                                                  String ownerEntityName,
                                                  String ownerJpaEntityName,
                                                  String ownerEntityTable,
                                                  String propertyName)

determineLogicalEntityAssociationJoinTableName

String determineLogicalEntityAssociationJoinTableName(String tableName,
                                                      String ownerEntityName,
                                                      String ownerJpaEntityName,
                                                      String ownerEntityTable,
                                                      String associatedEntityName,
                                                      String associatedJpaEntityName,
                                                      String associatedEntityTable,
                                                      String propertyName)

determineLogicalCollectionColumnName

String determineLogicalCollectionColumnName(String columnName,
                                            String propertyName,
                                            String referencedColumn)

toPhysicalTableName

String toPhysicalTableName(String tableName)
Alter the table name given in the mapping document

Parameters:
tableName - a table name
Returns:
a table name

toPhysicalColumnName

String toPhysicalColumnName(String columnName)
Alter the column name given in the mapping document

Parameters:
columnName - a column name
Returns:
a column name


Copyright © 2001-2015 Red Hat, Inc. All Rights Reserved.