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 TypeMethodDescriptionvoid
addSubclass
(Subclass subclass) void
enableSoftDelete
(Column indicatorColumn) getKey()
int
getTable()
getWhere()
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
void
setCacheConcurrencyStrategy
(String cacheConcurrencyStrategy) void
setCacheRegionName
(String cacheRegionName) void
setConcreteProxy
(boolean concreteProxy) void
setDeclaredIdentifierProperty
(Property declaredIdentifierProperty) void
setDeclaredVersion
(Property declaredVersion) void
setDiscriminator
(Value discriminator) void
setDiscriminatorInsertable
(boolean insertable) void
setEmbeddedIdentifier
(boolean embeddedIdentifier) void
setExplicitPolymorphism
(boolean explicitPolymorphism) Deprecated.No longer supportedvoid
setForceDiscriminator
(boolean forceDiscriminator) void
setIdentifier
(KeyValue identifier) void
setIdentifierProperty
(Property identifierProperty) void
setLazyPropertiesCacheable
(boolean lazyPropertiesCacheable) void
setMutable
(boolean mutable) void
setNaturalIdCacheRegionName
(String naturalIdCacheRegionName) void
setPolymorphic
(boolean polymorphic) Deprecated.No longer supportedvoid
void
setVersion
(Property version) void
void
Methods 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, 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, 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:
getSubclassId
in classPersistentClass
-
setTable
- Specified by:
setTable
in interfaceTableOwner
-
getTable
- Specified by:
getTable
in interfaceAttributeContainer
- Specified by:
getTable
in classPersistentClass
-
getIdentifierProperty
- Specified by:
getIdentifierProperty
in classPersistentClass
-
getDeclaredIdentifierProperty
- Specified by:
getDeclaredIdentifierProperty
in classPersistentClass
-
setDeclaredIdentifierProperty
-
getIdentifier
- Specified by:
getIdentifier
in classPersistentClass
-
hasIdentifierProperty
public boolean hasIdentifierProperty()- Specified by:
hasIdentifierProperty
in classPersistentClass
-
hasDiscriminator
public boolean hasDiscriminator() -
getDiscriminator
- Specified by:
getDiscriminator
in classPersistentClass
-
isInherited
public boolean isInherited()- Specified by:
isInherited
in classPersistentClass
-
isPolymorphic
public boolean isPolymorphic()- Specified by:
isPolymorphic
in classPersistentClass
-
setPolymorphic
Deprecated.No longer supported -
getRootClass
- Specified by:
getRootClass
in classPersistentClass
-
getPropertyClosure
- Specified by:
getPropertyClosure
in classPersistentClass
-
getTableClosure
- Specified by:
getTableClosure
in classPersistentClass
-
getKeyClosure
- Specified by:
getKeyClosure
in classPersistentClass
-
addSubclass
- Overrides:
addSubclass
in classPersistentClass
- Throws:
MappingException
-
getVersion
- Specified by:
getVersion
in classPersistentClass
-
getDeclaredVersion
- Specified by:
getDeclaredVersion
in classPersistentClass
-
setDeclaredVersion
-
setVersion
-
isVersioned
public boolean isVersioned()- Specified by:
isVersioned
in classPersistentClass
-
isMutable
public boolean isMutable()- Specified by:
isMutable
in classPersistentClass
-
hasEmbeddedIdentifier
public boolean hasEmbeddedIdentifier()- Specified by:
hasEmbeddedIdentifier
in classPersistentClass
-
getRootTable
- Specified by:
getRootTable
in classPersistentClass
-
getSuperclass
- Specified by:
getSuperclass
in classPersistentClass
-
getKey
- Specified by:
getKey
in classPersistentClass
-
setDiscriminator
-
setEmbeddedIdentifier
public void setEmbeddedIdentifier(boolean embeddedIdentifier) -
setExplicitPolymorphism
Deprecated.No longer supported -
setIdentifier
-
setIdentifierProperty
-
setMutable
public void setMutable(boolean mutable) -
isDiscriminatorInsertable
public boolean isDiscriminatorInsertable()- Specified by:
isDiscriminatorInsertable
in classPersistentClass
-
setDiscriminatorInsertable
public void setDiscriminatorInsertable(boolean insertable) -
isForceDiscriminator
public boolean isForceDiscriminator()- Overrides:
isForceDiscriminator
in classPersistentClass
-
setForceDiscriminator
public void setForceDiscriminator(boolean forceDiscriminator) -
isConcreteProxy
public boolean isConcreteProxy()- Specified by:
isConcreteProxy
in classPersistentClass
-
setConcreteProxy
public void setConcreteProxy(boolean concreteProxy) -
getWhere
- Specified by:
getWhere
in classPersistentClass
-
setWhere
-
validate
- Overrides:
validate
in classPersistentClass
- Throws:
MappingException
-
getCacheConcurrencyStrategy
- Specified by:
getCacheConcurrencyStrategy
in classPersistentClass
-
setCacheConcurrencyStrategy
-
getCacheRegionName
-
setCacheRegionName
-
isLazyPropertiesCacheable
public boolean isLazyPropertiesCacheable() -
setLazyPropertiesCacheable
public void setLazyPropertiesCacheable(boolean lazyPropertiesCacheable) -
getNaturalIdCacheRegionName
- Specified by:
getNaturalIdCacheRegionName
in classPersistentClass
-
setNaturalIdCacheRegionName
-
isJoinedSubclass
public boolean isJoinedSubclass()- Specified by:
isJoinedSubclass
in classPersistentClass
-
getSynchronizedTables
- Specified by:
getSynchronizedTables
in classPersistentClass
-
getIdentityTables
-
enableSoftDelete
- Specified by:
enableSoftDelete
in interfaceSoftDeletable
-
getSoftDeleteColumn
- Specified by:
getSoftDeleteColumn
in interfaceSoftDeletable
-
accept
- Specified by:
accept
in classPersistentClass
-