Class EntityHierarchySourceImpl
- java.lang.Object
-
- org.hibernate.boot.model.source.internal.hbm.EntityHierarchySourceImpl
-
- All Implemented Interfaces:
EntityHierarchySource
public class EntityHierarchySourceImpl extends Object implements EntityHierarchySource
Models an entity hierarchy as defined byhbm.xml
documents
-
-
Constructor Summary
Constructors Constructor Description EntityHierarchySourceImpl(RootEntitySourceImpl rootEntitySource, MappingDocument rootEntityMappingDocument)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected JaxbHbmRootEntityType
entityElement()
Caching
getCaching()
Obtain the caching configuration for this entity.Set<String>
getContainedEntityNames()
DiscriminatorSource
getDiscriminatorSource()
Obtain the source information about the discriminator attribute for single table inheritanceInheritanceType
getHierarchyInheritanceType()
The inheritance type/strategy for the hierarchy.IdentifierSource
getIdentifierSource()
Obtain source information about this entity's identifier.MultiTenancySource
getMultiTenancySource()
Obtain the source information about the multi-tenancy discriminator for this entityCaching
getNaturalIdCaching()
Obtain the natural id caching configuration for this entity.OptimisticLockStyle
getOptimisticLockStyle()
Obtain the optimistic locking style for this entity.RootEntitySourceImpl
getRoot()
Obtain the hierarchy's root type source.MappingDocument
getRootEntityMappingDocument()
String
getRowId()
Obtain the row-id name for this entityVersionAttributeSource
getVersionAttributeSource()
Obtain the source information about the attribute used for optimistic locking.String
getWhere()
Obtain the specified extra where condition to be applied to this entity.boolean
isExplicitPolymorphism()
Should explicit polymorphism (querying) be applied to this entity?boolean
isMutable()
Is this root entity mutable?void
processSubclass(SubclassEntitySourceImpl subclassEntitySource)
-
-
-
Constructor Detail
-
EntityHierarchySourceImpl
public EntityHierarchySourceImpl(RootEntitySourceImpl rootEntitySource, MappingDocument rootEntityMappingDocument)
-
-
Method Detail
-
getRootEntityMappingDocument
public MappingDocument getRootEntityMappingDocument()
-
getHierarchyInheritanceType
public InheritanceType 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
public RootEntitySourceImpl getRoot()
Description copied from interface:EntityHierarchySource
Obtain the hierarchy's root type source.- Specified by:
getRoot
in interfaceEntityHierarchySource
- Returns:
- The root type source.
-
processSubclass
public void processSubclass(SubclassEntitySourceImpl subclassEntitySource)
-
entityElement
protected JaxbHbmRootEntityType entityElement()
-
getIdentifierSource
public IdentifierSource getIdentifierSource()
Description copied from interface:EntityHierarchySource
Obtain source information about this entity's identifier.- Specified by:
getIdentifierSource
in interfaceEntityHierarchySource
- Returns:
- Identifier source information.
-
getVersionAttributeSource
public VersionAttributeSource 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
public String 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
public String 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
public OptimisticLockStyle 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
public Caching getCaching()
Description copied from interface:EntityHierarchySource
Obtain the caching configuration for this entity.- Specified by:
getCaching
in interfaceEntityHierarchySource
- Returns:
- The caching configuration.
-
getNaturalIdCaching
public Caching 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
public DiscriminatorSource 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
public MultiTenancySource 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
-
-