Package org.hibernate.boot.internal
Class MetadataBuilderImpl.MappingDefaultsImpl
- java.lang.Object
-
- org.hibernate.boot.internal.MetadataBuilderImpl.MappingDefaultsImpl
-
- All Implemented Interfaces:
MappingDefaults
- Enclosing class:
- MetadataBuilderImpl
public static class MetadataBuilderImpl.MappingDefaultsImpl extends Object implements MappingDefaults
-
-
Field Summary
-
Fields inherited from interface org.hibernate.boot.spi.MappingDefaults
DEFAULT_CASCADE_NAME, DEFAULT_DISCRIMINATOR_COLUMN_NAME, DEFAULT_IDENTIFIER_COLUMN_NAME, DEFAULT_PROPERTY_ACCESS_NAME, DEFAULT_TENANT_IDENTIFIER_COLUMN_NAME
-
-
Constructor Summary
Constructors Constructor Description MappingDefaultsImpl(StandardServiceRegistry serviceRegistry)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanareCollectionsImplicitlyLazy()Identifies whether plural attributes are lazy by default if not specified in the mapping.booleanareEntitiesImplicitlyLazy()Identifies whether singular associations (many-to-one, one-to-one) are lazy by default if not specified in the mapping.AccessTypegetImplicitCacheAccessType()The cache access type to use if none is specifiedStringgetImplicitCascadeStyleName()Identifies the cascade style to apply to associations if none specified in the mapping.StringgetImplicitCatalogName()Identifies the database catalog name to use if none specified in the mapping.StringgetImplicitDiscriminatorColumnName()Identifies the column name to use for the discriminator column if none specified in the mapping.StringgetImplicitIdColumnName()Identifies the column name to use for the identifier column if none specified in the mapping.CollectionClassificationgetImplicitListClassification()Collection semantics to be applied toListattributes with no explicit configurationStringgetImplicitPackageName()Identifies the package name to use if none specified in the mapping.StringgetImplicitPropertyAccessorName()Identifies the defaultPropertyAccessStrategyname to use if none specified in the mapping.StringgetImplicitSchemaName()Identifies the database schema name to use if none specified in the mapping.StringgetImplicitTenantIdColumnName()Identifies the column name to use for the tenant identifier column if none is specified in the mapping.booleanisAutoImportEnabled()Is auto-importing of entity (short) names enabled?booleanshouldImplicitlyQuoteIdentifiers()Should all database identifiers encountered in this context be implicitly quoted?trueindicates that all identifier encountered within this context should be quoted.
-
-
-
Constructor Detail
-
MappingDefaultsImpl
public MappingDefaultsImpl(StandardServiceRegistry serviceRegistry)
-
-
Method Detail
-
getImplicitSchemaName
public String getImplicitSchemaName()
Description copied from interface:MappingDefaultsIdentifies the database schema name to use if none specified in the mapping.- Specified by:
getImplicitSchemaNamein interfaceMappingDefaults- Returns:
- The implicit schema name; may be
null
-
getImplicitCatalogName
public String getImplicitCatalogName()
Description copied from interface:MappingDefaultsIdentifies the database catalog name to use if none specified in the mapping.- Specified by:
getImplicitCatalogNamein interfaceMappingDefaults- Returns:
- The implicit catalog name; may be
null
-
shouldImplicitlyQuoteIdentifiers
public boolean shouldImplicitlyQuoteIdentifiers()
Description copied from interface:MappingDefaultsShould all database identifiers encountered in this context be implicitly quoted?trueindicates that all identifier encountered within this context should be quoted.falseindicates indicates that identifiers within this context are only quoted if explicitly quoted.- Specified by:
shouldImplicitlyQuoteIdentifiersin interfaceMappingDefaults- Returns:
true/false
-
getImplicitIdColumnName
public String getImplicitIdColumnName()
Description copied from interface:MappingDefaultsIdentifies the column name to use for the identifier column if none specified in the mapping.- Specified by:
getImplicitIdColumnNamein interfaceMappingDefaults- Returns:
- The implicit identifier column name
-
getImplicitTenantIdColumnName
public String getImplicitTenantIdColumnName()
Description copied from interface:MappingDefaultsIdentifies the column name to use for the tenant identifier column if none is specified in the mapping.- Specified by:
getImplicitTenantIdColumnNamein interfaceMappingDefaults- Returns:
- The implicit tenant identifier column name
-
getImplicitDiscriminatorColumnName
public String getImplicitDiscriminatorColumnName()
Description copied from interface:MappingDefaultsIdentifies the column name to use for the discriminator column if none specified in the mapping.- Specified by:
getImplicitDiscriminatorColumnNamein interfaceMappingDefaults- Returns:
- The implicit discriminator column name
-
getImplicitPackageName
public String getImplicitPackageName()
Description copied from interface:MappingDefaultsIdentifies the package name to use if none specified in the mapping. Really only pertinent forhbm.xmlmappings.- Specified by:
getImplicitPackageNamein interfaceMappingDefaults- Returns:
- The implicit package name.
-
isAutoImportEnabled
public boolean isAutoImportEnabled()
Description copied from interface:MappingDefaultsIs auto-importing of entity (short) names enabled?- Specified by:
isAutoImportEnabledin interfaceMappingDefaults- Returns:
trueif auto-importing is enabled;falseotherwise.
-
getImplicitCascadeStyleName
public String getImplicitCascadeStyleName()
Description copied from interface:MappingDefaultsIdentifies the cascade style to apply to associations if none specified in the mapping.- Specified by:
getImplicitCascadeStyleNamein interfaceMappingDefaults- Returns:
- The implicit cascade style
-
getImplicitPropertyAccessorName
public String getImplicitPropertyAccessorName()
Description copied from interface:MappingDefaultsIdentifies the defaultPropertyAccessStrategyname to use if none specified in the mapping.- Specified by:
getImplicitPropertyAccessorNamein interfaceMappingDefaults- Returns:
- The implicit property accessor name
- See Also:
PropertyAccessStrategy
-
areEntitiesImplicitlyLazy
public boolean areEntitiesImplicitlyLazy()
Description copied from interface:MappingDefaultsIdentifies whether singular associations (many-to-one, one-to-one) are lazy by default if not specified in the mapping.- Specified by:
areEntitiesImplicitlyLazyin interfaceMappingDefaults- Returns:
- The implicit association laziness
-
areCollectionsImplicitlyLazy
public boolean areCollectionsImplicitlyLazy()
Description copied from interface:MappingDefaultsIdentifies whether plural attributes are lazy by default if not specified in the mapping.- Specified by:
areCollectionsImplicitlyLazyin interfaceMappingDefaults- Returns:
- The implicit association laziness
-
getImplicitCacheAccessType
public AccessType getImplicitCacheAccessType()
Description copied from interface:MappingDefaultsThe cache access type to use if none is specified- Specified by:
getImplicitCacheAccessTypein interfaceMappingDefaults- See Also:
CacheSettings.DEFAULT_CACHE_CONCURRENCY_STRATEGY
-
getImplicitListClassification
public CollectionClassification getImplicitListClassification()
Description copied from interface:MappingDefaultsCollection semantics to be applied toListattributes with no explicit configuration- Specified by:
getImplicitListClassificationin interfaceMappingDefaults- See Also:
MappingSettings.DEFAULT_LIST_SEMANTICS
-
-