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
FieldsFields 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) getKey()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.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, 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
-
Field Details
-
DEFAULT_IDENTIFIER_COLUMN_NAME
Deprecated.- See Also:
-
DEFAULT_DISCRIMINATOR_COLUMN_NAME
Deprecated.- 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
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.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
- Specified by:
enableSoftDeletein interfaceSoftDeletable
-
getSoftDeleteColumn
- Specified by:
getSoftDeleteColumnin interfaceSoftDeletable
-
accept
- Specified by:
acceptin classPersistentClass
-