类 ImplicitNamingStrategyJpaCompliantImpl
- java.lang.Object
-
- org.hibernate.boot.model.naming.ImplicitNamingStrategyJpaCompliantImpl
-
- 所有已实现的接口:
Serializable,ImplicitNamingStrategy
- 直接已知子类:
ImplicitNamingStrategyComponentPathImpl,ImplicitNamingStrategyLegacyHbmImpl,ImplicitNamingStrategyLegacyJpaImpl
public class ImplicitNamingStrategyJpaCompliantImpl extends Object implements ImplicitNamingStrategy, Serializable
Implementation of the ImplicitNamingStrategy contract, generally preferring to conform to JPA standards. For the legacy JPA-based naming standards initially implemented by Hibernate, see/useImplicitNamingStrategyLegacyJpaImpl- 作者:
- Steve Ebersole
- 另请参阅:
- 序列化表格
-
-
字段概要
字段 修饰符和类型 字段 说明 static ImplicitNamingStrategyINSTANCE
-
构造器概要
构造器 构造器 说明 ImplicitNamingStrategyJpaCompliantImpl()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 IdentifierdetermineAnyDiscriminatorColumnName(ImplicitAnyDiscriminatorColumnNameSource source)Determine the column name related to the discriminator portion of an ANY mapping when no explicit column name is given.IdentifierdetermineAnyKeyColumnName(ImplicitAnyKeyColumnNameSource source)Determine the column name related to the key/id portion of an ANY mapping when no explicit column name is given.IdentifierdetermineBasicColumnName(ImplicitBasicColumnNameSource source)Determine the name of an attribute's column given the source naming information, when a name is not explicitly given.IdentifierdetermineCollectionTableName(ImplicitCollectionTableNameSource source)Determine the name of a collection join table given the source naming information, when a name is not explicitly given.IdentifierdetermineDiscriminatorColumnName(ImplicitDiscriminatorColumnNameSource source)Determine the implicit name for the discriminator column for the given entityIdentifierdetermineForeignKeyName(ImplicitForeignKeyNameSource source)IdentifierdetermineIdentifierColumnName(ImplicitIdentifierColumnNameSource source)Determine the implicit name for the identifier column for the given entityIdentifierdetermineIndexName(ImplicitIndexNameSource source)IdentifierdetermineJoinColumnName(ImplicitJoinColumnNameSource source)Determine the column name related toJoinColumn.IdentifierdetermineJoinTableName(ImplicitJoinTableNameSource source)Determine the name of an association join table given the source naming information, when a name is not explicitly given.IdentifierdetermineListIndexColumnName(ImplicitIndexColumnNameSource source)IdentifierdetermineMapKeyColumnName(ImplicitMapKeyColumnNameSource source)IdentifierdeterminePrimaryKeyJoinColumnName(ImplicitPrimaryKeyJoinColumnNameSource source)Determine the column name related toPrimaryKeyJoinColumn.IdentifierdeterminePrimaryTableName(ImplicitEntityNameSource source)Determine the implicit name of an entity's primary table.IdentifierdetermineTenantIdColumnName(ImplicitTenantIdColumnNameSource source)Determine the implicit name for the tenant (multi-tenancy) identifier column for the given entityIdentifierdetermineUniqueKeyName(ImplicitUniqueKeyNameSource source)protected IdentifiertoIdentifier(String stringForm, MetadataBuildingContext buildingContext)Easy hook to build an Identifier using the keyword safe IdentifierHelper.protected StringtransformAttributePath(AttributePath attributePath)For JPA standards we typically need the unqualified name.protected StringtransformEntityName(EntityNaming entityNaming)
-
-
-
字段详细资料
-
INSTANCE
public static final ImplicitNamingStrategy INSTANCE
-
-
方法详细资料
-
determinePrimaryTableName
public Identifier determinePrimaryTableName(ImplicitEntityNameSource source)
从接口复制的说明:ImplicitNamingStrategyDetermine the implicit name of an entity's primary table.- 指定者:
determinePrimaryTableName在接口中ImplicitNamingStrategy- 参数:
source- The source information- 返回:
- The implicit table name.
-
transformEntityName
protected String transformEntityName(EntityNaming entityNaming)
-
determineJoinTableName
public Identifier determineJoinTableName(ImplicitJoinTableNameSource source)
从接口复制的说明:ImplicitNamingStrategyDetermine the name of an association join table given the source naming information, when a name is not explicitly given.- 指定者:
determineJoinTableName在接口中ImplicitNamingStrategy- 参数:
source- The source information- 返回:
- The implicit table name.
-
determineCollectionTableName
public Identifier determineCollectionTableName(ImplicitCollectionTableNameSource source)
从接口复制的说明:ImplicitNamingStrategyDetermine the name of a collection join table given the source naming information, when a name is not explicitly given.- 指定者:
determineCollectionTableName在接口中ImplicitNamingStrategy- 参数:
source- The source information- 返回:
- The implicit table name.
-
determineIdentifierColumnName
public Identifier determineIdentifierColumnName(ImplicitIdentifierColumnNameSource source)
从接口复制的说明:ImplicitNamingStrategyDetermine the implicit name for the identifier column for the given entity- 指定者:
determineIdentifierColumnName在接口中ImplicitNamingStrategy- 参数:
source- The source information- 返回:
- The determined identifier column name
-
determineDiscriminatorColumnName
public Identifier determineDiscriminatorColumnName(ImplicitDiscriminatorColumnNameSource source)
从接口复制的说明:ImplicitNamingStrategyDetermine the implicit name for the discriminator column for the given entity- 指定者:
determineDiscriminatorColumnName在接口中ImplicitNamingStrategy- 参数:
source- The source information- 返回:
- The implicit discriminator column name
-
determineTenantIdColumnName
public Identifier determineTenantIdColumnName(ImplicitTenantIdColumnNameSource source)
从接口复制的说明:ImplicitNamingStrategyDetermine the implicit name for the tenant (multi-tenancy) identifier column for the given entity- 指定者:
determineTenantIdColumnName在接口中ImplicitNamingStrategy- 参数:
source- The source information- 返回:
- The determined tenant identifier column name
-
determineBasicColumnName
public Identifier determineBasicColumnName(ImplicitBasicColumnNameSource source)
从接口复制的说明:ImplicitNamingStrategyDetermine the name of an attribute's column given the source naming information, when a name is not explicitly given.- 指定者:
determineBasicColumnName在接口中ImplicitNamingStrategy- 参数:
source- The source information- 返回:
- The implicit column name.
-
determineJoinColumnName
public Identifier determineJoinColumnName(ImplicitJoinColumnNameSource source)
从接口复制的说明:ImplicitNamingStrategyDetermine the column name related toJoinColumn. Inhbm.xmlterms, this would be a<key/>defined for a collection or the column associated with a many-to-one.- 指定者:
determineJoinColumnName在接口中ImplicitNamingStrategy- 参数:
source- The source information- 返回:
- The determined join column name
-
determinePrimaryKeyJoinColumnName
public Identifier determinePrimaryKeyJoinColumnName(ImplicitPrimaryKeyJoinColumnNameSource source)
从接口复制的说明:ImplicitNamingStrategyDetermine the column name related toPrimaryKeyJoinColumn. Inhbm.xmlterms, this would be a<key/>defined for a<join/>or a<joined-subclass/>(others?)- 指定者:
determinePrimaryKeyJoinColumnName在接口中ImplicitNamingStrategy- 参数:
source- The source information- 返回:
- The determined column name
-
determineAnyDiscriminatorColumnName
public Identifier determineAnyDiscriminatorColumnName(ImplicitAnyDiscriminatorColumnNameSource source)
从接口复制的说明:ImplicitNamingStrategyDetermine the column name related to the discriminator portion of an ANY mapping when no explicit column name is given.- 指定者:
determineAnyDiscriminatorColumnName在接口中ImplicitNamingStrategy- 参数:
source- The source information- 返回:
- The determined column name
-
determineAnyKeyColumnName
public Identifier determineAnyKeyColumnName(ImplicitAnyKeyColumnNameSource source)
从接口复制的说明:ImplicitNamingStrategyDetermine the column name related to the key/id portion of an ANY mapping when no explicit column name is given.- 指定者:
determineAnyKeyColumnName在接口中ImplicitNamingStrategy- 参数:
source- The source information- 返回:
- The determined identifier column name
-
determineMapKeyColumnName
public Identifier determineMapKeyColumnName(ImplicitMapKeyColumnNameSource source)
-
determineListIndexColumnName
public Identifier determineListIndexColumnName(ImplicitIndexColumnNameSource source)
-
determineForeignKeyName
public Identifier determineForeignKeyName(ImplicitForeignKeyNameSource source)
-
determineUniqueKeyName
public Identifier determineUniqueKeyName(ImplicitUniqueKeyNameSource source)
- 指定者:
determineUniqueKeyName在接口中ImplicitNamingStrategy
-
determineIndexName
public Identifier determineIndexName(ImplicitIndexNameSource source)
- 指定者:
determineIndexName在接口中ImplicitNamingStrategy
-
transformAttributePath
protected String transformAttributePath(AttributePath attributePath)
For JPA standards we typically need the unqualified name. However, a more usable impl tends to use the whole path. This method provides an easy hook for subclasses to accomplish that- 参数:
attributePath- The attribute path- 返回:
- The extracted name
-
toIdentifier
protected Identifier toIdentifier(String stringForm, MetadataBuildingContext buildingContext)
Easy hook to build an Identifier using the keyword safe IdentifierHelper.- 参数:
stringForm- The String form of the namebuildingContext- Access to the IdentifierHelper- 返回:
- The identifier
-
-