Package org.hibernate.mapping
Class RootClass
java.lang.Object
org.hibernate.mapping.PersistentClass
org.hibernate.mapping.RootClass
- All Implemented Interfaces:
Serializable,AttributeContainer,Contributable,Filterable,IdentifiableTypeClass,MetaAttributable,SoftDeletable,TableContainer,TableOwner
A mapping model object that represents the root class in an entity class
inheritance hierarchy.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionDeprecated.Deprecated.Fields inherited from class org.hibernate.mapping.PersistentClass
NOT_NULL_DISCRIMINATOR_MAPPING, NULL_DISCRIMINATOR_MAPPING, synchronizedTables -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddSubclass(Subclass subclass) voidenableSoftDelete(Column indicatorColumn) Class<? extends EntityPersister>getKey()intgetTable()getWhere()booleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanvoidsetCacheConcurrencyStrategy(String cacheConcurrencyStrategy) voidsetCacheRegionName(String cacheRegionName) voidsetConcreteProxy(boolean concreteProxy) voidsetDeclaredIdentifierProperty(Property declaredIdentifierProperty) voidsetDeclaredVersion(Property declaredVersion) voidsetDiscriminator(Value discriminator) voidsetDiscriminatorInsertable(boolean insertable) voidsetEmbeddedIdentifier(boolean embeddedIdentifier) voidsetEntityPersisterClass(Class<? extends EntityPersister> persister) voidsetExplicitPolymorphism(boolean explicitPolymorphism) voidsetForceDiscriminator(boolean forceDiscriminator) voidsetIdentifier(KeyValue identifier) voidsetIdentifierProperty(Property identifierProperty) voidsetLazyPropertiesCacheable(boolean lazyPropertiesCacheable) voidsetMutable(boolean mutable) voidsetNaturalIdCacheRegionName(String naturalIdCacheRegionName) voidsetPolymorphic(boolean polymorphic) voidvoidsetVersion(Property version) voidvoidMethods inherited from class org.hibernate.mapping.PersistentClass
addCallbackDefinitions, addCheckConstraint, addFilter, addJoin, addMappedSuperclassProperty, addProperty, addSubclassJoin, addSubclassProperty, addSubclassTable, addSynchronizedTable, applyProperty, assignCheckConstraintsToTable, checkColumnDuplication, contains, createPrimaryKey, findSecondaryTable, findTable, getBatchSize, getCallbackDefinitions, getCheckConstraints, getClassName, getContributor, getCustomSQLDelete, getCustomSQLDeleteCheckStyle, getCustomSQLInsert, getCustomSQLInsertCheckStyle, getCustomSQLUpdate, getCustomSQLUpdateCheckStyle, getDeclaredIdentifierMapper, getDeclaredProperties, getDeleteExpectation, getDirectSubclasses, getDiscriminatorValue, getEntityName, getFilters, getIdentifierMapper, getIdentityTable, getImplicitTable, getInsertExpectation, getJoinClosure, getJoinClosureSpan, getJoinNumber, getJoins, getJpaEntityName, getLoaderName, getMappedClass, getMetaAttribute, getMetaAttributes, getNonDuplicatedProperties, getOptimisticLockMode, getOptimisticLockStyle, getProperties, getProperty, getPropertyClosureSpan, getProxyInterface, getProxyInterfaceName, getQueryCacheLayout, getRecursiveProperty, getReferenceableProperties, getReferencedProperty, getSecondaryTable, getServiceRegistry, getSubclassClosure, getSubclasses, getSubclassJoinClosure, getSubclassProperty, getSubclassPropertyClosure, getSubclassSpan, getSubclassTableClosure, getSubTypes, getSuperMappedSuperclass, getSuperPersistentClass, getSuperType, getTable, getUnjoinedProperties, getUpdateExpectation, hasCollectionNotReferencingPK, hasIdentifierMapper, hasNaturalId, hasPartitionedSelectionMapping, hasPojoRepresentation, hasProperty, hasSelectBeforeUpdate, hasSubclasses, hasSubselectLoadableCollections, isAbstract, isCached, isCachingExplicitlyRequested, isClassOrSuperclassJoin, isClassOrSuperclassTable, isCustomDeleteCallable, isCustomInsertCallable, isCustomUpdateCallable, isDefinedOnMultipleSubclasses, isDiscriminatorValueNotNull, isDiscriminatorValueNull, isLazy, isPropertyDefinedInHierarchy, isPropertyDefinedInSuperHierarchy, prepareForMappingModel, setAbstract, setBatchSize, setCached, setCachingExplicitlyRequested, setClassName, setCustomSQLDelete, setCustomSQLInsert, setCustomSQLUpdate, setDeclaredIdentifierMapper, setDeleteExpectation, setDiscriminatorValue, setDynamicInsert, setDynamicUpdate, setEntityName, setIdentifierMapper, setInsertExpectation, setJpaEntityName, setLazy, setLoaderName, setMetaAttributes, setOptimisticLockMode, setOptimisticLockStyle, setProxyInterfaceName, setQueryCacheLayout, setSelectBeforeUpdate, setSubselectLoadableCollections, setSuperMappedSuperclass, setUpdateExpectation, toString, useDynamicInsert, useDynamicUpdate
-
Field Details
-
DEFAULT_IDENTIFIER_COLUMN_NAME
Deprecated.- See Also:
-
DEFAULT_DISCRIMINATOR_COLUMN_NAME
@Deprecated(since="6.2") @Remove public static final @Remove String DEFAULT_DISCRIMINATOR_COLUMN_NAMEDeprecated.- See Also:
-
-
Constructor Details
-
RootClass
-
-
Method Details
-
getSubclassId
public int getSubclassId()- Specified by:
getSubclassIdin classPersistentClass
-
setTable
- Specified by:
setTablein interfaceTableOwner
-
getTable
- Specified by:
getTablein interfaceAttributeContainer- Specified by:
getTablein classPersistentClass
-
getIdentifierProperty
- Specified by:
getIdentifierPropertyin classPersistentClass
-
getDeclaredIdentifierProperty
- Specified by:
getDeclaredIdentifierPropertyin classPersistentClass
-
setDeclaredIdentifierProperty
-
getIdentifier
- Specified by:
getIdentifierin classPersistentClass
-
hasIdentifierProperty
public boolean hasIdentifierProperty()- Specified by:
hasIdentifierPropertyin classPersistentClass
-
hasDiscriminator
public boolean hasDiscriminator() -
getDiscriminator
- Specified by:
getDiscriminatorin classPersistentClass
-
isInherited
public boolean isInherited()- Specified by:
isInheritedin classPersistentClass
-
isPolymorphic
public boolean isPolymorphic()- Specified by:
isPolymorphicin classPersistentClass
-
setPolymorphic
public void setPolymorphic(boolean polymorphic) -
getRootClass
- Specified by:
getRootClassin classPersistentClass
-
getPropertyClosure
- Specified by:
getPropertyClosurein classPersistentClass
-
getTableClosure
- Specified by:
getTableClosurein classPersistentClass
-
getKeyClosure
- Specified by:
getKeyClosurein classPersistentClass
-
addSubclass
- Overrides:
addSubclassin classPersistentClass- Throws:
MappingException
-
isExplicitPolymorphism
public boolean isExplicitPolymorphism()- Specified by:
isExplicitPolymorphismin classPersistentClass
-
getVersion
- Specified by:
getVersionin classPersistentClass
-
getDeclaredVersion
- Specified by:
getDeclaredVersionin classPersistentClass
-
setDeclaredVersion
-
setVersion
-
isVersioned
public boolean isVersioned()- Specified by:
isVersionedin classPersistentClass
-
isMutable
public boolean isMutable()- Specified by:
isMutablein classPersistentClass
-
hasEmbeddedIdentifier
public boolean hasEmbeddedIdentifier()- Specified by:
hasEmbeddedIdentifierin classPersistentClass
-
getEntityPersisterClass
- Specified by:
getEntityPersisterClassin classPersistentClass
-
getRootTable
- Specified by:
getRootTablein classPersistentClass
-
setEntityPersisterClass
- Specified by:
setEntityPersisterClassin classPersistentClass
-
getSuperclass
- Specified by:
getSuperclassin classPersistentClass
-
getKey
- Specified by:
getKeyin classPersistentClass
-
setDiscriminator
-
setEmbeddedIdentifier
public void setEmbeddedIdentifier(boolean embeddedIdentifier) -
setExplicitPolymorphism
public void setExplicitPolymorphism(boolean explicitPolymorphism) -
setIdentifier
-
setIdentifierProperty
-
setMutable
public void setMutable(boolean mutable) -
isDiscriminatorInsertable
public boolean isDiscriminatorInsertable()- Specified by:
isDiscriminatorInsertablein classPersistentClass
-
setDiscriminatorInsertable
public void setDiscriminatorInsertable(boolean insertable) -
isForceDiscriminator
public boolean isForceDiscriminator()- Overrides:
isForceDiscriminatorin classPersistentClass
-
setForceDiscriminator
public void setForceDiscriminator(boolean forceDiscriminator) -
isConcreteProxy
public boolean isConcreteProxy()- Specified by:
isConcreteProxyin classPersistentClass
-
setConcreteProxy
public void setConcreteProxy(boolean concreteProxy) -
getWhere
- Specified by:
getWherein classPersistentClass
-
setWhere
-
validate
- Overrides:
validatein classPersistentClass- Throws:
MappingException
-
getCacheConcurrencyStrategy
- Specified by:
getCacheConcurrencyStrategyin classPersistentClass
-
setCacheConcurrencyStrategy
-
getCacheRegionName
-
setCacheRegionName
-
isLazyPropertiesCacheable
public boolean isLazyPropertiesCacheable() -
setLazyPropertiesCacheable
public void setLazyPropertiesCacheable(boolean lazyPropertiesCacheable) -
getNaturalIdCacheRegionName
- Specified by:
getNaturalIdCacheRegionNamein classPersistentClass
-
setNaturalIdCacheRegionName
-
isJoinedSubclass
public boolean isJoinedSubclass()- Specified by:
isJoinedSubclassin classPersistentClass
-
getSynchronizedTables
- Specified by:
getSynchronizedTablesin classPersistentClass
-
getIdentityTables
-
enableSoftDelete
- Specified by:
enableSoftDeletein interfaceSoftDeletable
-
getSoftDeleteColumn
- Specified by:
getSoftDeleteColumnin interfaceSoftDeletable
-
accept
- Specified by:
acceptin classPersistentClass
-