Interface EntityHierarchySource
-
public interface EntityHierarchySourceModels the source-agnostic view of an entity hierarchy.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CachinggetCaching()Obtain the caching configuration for this entity.DiscriminatorSourcegetDiscriminatorSource()Obtain the source information about the discriminator attribute for single table inheritanceEntityModegetEntityMode()Obtain the entity mode for this entity.InheritanceTypegetHierarchyInheritanceType()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.EntitySourcegetRoot()Obtain the hierarchy's root type source.java.lang.StringgetRowId()Obtain the row-id name for this entityVersionAttributeSourcegetVersionAttributeSource()Obtain the source information about the attribute used for optimistic locking.java.lang.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?
-
-
-
Method Detail
-
getRoot
EntitySource getRoot()
Obtain the hierarchy's root type source.- Returns:
- The root type source.
-
getHierarchyInheritanceType
InheritanceType getHierarchyInheritanceType()
The inheritance type/strategy for the hierarchy. NOTE : The entire hierarchy must comply with the same inheritance strategy.- Returns:
- The inheritance type.
-
getIdentifierSource
IdentifierSource getIdentifierSource()
Obtain source information about this entity's identifier.- Returns:
- Identifier source information.
-
getVersionAttributeSource
VersionAttributeSource getVersionAttributeSource()
Obtain the source information about the attribute used for optimistic locking.- Returns:
- the source information about the attribute used for optimistic locking
-
getDiscriminatorSource
DiscriminatorSource getDiscriminatorSource()
Obtain the source information about the discriminator attribute for single table inheritance- Returns:
- the source information about the discriminator attribute for single table inheritance
-
getMultiTenancySource
MultiTenancySource getMultiTenancySource()
Obtain the source information about the multi-tenancy discriminator for this entity- Returns:
- the source information about the multi-tenancy discriminator for this entity
-
getEntityMode
EntityMode getEntityMode()
Obtain the entity mode for this entity.- Returns:
- The entity mode.
-
isMutable
boolean isMutable()
Is this root entity mutable?- Returns:
trueindicates mutable;falsenon-mutable.
-
isExplicitPolymorphism
boolean isExplicitPolymorphism()
Should explicit polymorphism (querying) be applied to this entity?- Returns:
trueindicates explicit polymorphism;falseimplicit.
-
getWhere
java.lang.String getWhere()
Obtain the specified extra where condition to be applied to this entity.- Returns:
- The extra where condition
-
getRowId
java.lang.String getRowId()
Obtain the row-id name for this entity- Returns:
- The row-id name
-
getOptimisticLockStyle
OptimisticLockStyle getOptimisticLockStyle()
Obtain the optimistic locking style for this entity.- Returns:
- The optimistic locking style.
-
getCaching
Caching getCaching()
Obtain the caching configuration for this entity.- Returns:
- The caching configuration.
-
getNaturalIdCaching
Caching getNaturalIdCaching()
Obtain the natural id caching configuration for this entity.- Returns:
- The natural id caching configuration.
-
-