Class OverriddenMappingDefaults
- java.lang.Object
-
- org.hibernate.boot.model.source.internal.OverriddenMappingDefaults
-
- All Implemented Interfaces:
MappingDefaults
public class OverriddenMappingDefaults extends Object implements MappingDefaults
Represents a "nested level" in the mapping defaults stack.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
OverriddenMappingDefaults.Builder
-
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 OverriddenMappingDefaults(String implicitSchemaName, String implicitCatalogName, boolean implicitlyQuoteIdentifiers, String implicitIdColumnName, String implicitTenantIdColumnName, String implicitDiscriminatorColumnName, String implicitPackageName, boolean autoImportEnabled, String implicitCascadeStyleName, String implicitPropertyAccessorName, boolean entitiesImplicitlyLazy, boolean pluralAttributesImplicitlyLazy, AccessType implicitCacheAccessType, CollectionClassification implicitListClassification)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
areCollectionsImplicitlyLazy()
Identifies whether plural attributes are lazy by default if not specified in the mapping.boolean
areEntitiesImplicitlyLazy()
Identifies whether singular associations (many-to-one, one-to-one) are lazy by default if not specified in the mapping.AccessType
getImplicitCacheAccessType()
The cache access type to use if none is specifiedString
getImplicitCascadeStyleName()
Identifies the cascade style to apply to associations if none specified in the mapping.String
getImplicitCatalogName()
Identifies the database catalog name to use if none specified in the mapping.String
getImplicitDiscriminatorColumnName()
Identifies the column name to use for the discriminator column if none specified in the mapping.String
getImplicitIdColumnName()
Identifies the column name to use for the identifier column if none specified in the mapping.CollectionClassification
getImplicitListClassification()
Collection semantics to be applied toList
attributes with no explicit configurationString
getImplicitPackageName()
Identifies the package name to use if none specified in the mapping.String
getImplicitPropertyAccessorName()
Identifies the defaultPropertyAccessStrategy
name to use if none specified in the mapping.String
getImplicitSchemaName()
Identifies the database schema name to use if none specified in the mapping.String
getImplicitTenantIdColumnName()
Identifies the column name to use for the tenant identifier column if none is specified in the mapping.boolean
isAutoImportEnabled()
Is auto-importing of entity (short) names enabled?boolean
shouldImplicitlyQuoteIdentifiers()
Should all database identifiers encountered in this context be implicitly quoted?true
indicates that all identifier encountered within this context should be quoted.
-
-
-
Constructor Detail
-
OverriddenMappingDefaults
public OverriddenMappingDefaults(String implicitSchemaName, String implicitCatalogName, boolean implicitlyQuoteIdentifiers, String implicitIdColumnName, String implicitTenantIdColumnName, String implicitDiscriminatorColumnName, String implicitPackageName, boolean autoImportEnabled, String implicitCascadeStyleName, String implicitPropertyAccessorName, boolean entitiesImplicitlyLazy, boolean pluralAttributesImplicitlyLazy, AccessType implicitCacheAccessType, CollectionClassification implicitListClassification)
-
-
Method Detail
-
getImplicitSchemaName
public String 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
-
getImplicitCatalogName
public String 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
-
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
public String 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
public String 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
public String 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
public String 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
public String 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
public String getImplicitPropertyAccessorName()
Description copied from interface:MappingDefaults
Identifies the defaultPropertyAccessStrategy
name to use if none specified in the mapping.- Specified by:
getImplicitPropertyAccessorName
in interfaceMappingDefaults
- Returns:
- The implicit property accessor name
- See Also:
PropertyAccessStrategy
-
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
public AccessType getImplicitCacheAccessType()
Description copied from interface:MappingDefaults
The cache access type to use if none is specified- Specified by:
getImplicitCacheAccessType
in interfaceMappingDefaults
- See Also:
CacheSettings.DEFAULT_CACHE_CONCURRENCY_STRATEGY
-
getImplicitListClassification
public CollectionClassification getImplicitListClassification()
Description copied from interface:MappingDefaults
Collection semantics to be applied toList
attributes with no explicit configuration- Specified by:
getImplicitListClassification
in interfaceMappingDefaults
- See Also:
MappingSettings.DEFAULT_LIST_SEMANTICS
-
-