org.hibernate.mapping

Class RootClass

Implemented Interfaces:
Serializable, Filterable, MetaAttributable, TableOwner

public class RootClass
extends PersistentClass
implements TableOwner

The root class of an inheritance hierarchy
Author:
Gavin King

Field Summary

static String
DEFAULT_DISCRIMINATOR_COLUMN_NAME
static String
DEFAULT_IDENTIFIER_COLUMN_NAME

Fields inherited from class org.hibernate.mapping.PersistentClass

NOT_NULL_DISCRIMINATOR_MAPPING, NULL_DISCRIMINATOR_MAPPING, optimisticLockMode, synchronizedTables

Method Summary

Object
accept(PersistentClassVisitor mv)
void
addSubclass(Subclass subclass)
String
getCacheConcurrencyStrategy()
String
getCacheRegionName()
Value
getDiscriminator()
Class
getEntityPersisterClass()
KeyValue
getIdentifier()
Property
getIdentifierProperty()
Set
getIdentityTables()
KeyValue
getKey()
Iterator
getKeyClosureIterator()
int
getOptimisticLockMode()
Iterator
getPropertyClosureIterator()
RootClass
getRootClass()
Table
getRootTable()
int
getSubclassId()
PersistentClass
getSuperclass()
Set
getSynchronizedTables()
Table
getTable()
Iterator
getTableClosureIterator()
Property
getVersion()
String
getWhere()
boolean
hasEmbeddedIdentifier()
boolean
hasIdentifierProperty()
boolean
isDiscriminatorInsertable()
boolean
isExplicitPolymorphism()
boolean
isForceDiscriminator()
boolean
isInherited()
boolean
isJoinedSubclass()
boolean
isLazyPropertiesCacheable()
boolean
isMutable()
boolean
isPolymorphic()
boolean
isVersioned()
void
setCacheConcurrencyStrategy(String cacheConcurrencyStrategy)
void
setCacheRegionName(String cacheRegionName)
void
setDiscriminator(Value discriminator)
void
setDiscriminatorInsertable(boolean insertable)
void
setEmbeddedIdentifier(boolean embeddedIdentifier)
void
setEntityPersisterClass(Class persister)
void
setExplicitPolymorphism(boolean explicitPolymorphism)
void
setForceDiscriminator(boolean forceDiscriminator)
void
setIdentifier(KeyValue identifier)
void
setIdentifierProperty(Property identifierProperty)
void
setLazyPropertiesCacheable(boolean lazyPropertiesCacheable)
void
setMutable(boolean mutable)
void
setPolymorphic(boolean polymorphic)
void
setTable(Table table)
void
setVersion(Property version)
void
setWhere(String string)
void
validate(Mapping mapping)

Methods inherited from class org.hibernate.mapping.PersistentClass

accept, addFilter, addJoin, addProperty, addSubclass, addSubclassJoin, addSubclassProperty, addSubclassTable, addSynchronizedTable, addTuplizer, checkColumnDuplication, checkColumnDuplication, checkPropertyColumnDuplication, createPrimaryKey, getBatchSize, getCacheConcurrencyStrategy, getClassName, getCustomSQLDelete, getCustomSQLDeleteCheckStyle, getCustomSQLInsert, getCustomSQLInsertCheckStyle, getCustomSQLUpdate, getCustomSQLUpdateCheckStyle, getDirectSubclasses, getDiscriminator, getDiscriminatorColumnIterator, getDiscriminatorValue, getEntityName, getEntityPersisterClass, getFilterMap, getIdentifier, getIdentifierMapper, getIdentifierProperty, getIdentityTable, getJoinClosureIterator, getJoinClosureSpan, getJoinIterator, getJoinNumber, getKey, getKeyClosureIterator, getLoaderName, getMappedClass, getMetaAttribute, getMetaAttributes, getNodeName, getNonDuplicatedPropertyIterator, getOptimisticLockMode, getProperty, getPropertyClosureIterator, getPropertyClosureSpan, getPropertyIterator, getProxyInterface, getProxyInterfaceName, getRecursiveProperty, getReferenceablePropertyIterator, getReferencedProperty, getRootClass, getRootTable, getSubclassClosureIterator, getSubclassId, getSubclassIterator, getSubclassJoinClosureIterator, getSubclassPropertyClosureIterator, getSubclassSpan, getSubclassTableClosureIterator, getSuperclass, getSynchronizedTables, getTable, getTableClosureIterator, getTemporaryIdTableDDL, getTemporaryIdTableName, getTuplizerImplClassName, getTuplizerMap, getUnjoinedPropertyIterator, getVersion, getWhere, hasDom4jRepresentation, hasEmbeddedIdentifier, hasIdentifierMapper, hasIdentifierProperty, hasNaturalId, hasPojoRepresentation, hasSelectBeforeUpdate, hasSubclasses, hasSubselectLoadableCollections, isAbstract, isClassOrSuperclassJoin, isClassOrSuperclassTable, isCustomDeleteCallable, isCustomInsertCallable, isCustomUpdateCallable, isDiscriminatorInsertable, isDiscriminatorValueNotNull, isDiscriminatorValueNull, isExplicitPolymorphism, isForceDiscriminator, isInherited, isJoinedSubclass, isLazy, isLazyPropertiesCacheable, isMutable, isPolymorphic, isVersioned, prepareTemporaryTables, setAbstract, setBatchSize, setClassName, setCustomSQLDelete, setCustomSQLInsert, setCustomSQLUpdate, setDiscriminatorValue, setDynamicInsert, setDynamicUpdate, setEntityName, setEntityPersisterClass, setIdentifierMapper, setLazy, setLoaderName, setMetaAttributes, setNodeName, setOptimisticLockMode, setProxyInterfaceName, setSelectBeforeUpdate, setSubselectLoadableCollections, toString, useDynamicInsert, useDynamicUpdate, validate

