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
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 TypeMethodDescriptionvoid
void
addMappedSuperclassProperty
(Property property) void
addProperty
(Property property) Add a property to thisPersistentClass
orJoin
.protected void
protected void
protected void
addSubclassTable
(Table table) void
int
getKey()
int
int
getTable()
getWhere()
boolean
boolean
boolean
boolean
isClassOrSuperclassJoin
(Join join) boolean
isClassOrSuperclassTable
(Table table) boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
void
setSuperclass
(PersistentClass superclass) Methods inherited from class org.hibernate.mapping.PersistentClass
addCallbackDefinitions, addCheckConstraint, addFilter, addSubclass, addSynchronizedTable, applyProperty, assignCheckConstraintsToTable, checkColumnDuplication, contains, 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, 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:
getSubclassId
in classPersistentClass
-
getNaturalIdCacheRegionName
- Specified by:
getNaturalIdCacheRegionName
in classPersistentClass
-
getCacheConcurrencyStrategy
- Specified by:
getCacheConcurrencyStrategy
in classPersistentClass
-
getRootClass
- Specified by:
getRootClass
in classPersistentClass
-
getSuperclass
- Specified by:
getSuperclass
in classPersistentClass
-
getIdentifierProperty
- Specified by:
getIdentifierProperty
in classPersistentClass
-
getDeclaredIdentifierProperty
- Specified by:
getDeclaredIdentifierProperty
in classPersistentClass
-
getIdentifier
- Specified by:
getIdentifier
in classPersistentClass
-
hasIdentifierProperty
public boolean hasIdentifierProperty()- Specified by:
hasIdentifierProperty
in classPersistentClass
-
getDiscriminator
- Specified by:
getDiscriminator
in classPersistentClass
-
isMutable
public boolean isMutable()- Specified by:
isMutable
in classPersistentClass
-
isInherited
public boolean isInherited()- Specified by:
isInherited
in classPersistentClass
-
isPolymorphic
public boolean isPolymorphic()- Specified by:
isPolymorphic
in classPersistentClass
-
addProperty
Description copied from interface:AttributeContainer
Add a property to thisPersistentClass
orJoin
.- Specified by:
addProperty
in interfaceAttributeContainer
- Overrides:
addProperty
in classPersistentClass
-
addMappedSuperclassProperty
- Overrides:
addMappedSuperclassProperty
in classPersistentClass
-
addJoin
- Overrides:
addJoin
in classPersistentClass
-
getPropertyClosure
- Specified by:
getPropertyClosure
in classPersistentClass
-
getTableClosure
- Specified by:
getTableClosure
in classPersistentClass
-
getKeyClosure
- Specified by:
getKeyClosure
in classPersistentClass
-
addSubclassProperty
- Overrides:
addSubclassProperty
in classPersistentClass
-
addSubclassJoin
- Overrides:
addSubclassJoin
in classPersistentClass
-
addSubclassTable
- Overrides:
addSubclassTable
in classPersistentClass
-
isVersioned
public boolean isVersioned()- Specified by:
isVersioned
in classPersistentClass
-
getVersion
- Specified by:
getVersion
in classPersistentClass
-
getDeclaredVersion
- Specified by:
getDeclaredVersion
in classPersistentClass
-
hasEmbeddedIdentifier
public boolean hasEmbeddedIdentifier()- Specified by:
hasEmbeddedIdentifier
in classPersistentClass
-
getRootTable
- Specified by:
getRootTable
in classPersistentClass
-
getKey
- Specified by:
getKey
in classPersistentClass
-
isConcreteProxy
public boolean isConcreteProxy()- Specified by:
isConcreteProxy
in classPersistentClass
-
setSuperclass
-
getWhere
- Specified by:
getWhere
in classPersistentClass
-
isJoinedSubclass
public boolean isJoinedSubclass()- Specified by:
isJoinedSubclass
in classPersistentClass
-
createForeignKey
public void createForeignKey() -
getJoinClosureSpan
public int getJoinClosureSpan()- Overrides:
getJoinClosureSpan
in classPersistentClass
-
getPropertyClosureSpan
public int getPropertyClosureSpan()- Overrides:
getPropertyClosureSpan
in classPersistentClass
-
getJoinClosure
- Overrides:
getJoinClosure
in classPersistentClass
-
isClassOrSuperclassJoin
- Overrides:
isClassOrSuperclassJoin
in classPersistentClass
-
isClassOrSuperclassTable
- Overrides:
isClassOrSuperclassTable
in classPersistentClass
-
getTable
- Specified by:
getTable
in interfaceAttributeContainer
- Specified by:
getTable
in classPersistentClass
-
isForceDiscriminator
public boolean isForceDiscriminator()- Overrides:
isForceDiscriminator
in classPersistentClass
-
isDiscriminatorInsertable
public boolean isDiscriminatorInsertable()- Specified by:
isDiscriminatorInsertable
in classPersistentClass
-
getSynchronizedTables
- Specified by:
getSynchronizedTables
in classPersistentClass
-
accept
- Specified by:
accept
in classPersistentClass
-
getFilters
- Specified by:
getFilters
in interfaceFilterable
- Overrides:
getFilters
in classPersistentClass
-
hasSubselectLoadableCollections
public boolean hasSubselectLoadableCollections()- Overrides:
hasSubselectLoadableCollections
in classPersistentClass
-
getIdentifierMapper
- Overrides:
getIdentifierMapper
in classPersistentClass
-
getOptimisticLockStyle
- Overrides:
getOptimisticLockStyle
in classPersistentClass
-