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 -
Method Summary
Modifier and TypeMethodDescriptionboolean
Identifies whether plural attributes are lazy by default if not specified in the mapping.boolean
Identifies whether singular associations (many-to-one, one-to-one) are lazy by default if not specified in the mapping.The cache access type to use if none is specifiedIdentifies the cascade style to apply to associations if none specified in the mapping.Identifies the database catalog name to use if none specified in the mapping.Identifies the column name to use for the discriminator column if none specified in the mapping.Identifies the column name to use for the identifier column if none specified in the mapping.Collection semantics to be applied toList
attributes with no explicit configurationIdentifies the package name to use if none specified in the mapping.The defaultPropertyAccessStrategy
to use if none specified in the mapping.Identifies the database schema name to use if none specified in the mapping.Identifies the column name to use for the tenant identifier column if none is specified in the mapping.boolean
Is auto-importing of entity (short) names enabled?boolean
Should all database identifiers encountered in this context be implicitly quoted?true
indicates that all identifier encountered within this context should be quoted.
-
Constructor Details
-
MappingDefaultsImpl
-
-
Method Details
-
getImplicitSchemaName
Description copied from interface:MappingDefaults
Identifies the database schema name to use if none specified in the mapping.- Specified by:
getImplicitSchemaName
in interfaceMappingDefaults
- Returns:
- The implicit schema name; may be
null
- See Also:
-
getImplicitCatalogName
Description copied from interface:MappingDefaults
Identifies the database catalog name to use if none specified in the mapping.- Specified by:
getImplicitCatalogName
in interfaceMappingDefaults
- Returns:
- The implicit catalog name; may be
null
- See Also:
-
shouldImplicitlyQuoteIdentifiers
public boolean shouldImplicitlyQuoteIdentifiers()Description copied from interface:MappingDefaults
Should all database identifiers encountered in this context be implicitly quoted?true
indicates that all identifier encountered within this context should be quoted.false
indicates indicates that identifiers within this context are only quoted if explicitly quoted.- Specified by:
shouldImplicitlyQuoteIdentifiers
in interfaceMappingDefaults
- Returns:
true
/false
-
getImplicitIdColumnName
Description copied from interface:MappingDefaults
Identifies the column name to use for the identifier column if none specified in the mapping.- Specified by:
getImplicitIdColumnName
in interfaceMappingDefaults
- Returns:
- The implicit identifier column name
-
getImplicitTenantIdColumnName
Description copied from interface:MappingDefaults
Identifies the column name to use for the tenant identifier column if none is specified in the mapping.- Specified by:
getImplicitTenantIdColumnName
in interfaceMappingDefaults
- Returns:
- The implicit tenant identifier column name
-
getImplicitDiscriminatorColumnName
Description copied from interface:MappingDefaults
Identifies the column name to use for the discriminator column if none specified in the mapping.- Specified by:
getImplicitDiscriminatorColumnName
in interfaceMappingDefaults
- Returns:
- The implicit discriminator column name
-
getImplicitPackageName
Description copied from interface:MappingDefaults
Identifies the package name to use if none specified in the mapping. Really only pertinent forhbm.xml
mappings.- Specified by:
getImplicitPackageName
in interfaceMappingDefaults
- Returns:
- The implicit package name.
-
isAutoImportEnabled
public boolean isAutoImportEnabled()Description copied from interface:MappingDefaults
Is auto-importing of entity (short) names enabled?- Specified by:
isAutoImportEnabled
in interfaceMappingDefaults
- Returns:
true
if auto-importing is enabled;false
otherwise.
-
getImplicitCascadeStyleName
Description copied from interface:MappingDefaults
Identifies the cascade style to apply to associations if none specified in the mapping.- Specified by:
getImplicitCascadeStyleName
in interfaceMappingDefaults
- Returns:
- The implicit cascade style
-
getImplicitPropertyAccessorName
Description copied from interface:MappingDefaults
The defaultPropertyAccessStrategy
to use if none specified in the mapping.- Specified by:
getImplicitPropertyAccessorName
in interfaceMappingDefaults
- See Also:
-
areEntitiesImplicitlyLazy
public boolean areEntitiesImplicitlyLazy()Description copied from interface:MappingDefaults
Identifies whether singular associations (many-to-one, one-to-one) are lazy by default if not specified in the mapping.- Specified by:
areEntitiesImplicitlyLazy
in interfaceMappingDefaults
- Returns:
- The implicit association laziness
-
areCollectionsImplicitlyLazy
public boolean areCollectionsImplicitlyLazy()Description copied from interface:MappingDefaults
Identifies whether plural attributes are lazy by default if not specified in the mapping.- Specified by:
areCollectionsImplicitlyLazy
in interfaceMappingDefaults
- Returns:
- The implicit association laziness
-
getImplicitCacheAccessType
Description copied from interface:MappingDefaults
The cache access type to use if none is specified- Specified by:
getImplicitCacheAccessType
in interfaceMappingDefaults
- See Also:
-
getImplicitListClassification
Description copied from interface:MappingDefaults
Collection semantics to be applied toList
attributes with no explicit configuration- Specified by:
getImplicitListClassification
in interfaceMappingDefaults
- See Also:
-