Package org.hibernate.mapping
Class Subclass
java.lang.Object
org.hibernate.mapping.PersistentClass
org.hibernate.mapping.Subclass
- All Implemented Interfaces:
Serializable,AttributeContainer,Contributable,Filterable,IdentifiableTypeClass,MetaAttributable,TableContainer
- Direct Known Subclasses:
JoinedSubclass,SingleTableSubclass,UnionSubclass
public sealed class Subclass
extends PersistentClass
permits SingleTableSubclass, JoinedSubclass, UnionSubclass
A mapping model object that represents a subclass in an entity class
inheritance hierarchy.
- See Also:
-
Field Summary
Fields inherited from class org.hibernate.mapping.PersistentClass
NOT_NULL_DISCRIMINATOR_MAPPING, NULL_DISCRIMINATOR_MAPPING, synchronizedTables -
Constructor Summary
ConstructorsConstructorDescriptionSubclass(PersistentClass superclass, MetadataBuildingContext buildingContext) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidaddMappedSuperclassProperty(Property property) voidaddProperty(Property property) Add a property to thisPersistentClassorJoin.protected voidprotected voidprotected voidaddSubclassTable(Table table) voidintgetKey()intintgetTable()getWhere()booleanbooleanbooleanbooleanisClassOrSuperclassJoin(Join join) booleanisClassOrSuperclassTable(Table table) booleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanvoidsetSuperclass(PersistentClass superclass) Methods inherited from class org.hibernate.mapping.PersistentClass
addCallbackDefinitions, addCheckConstraint, addFilter, addSubclass, addSynchronizedTable, applyProperty, assignCheckConstraintsToTable, checkColumnDuplication, contains, createConstraints, createPrimaryKey, findSecondaryTable, findTable, getBatchSize, getCallbackDefinitions, getCheckConstraints, getClassName, getContributor, getCustomSQLDelete, getCustomSQLInsert, getCustomSQLUpdate, getDeclaredIdentifierMapper, getDeclaredProperties, getDeleteExpectation, getDirectSubclasses, getDiscriminatorValue, getEntityName, getIdentityTable, getImplicitTable, getInsertExpectation, getJoinNumber, getJoins, getJpaEntityName, getLoaderName, getMappedClass, getMetaAttribute, getMetaAttributes, getNonDuplicatedProperties, getProperties, getProperty, getProxyInterface, getProxyInterfaceName, getQueryCacheLayout, getRecursiveProperty, getReferenceableProperties, getReferencedProperty, getSecondaryTable, getServiceRegistry, getSubclassClosure, getSubclasses, getSubclassJoinClosure, getSubclassPropertyClosure, getSubclassSpan, getSubclassTableClosure, getSubTypes, getSuperMappedSuperclass, getSuperPersistentClass, getSuperType, getTable, getUnjoinedProperties, getUpdateExpectation, hasCollectionNotReferencingPK, hasIdentifierMapper, hasNaturalId, hasPartitionedSelectionMapping, hasPojoRepresentation, hasProperty, hasSelectBeforeUpdate, hasSubclasses, isAbstract, isCached, isCustomDeleteCallable, isCustomInsertCallable, isCustomUpdateCallable, isDefinedOnMultipleSubclasses, isDiscriminatorValueNotNull, isDiscriminatorValueNull, isExplicitPolymorphism, isLazy, isPropertyDefinedInHierarchy, isPropertyDefinedInSuperHierarchy, prepareForMappingModel, removeProperty, setAbstract, setBatchSize, setCached, setClassName, setCustomSQLDelete, setCustomSQLInsert, setCustomSQLUpdate, setDeclaredIdentifierMapper, setDeleteExpectation, setDiscriminatorValue, setDynamicInsert, setDynamicUpdate, setEntityName, setIdentifierMapper, setInsertExpectation, setJpaEntityName, setLazy, setLoaderName, setMetaAttributes, setOptimisticLockStyle, setProxyInterfaceName, setQueryCacheLayout, setSelectBeforeUpdate, setSubselectLoadableCollections, setSuperMappedSuperclass, setUpdateExpectation, toString, useDynamicInsert, useDynamicUpdate, validate
-
Constructor Details
-
Subclass
-
-
Method Details
-
getSubclassId
public int getSubclassId()- Specified by:
getSubclassIdin classPersistentClass
-
getNaturalIdCacheRegionName
- Specified by:
getNaturalIdCacheRegionNamein classPersistentClass
-
getCacheConcurrencyStrategy
- Specified by:
getCacheConcurrencyStrategyin classPersistentClass
-
getRootClass
- Specified by:
getRootClassin classPersistentClass
-
getSuperclass
- Specified by:
getSuperclassin classPersistentClass
-
getIdentifierProperty
- Specified by:
getIdentifierPropertyin classPersistentClass
-
getDeclaredIdentifierProperty
- Specified by:
getDeclaredIdentifierPropertyin classPersistentClass
-
getIdentifier
- Specified by:
getIdentifierin classPersistentClass
-
hasIdentifierProperty
public boolean hasIdentifierProperty()- Specified by:
hasIdentifierPropertyin classPersistentClass
-
getDiscriminator
- Specified by:
getDiscriminatorin classPersistentClass
-
isMutable
public boolean isMutable()- Specified by:
isMutablein classPersistentClass
-
isInherited
public boolean isInherited()- Specified by:
isInheritedin classPersistentClass
-
isPolymorphic
public boolean isPolymorphic()- Specified by:
isPolymorphicin classPersistentClass
-
addProperty
Description copied from interface:AttributeContainerAdd a property to thisPersistentClassorJoin.- Specified by:
addPropertyin interfaceAttributeContainer- Overrides:
addPropertyin classPersistentClass
-
addMappedSuperclassProperty
- Overrides:
addMappedSuperclassPropertyin classPersistentClass
-
addJoin
- Overrides:
addJoinin classPersistentClass
-
getPropertyClosure
- Specified by:
getPropertyClosurein classPersistentClass
-
getTableClosure
- Specified by:
getTableClosurein classPersistentClass
-
getKeyClosure
- Specified by:
getKeyClosurein classPersistentClass
-
addSubclassProperty
- Overrides:
addSubclassPropertyin classPersistentClass
-
addSubclassJoin
- Overrides:
addSubclassJoinin classPersistentClass
-
addSubclassTable
- Overrides:
addSubclassTablein classPersistentClass
-
isVersioned
public boolean isVersioned()- Specified by:
isVersionedin classPersistentClass
-
getVersion
- Specified by:
getVersionin classPersistentClass
-
getDeclaredVersion
- Specified by:
getDeclaredVersionin classPersistentClass
-
hasEmbeddedIdentifier
public boolean hasEmbeddedIdentifier()- Specified by:
hasEmbeddedIdentifierin classPersistentClass
-
getRootTable
- Specified by:
getRootTablein classPersistentClass
-
getKey
- Specified by:
getKeyin classPersistentClass
-
isConcreteProxy
public boolean isConcreteProxy()- Specified by:
isConcreteProxyin classPersistentClass
-
setSuperclass
-
getWhere
- Specified by:
getWherein classPersistentClass
-
isJoinedSubclass
public boolean isJoinedSubclass()- Specified by:
isJoinedSubclassin classPersistentClass
-
createForeignKey
public void createForeignKey() -
getJoinClosureSpan
public int getJoinClosureSpan()- Overrides:
getJoinClosureSpanin classPersistentClass
-
getPropertyClosureSpan
public int getPropertyClosureSpan()- Overrides:
getPropertyClosureSpanin classPersistentClass
-
getJoinClosure
- Overrides:
getJoinClosurein classPersistentClass
-
isClassOrSuperclassJoin
- Overrides:
isClassOrSuperclassJoinin classPersistentClass
-
isClassOrSuperclassTable
- Overrides:
isClassOrSuperclassTablein classPersistentClass
-
getTable
- Specified by:
getTablein interfaceAttributeContainer- Specified by:
getTablein classPersistentClass
-
isForceDiscriminator
public boolean isForceDiscriminator()- Overrides:
isForceDiscriminatorin classPersistentClass
-
isDiscriminatorInsertable
public boolean isDiscriminatorInsertable()- Specified by:
isDiscriminatorInsertablein classPersistentClass
-
getSynchronizedTables
- Specified by:
getSynchronizedTablesin classPersistentClass
-
accept
- Specified by:
acceptin classPersistentClass
-
getFilters
- Specified by:
getFiltersin interfaceFilterable- Overrides:
getFiltersin classPersistentClass
-
hasSubselectLoadableCollections
public boolean hasSubselectLoadableCollections()- Overrides:
hasSubselectLoadableCollectionsin classPersistentClass
-
getIdentifierMapper
- Overrides:
getIdentifierMapperin classPersistentClass
-
getOptimisticLockStyle
- Overrides:
getOptimisticLockStylein classPersistentClass
-