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
public class RootClass extends PersistentClass implements TableOwner, SoftDeletable
A mapping model object that represents the root class in an entity class inheritance hierarchy.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static @Remove String
DEFAULT_DISCRIMINATOR_COLUMN_NAME
Deprecated.static @Remove String
DEFAULT_IDENTIFIER_COLUMN_NAME
Deprecated.-
Fields inherited from class org.hibernate.mapping.PersistentClass
NOT_NULL_DISCRIMINATOR_MAPPING, NULL_DISCRIMINATOR_MAPPING, synchronizedTables
-
-
Constructor Summary
Constructors Constructor Description RootClass(MetadataBuildingContext buildingContext)
-
Method Summary
-
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, 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 Detail
-
DEFAULT_IDENTIFIER_COLUMN_NAME
@Deprecated(since="6.2") @Remove public static final @Remove String DEFAULT_IDENTIFIER_COLUMN_NAME
Deprecated.- See Also:
- Constant Field Values
-
DEFAULT_DISCRIMINATOR_COLUMN_NAME
@Deprecated(since="6.2") @Remove public static final @Remove String DEFAULT_DISCRIMINATOR_COLUMN_NAME
Deprecated.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
RootClass
public RootClass(MetadataBuildingContext buildingContext)
-
-
Method Detail
-
getSubclassId
public int getSubclassId()
- Specified by:
getSubclassId
in classPersistentClass
-
setTable
public void setTable(Table table)
- Specified by:
setTable
in interfaceTableOwner
-
getTable
public Table getTable()
- Specified by:
getTable
in interfaceAttributeContainer
- Specified by:
getTable
in classPersistentClass
-
getIdentifierProperty
public Property getIdentifierProperty()
- Specified by:
getIdentifierProperty
in classPersistentClass
-
getDeclaredIdentifierProperty
public Property getDeclaredIdentifierProperty()
- Specified by:
getDeclaredIdentifierProperty
in classPersistentClass
-
setDeclaredIdentifierProperty
public void setDeclaredIdentifierProperty(Property declaredIdentifierProperty)
-
getIdentifier
public KeyValue getIdentifier()
- Specified by:
getIdentifier
in classPersistentClass
-
hasIdentifierProperty
public boolean hasIdentifierProperty()
- Specified by:
hasIdentifierProperty
in classPersistentClass
-
hasDiscriminator
public boolean hasDiscriminator()
-
getDiscriminator
public Value 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
public void setPolymorphic(boolean polymorphic)
-
getRootClass
public RootClass getRootClass()
- Specified by:
getRootClass
in classPersistentClass
-
getPropertyClosure
public List<Property> getPropertyClosure()
- Specified by:
getPropertyClosure
in classPersistentClass
-
getTableClosure
public List<Table> getTableClosure()
- Specified by:
getTableClosure
in classPersistentClass
-
getKeyClosure
public List<KeyValue> getKeyClosure()
- Specified by:
getKeyClosure
in classPersistentClass
-
addSubclass
public void addSubclass(Subclass subclass) throws MappingException
- Overrides:
addSubclass
in classPersistentClass
- Throws:
MappingException
-
isExplicitPolymorphism
public boolean isExplicitPolymorphism()
- Specified by:
isExplicitPolymorphism
in classPersistentClass
-
getVersion
public Property getVersion()
- Specified by:
getVersion
in classPersistentClass
-
getDeclaredVersion
public Property getDeclaredVersion()
- Specified by:
getDeclaredVersion
in classPersistentClass
-
setDeclaredVersion
public void setDeclaredVersion(Property declaredVersion)
-
setVersion
public void setVersion(Property version)
-
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
-
getEntityPersisterClass
public Class<? extends EntityPersister> getEntityPersisterClass()
- Specified by:
getEntityPersisterClass
in classPersistentClass
-
getRootTable
public Table getRootTable()
- Specified by:
getRootTable
in classPersistentClass
-
setEntityPersisterClass
public void setEntityPersisterClass(Class<? extends EntityPersister> persister)
- Specified by:
setEntityPersisterClass
in classPersistentClass
-
getSuperclass
public PersistentClass getSuperclass()
- Specified by:
getSuperclass
in classPersistentClass
-
getKey
public KeyValue getKey()
- Specified by:
getKey
in classPersistentClass
-
setDiscriminator
public void setDiscriminator(Value discriminator)
-
setEmbeddedIdentifier
public void setEmbeddedIdentifier(boolean embeddedIdentifier)
-
setExplicitPolymorphism
public void setExplicitPolymorphism(boolean explicitPolymorphism)
-
setIdentifier
public void setIdentifier(KeyValue identifier)
-
setIdentifierProperty
public void setIdentifierProperty(Property identifierProperty)
-
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
public String getWhere()
- Specified by:
getWhere
in classPersistentClass
-
setWhere
public void setWhere(String string)
-
validate
public void validate(Metadata mapping) throws MappingException
- Overrides:
validate
in classPersistentClass
- Throws:
MappingException
-
getCacheConcurrencyStrategy
public String getCacheConcurrencyStrategy()
- Specified by:
getCacheConcurrencyStrategy
in classPersistentClass
-
setCacheConcurrencyStrategy
public void setCacheConcurrencyStrategy(String cacheConcurrencyStrategy)
-
getCacheRegionName
public String getCacheRegionName()
-
setCacheRegionName
public void setCacheRegionName(String cacheRegionName)
-
isLazyPropertiesCacheable
public boolean isLazyPropertiesCacheable()
-
setLazyPropertiesCacheable
public void setLazyPropertiesCacheable(boolean lazyPropertiesCacheable)
-
getNaturalIdCacheRegionName
public String getNaturalIdCacheRegionName()
- Specified by:
getNaturalIdCacheRegionName
in classPersistentClass
-
setNaturalIdCacheRegionName
public void setNaturalIdCacheRegionName(String naturalIdCacheRegionName)
-
isJoinedSubclass
public boolean isJoinedSubclass()
- Specified by:
isJoinedSubclass
in classPersistentClass
-
getSynchronizedTables
public Set<String> getSynchronizedTables()
- Specified by:
getSynchronizedTables
in classPersistentClass
-
enableSoftDelete
public void enableSoftDelete(Column indicatorColumn)
- Specified by:
enableSoftDelete
in interfaceSoftDeletable
-
getSoftDeleteColumn
public Column getSoftDeleteColumn()
- Specified by:
getSoftDeleteColumn
in interfaceSoftDeletable
-
accept
public Object accept(PersistentClassVisitor mv)
- Specified by:
accept
in classPersistentClass
-
-