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
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, SoftDeleteType strategy) Enable soft-delete for this part of the model.getKey()The column which indicates soft-deletion.The strategy for indicating soft-deletion.intgetTable()getWhere()booleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanvoidsetCacheConcurrencyStrategy(String cacheConcurrencyStrategy) voidsetCacheRegionName(String cacheRegionName) voidsetConcreteProxy(boolean concreteProxy) voidsetDeclaredIdentifierProperty(Property declaredIdentifierProperty) voidsetDeclaredVersion(Property declaredVersion) voidsetDiscriminator(Value discriminator) voidsetDiscriminatorInsertable(boolean insertable) voidsetEmbeddedIdentifier(boolean embeddedIdentifier) voidsetExplicitPolymorphism(boolean explicitPolymorphism) Deprecated, for removal: This API element is subject to removal in a future version.No longer supportedvoidsetForceDiscriminator(boolean forceDiscriminator) voidsetIdentifier(KeyValue identifier) voidsetIdentifierProperty(Property identifierProperty) voidsetLazyPropertiesCacheable(boolean lazyPropertiesCacheable) voidsetMutable(boolean mutable) voidsetNaturalIdCacheRegionName(String naturalIdCacheRegionName) voidsetPolymorphic(boolean polymorphic) Deprecated.No longer supportedvoidvoidsetVersion(Property version) voidvoidMethods inherited from class org.hibernate.mapping.PersistentClass
addCallbackDefinitions, addCheckConstraint, addFilter, addJoin, addMappedSuperclassProperty, addProperty, addSubclassJoin, addSubclassProperty, addSubclassTable, addSynchronizedTable, applyProperty, assignCheckConstraintsToTable, checkColumnDuplication, contains, createConstraints, createPrimaryKey, findSecondaryTable, findTable, getBatchSize, getCallbackDefinitions, getCheckConstraints, getClassName, getContributor, getCustomSQLDelete, getCustomSQLInsert, getCustomSQLUpdate, getDeclaredIdentifierMapper, getDeclaredProperties, getDeleteExpectation, getDirectSubclasses, getDiscriminatorValue, getEntityName, getFilters, getIdentifierMapper, getIdentityTable, getImplicitTable, getInsertExpectation, getJoinClosure, getJoinClosureSpan, getJoinNumber, getJoins, getJpaEntityName, getLoaderName, getMappedClass, getMetaAttribute, getMetaAttributes, getNonDuplicatedProperties, getOptimisticLockStyle, getProperties, getProperty, getPropertyClosureSpan, 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, hasSubselectLoadableCollections, isAbstract, isCached, isClassOrSuperclassJoin, isClassOrSuperclassTable, 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
-
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
Deprecated.No longer supported -
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
-
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
-
getRootTable
- Specified by:
getRootTablein classPersistentClass
-
getSuperclass
- Specified by:
getSuperclassin classPersistentClass
-
getKey
- Specified by:
getKeyin classPersistentClass
-
setDiscriminator
-
setEmbeddedIdentifier
public void setEmbeddedIdentifier(boolean embeddedIdentifier) -
setExplicitPolymorphism
@Deprecated(since="7", forRemoval=true) public void setExplicitPolymorphism(boolean explicitPolymorphism) Deprecated, for removal: This API element is subject to removal in a future version.No longer supported -
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
Description copied from interface:SoftDeletableEnable soft-delete for this part of the model.- Specified by:
enableSoftDeletein interfaceSoftDeletable- Parameters:
indicatorColumn- The column which indicates soft-deletionstrategy- The strategy for indicating soft-deletion
-
getSoftDeleteColumn
Description copied from interface:SoftDeletableThe column which indicates soft-deletion.- Specified by:
getSoftDeleteColumnin interfaceSoftDeletable
-
getSoftDeleteStrategy
Description copied from interface:SoftDeletableThe strategy for indicating soft-deletion.- Specified by:
getSoftDeleteStrategyin interfaceSoftDeletable
-
accept
- Specified by:
acceptin classPersistentClass
-