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.xmldocuments
-
-
Constructor Summary
Constructors Constructor Description EntityHierarchySourceImpl(RootEntitySourceImpl rootEntitySource, MappingDocument rootEntityMappingDocument)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected JaxbHbmRootEntityTypeentityElement()CachinggetCaching()Obtain the caching configuration for this entity.Set<String>getContainedEntityNames()DiscriminatorSourcegetDiscriminatorSource()Obtain the source information about the discriminator attribute for single table inheritanceInheritanceTypegetHierarchyInheritanceType()The inheritance type/strategy for the hierarchy.IdentifierSourcegetIdentifierSource()Obtain source information about this entity's identifier.MultiTenancySourcegetMultiTenancySource()Obtain the source information about the multi-tenancy discriminator for this entityCachinggetNaturalIdCaching()Obtain the natural id caching configuration for this entity.OptimisticLockStylegetOptimisticLockStyle()Obtain the optimistic locking style for this entity.RootEntitySourceImplgetRoot()Obtain the hierarchy's root type source.MappingDocumentgetRootEntityMappingDocument()StringgetRowId()Obtain the row-id name for this entityVersionAttributeSourcegetVersionAttributeSource()Obtain the source information about the attribute used for optimistic locking.StringgetWhere()Obtain the specified extra where condition to be applied to this entity.booleanisExplicitPolymorphism()Should explicit polymorphism (querying) be applied to this entity?booleanisMutable()Is this root entity mutable?voidprocessSubclass(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:EntityHierarchySourceThe inheritance type/strategy for the hierarchy.The entire hierarchy must have with the same inheritance strategy.
- Specified by:
getHierarchyInheritanceTypein interfaceEntityHierarchySource- Returns:
- The inheritance type.
-
getRoot
public RootEntitySourceImpl getRoot()
Description copied from interface:EntityHierarchySourceObtain the hierarchy's root type source.- Specified by:
getRootin interfaceEntityHierarchySource- Returns:
- The root type source.
-
processSubclass
public void processSubclass(SubclassEntitySourceImpl subclassEntitySource)
-
entityElement
protected JaxbHbmRootEntityType entityElement()
-
getIdentifierSource
public IdentifierSource getIdentifierSource()
Description copied from interface:EntityHierarchySourceObtain source information about this entity's identifier.- Specified by:
getIdentifierSourcein interfaceEntityHierarchySource- Returns:
- Identifier source information.
-
getVersionAttributeSource
public VersionAttributeSource getVersionAttributeSource()
Description copied from interface:EntityHierarchySourceObtain the source information about the attribute used for optimistic locking.- Specified by:
getVersionAttributeSourcein interfaceEntityHierarchySource- Returns:
- the source information about the attribute used for optimistic locking
-
isMutable
public boolean isMutable()
Description copied from interface:EntityHierarchySourceIs this root entity mutable?- Specified by:
isMutablein interfaceEntityHierarchySource- Returns:
trueindicates mutable;falsenon-mutable.
-
isExplicitPolymorphism
public boolean isExplicitPolymorphism()
Description copied from interface:EntityHierarchySourceShould explicit polymorphism (querying) be applied to this entity?- Specified by:
isExplicitPolymorphismin interfaceEntityHierarchySource- Returns:
trueindicates explicit polymorphism;falseimplicit.
-
getWhere
public String getWhere()
Description copied from interface:EntityHierarchySourceObtain the specified extra where condition to be applied to this entity.- Specified by:
getWherein interfaceEntityHierarchySource- Returns:
- The extra where condition
-
getRowId
public String getRowId()
Description copied from interface:EntityHierarchySourceObtain the row-id name for this entity- Specified by:
getRowIdin interfaceEntityHierarchySource- Returns:
- The row-id name
-
getOptimisticLockStyle
public OptimisticLockStyle getOptimisticLockStyle()
Description copied from interface:EntityHierarchySourceObtain the optimistic locking style for this entity.- Specified by:
getOptimisticLockStylein interfaceEntityHierarchySource- Returns:
- The optimistic locking style.
-
getCaching
public Caching getCaching()
Description copied from interface:EntityHierarchySourceObtain the caching configuration for this entity.- Specified by:
getCachingin interfaceEntityHierarchySource- Returns:
- The caching configuration.
-
getNaturalIdCaching
public Caching getNaturalIdCaching()
Description copied from interface:EntityHierarchySourceObtain the natural id caching configuration for this entity.- Specified by:
getNaturalIdCachingin interfaceEntityHierarchySource- Returns:
- The natural id caching configuration.
-
getDiscriminatorSource
public DiscriminatorSource getDiscriminatorSource()
Description copied from interface:EntityHierarchySourceObtain the source information about the discriminator attribute for single table inheritance- Specified by:
getDiscriminatorSourcein interfaceEntityHierarchySource- Returns:
- the source information about the discriminator attribute for single table inheritance
-
getMultiTenancySource
public MultiTenancySource getMultiTenancySource()
Description copied from interface:EntityHierarchySourceObtain the source information about the multi-tenancy discriminator for this entity- Specified by:
getMultiTenancySourcein interfaceEntityHierarchySource- Returns:
- the source information about the multi-tenancy discriminator for this entity
-
-