Class EntityHierarchySourceImpl
java.lang.Object
org.hibernate.boot.model.source.internal.hbm.EntityHierarchySourceImpl
- All Implemented Interfaces:
EntityHierarchySource
Models an entity hierarchy as defined by
hbm.xml
documents-
Constructor Summary
ConstructorsConstructorDescriptionEntityHierarchySourceImpl
(RootEntitySourceImpl rootEntitySource, MappingDocument rootEntityMappingDocument) -
Method Summary
Modifier and TypeMethodDescriptionprotected JaxbHbmRootEntityType
Obtain the caching configuration for this entity.Obtain the source information about the discriminator attribute for single table inheritanceThe inheritance type/strategy for the hierarchy.Obtain source information about this entity's identifier.Obtain the source information about the multi-tenancy discriminator for this entityObtain the natural id caching configuration for this entity.Obtain the optimistic locking style for this entity.getRoot()
Obtain the hierarchy's root type source.getRowId()
Obtain the row-id name for this entityObtain the source information about the attribute used for optimistic locking.getWhere()
Obtain the specified extra where condition to be applied to this entity.boolean
Should explicit polymorphism (querying) be applied to this entity?boolean
Is this root entity mutable?void
processSubclass
(SubclassEntitySourceImpl subclassEntitySource)
-
Constructor Details
-
EntityHierarchySourceImpl
public EntityHierarchySourceImpl(RootEntitySourceImpl rootEntitySource, MappingDocument rootEntityMappingDocument)
-
-
Method Details
-
getRootEntityMappingDocument
-
getHierarchyInheritanceType
Description copied from interface:EntityHierarchySource
The inheritance type/strategy for the hierarchy.The entire hierarchy must have with the same inheritance strategy.
- Specified by:
getHierarchyInheritanceType
in interfaceEntityHierarchySource
- Returns:
- The inheritance type.
-
getRoot
Description copied from interface:EntityHierarchySource
Obtain the hierarchy's root type source.- Specified by:
getRoot
in interfaceEntityHierarchySource
- Returns:
- The root type source.
-
processSubclass
-
entityElement
-
getIdentifierSource
Description copied from interface:EntityHierarchySource
Obtain source information about this entity's identifier.- Specified by:
getIdentifierSource
in interfaceEntityHierarchySource
- Returns:
- Identifier source information.
-
getVersionAttributeSource
Description copied from interface:EntityHierarchySource
Obtain the source information about the attribute used for optimistic locking.- Specified by:
getVersionAttributeSource
in interfaceEntityHierarchySource
- Returns:
- the source information about the attribute used for optimistic locking
-
isMutable
public boolean isMutable()Description copied from interface:EntityHierarchySource
Is this root entity mutable?- Specified by:
isMutable
in interfaceEntityHierarchySource
- Returns:
true
indicates mutable;false
non-mutable.
-
isExplicitPolymorphism
public boolean isExplicitPolymorphism()Description copied from interface:EntityHierarchySource
Should explicit polymorphism (querying) be applied to this entity?- Specified by:
isExplicitPolymorphism
in interfaceEntityHierarchySource
- Returns:
true
indicates explicit polymorphism;false
implicit.
-
getWhere
Description copied from interface:EntityHierarchySource
Obtain the specified extra where condition to be applied to this entity.- Specified by:
getWhere
in interfaceEntityHierarchySource
- Returns:
- The extra where condition
-
getRowId
Description copied from interface:EntityHierarchySource
Obtain the row-id name for this entity- Specified by:
getRowId
in interfaceEntityHierarchySource
- Returns:
- The row-id name
-
getOptimisticLockStyle
Description copied from interface:EntityHierarchySource
Obtain the optimistic locking style for this entity.- Specified by:
getOptimisticLockStyle
in interfaceEntityHierarchySource
- Returns:
- The optimistic locking style.
-
getCaching
Description copied from interface:EntityHierarchySource
Obtain the caching configuration for this entity.- Specified by:
getCaching
in interfaceEntityHierarchySource
- Returns:
- The caching configuration.
-
getNaturalIdCaching
Description copied from interface:EntityHierarchySource
Obtain the natural id caching configuration for this entity.- Specified by:
getNaturalIdCaching
in interfaceEntityHierarchySource
- Returns:
- The natural id caching configuration.
-
getDiscriminatorSource
Description copied from interface:EntityHierarchySource
Obtain the source information about the discriminator attribute for single table inheritance- Specified by:
getDiscriminatorSource
in interfaceEntityHierarchySource
- Returns:
- the source information about the discriminator attribute for single table inheritance
-
getMultiTenancySource
Description copied from interface:EntityHierarchySource
Obtain the source information about the multi-tenancy discriminator for this entity- Specified by:
getMultiTenancySource
in interfaceEntityHierarchySource
- Returns:
- the source information about the multi-tenancy discriminator for this entity
-
getContainedEntityNames
-