Field Details

DEFAULT_DISCRIMINATOR_COLUMN_NAME

public static final String DEFAULT_DISCRIMINATOR_COLUMN_NAME

DEFAULT_IDENTIFIER_COLUMN_NAME

public static final String DEFAULT_IDENTIFIER_COLUMN_NAME

Method Details

accept

public Object accept(PersistentClassVisitor mv)
Overrides:
accept in interface PersistentClass

addSubclass

public void addSubclass(Subclass subclass)
            throws MappingException
Overrides:
addSubclass in interface PersistentClass

getCacheConcurrencyStrategy

public String getCacheConcurrencyStrategy()
Overrides:
getCacheConcurrencyStrategy in interface PersistentClass

getCacheRegionName

public String getCacheRegionName()

getDiscriminator

public Value getDiscriminator()
Overrides:
getDiscriminator in interface PersistentClass

getEntityPersisterClass

public Class getEntityPersisterClass()
Overrides:
getEntityPersisterClass in interface PersistentClass

getIdentifier

public KeyValue getIdentifier()
Overrides:
getIdentifier in interface PersistentClass

getIdentifierProperty

public Property getIdentifierProperty()
Overrides:
getIdentifierProperty in interface PersistentClass

getIdentityTables

public Set getIdentityTables()

getKey

public KeyValue getKey()
Overrides:
getKey in interface PersistentClass

getKeyClosureIterator

public Iterator getKeyClosureIterator()
Overrides:
getKeyClosureIterator in interface PersistentClass

getOptimisticLockMode

public int getOptimisticLockMode()
Overrides:
getOptimisticLockMode in interface PersistentClass

getPropertyClosureIterator

public Iterator getPropertyClosureIterator()
Overrides:
getPropertyClosureIterator in interface PersistentClass

getRootClass

public RootClass getRootClass()
Overrides:
getRootClass in interface PersistentClass

getRootTable

public Table getRootTable()
Overrides:
getRootTable in interface PersistentClass

getSubclassId

public int getSubclassId()
Overrides:
getSubclassId in interface PersistentClass

getSuperclass

public PersistentClass getSuperclass()
Overrides:
getSuperclass in interface PersistentClass

getSynchronizedTables

public Set getSynchronizedTables()
Overrides:
getSynchronizedTables in interface PersistentClass

getTable

public Table getTable()
Overrides:
getTable in interface PersistentClass

getTableClosureIterator

public Iterator getTableClosureIterator()
Overrides:
getTableClosureIterator in interface PersistentClass

getVersion

public Property getVersion()
Overrides:
getVersion in interface PersistentClass

getWhere

public String getWhere()
Overrides:
getWhere in interface PersistentClass

hasEmbeddedIdentifier

public boolean hasEmbeddedIdentifier()
Overrides:
hasEmbeddedIdentifier in interface PersistentClass

hasIdentifierProperty

public boolean hasIdentifierProperty()
Overrides:
hasIdentifierProperty in interface PersistentClass

isDiscriminatorInsertable

public boolean isDiscriminatorInsertable()
Overrides:
isDiscriminatorInsertable in interface PersistentClass

isExplicitPolymorphism

public boolean isExplicitPolymorphism()
Overrides:
isExplicitPolymorphism in interface PersistentClass

isForceDiscriminator

public boolean isForceDiscriminator()
Overrides:
isForceDiscriminator in interface PersistentClass

isInherited

public boolean isInherited()
Overrides:
isInherited in interface PersistentClass

isJoinedSubclass

public boolean isJoinedSubclass()
Overrides:
isJoinedSubclass in interface PersistentClass

isLazyPropertiesCacheable

public boolean isLazyPropertiesCacheable()
Overrides:
isLazyPropertiesCacheable in interface PersistentClass

isMutable

public boolean isMutable()
Overrides:
isMutable in interface PersistentClass

isPolymorphic

public boolean isPolymorphic()
Overrides:
isPolymorphic in interface PersistentClass

isVersioned

public boolean isVersioned()
Overrides:
isVersioned in interface PersistentClass

setCacheConcurrencyStrategy

public void setCacheConcurrencyStrategy(String cacheConcurrencyStrategy)

setCacheRegionName

public void setCacheRegionName(String cacheRegionName)

setDiscriminator

public void setDiscriminator(Value discriminator)

setDiscriminatorInsertable

public void setDiscriminatorInsertable(boolean insertable)

setEmbeddedIdentifier

public void setEmbeddedIdentifier(boolean embeddedIdentifier)

setEntityPersisterClass

public void setEntityPersisterClass(Class persister)
Overrides:
setEntityPersisterClass in interface PersistentClass

setExplicitPolymorphism

public void setExplicitPolymorphism(boolean explicitPolymorphism)

setForceDiscriminator

public void setForceDiscriminator(boolean forceDiscriminator)

setIdentifier

public void setIdentifier(KeyValue identifier)

setIdentifierProperty

public void setIdentifierProperty(Property identifierProperty)

setLazyPropertiesCacheable

public void setLazyPropertiesCacheable(boolean lazyPropertiesCacheable)

setMutable

public void setMutable(boolean mutable)

setPolymorphic

public void setPolymorphic(boolean polymorphic)

setTable

public void setTable(Table table)
Specified by:
setTable in interface TableOwner

setVersion

public void setVersion(Property version)

setWhere

public void setWhere(String string)

validate

public void validate(Mapping mapping)
            throws MappingException
Overrides:
validate in interface PersistentClass