当前页面:
在线文档首页 >
Hibernate 2.1.8 正式版 API 英文文档
RootClass (Hibernate API Documentation) - Hibernate 2.1.8 正式版 API 英文文档
net.sf.hibernate.mapping
Class RootClass
java.lang.Object
net.sf.hibernate.mapping.PersistentClass
net.sf.hibernate.mapping.RootClass
- public class RootClass
- extends PersistentClass
The root class of a table-per-subclass, or table-per-concrete-class
inheritance hierarchy.
- Author:
- Gavin King
Methods inherited from class net.sf.hibernate.mapping.PersistentClass |
addNewProperty, addProperty, addSubclassProperty, addSubclassTable, createPrimaryKey, getBatchSize, getDirectSubclasses, getDiscriminatorValue, getMappedClass, getMetaAttribute, getMetaAttributes, getName, getOptimisticLockMode, getProperty, getPropertyIterator, getProxyInterface, getSubclassIterator, getSubclassPropertyClosureIterator, getSubclassSpan, getSubclassTableClosureIterator, getTable, hasSelectBeforeUpdate, hasSubclasses, isDiscriminatorValueNotNull, isDiscriminatorValueNull, setBatchSize, setDiscriminatorValue, setDynamicInsert, setDynamicUpdate, setMappedClass, setMetaAttributes, setOptimisticLockMode, setProxyInterface, setSelectBeforeUpdate, setTable, toString, useDynamicInsert, useDynamicUpdate |
DEFAULT_IDENTIFIER_COLUMN_NAME
public static final String DEFAULT_IDENTIFIER_COLUMN_NAME
- See Also:
- Constant Field Values
DEFAULT_DISCRIMINATOR_COLUMN_NAME
public static final String DEFAULT_DISCRIMINATOR_COLUMN_NAME
- See Also:
- Constant Field Values
RootClass
public RootClass()
getIdentifierProperty
public Property getIdentifierProperty()
- Specified by:
getIdentifierProperty
in class PersistentClass
getIdentifier
public SimpleValue getIdentifier()
- Specified by:
getIdentifier
in class PersistentClass
hasIdentifierProperty
public boolean hasIdentifierProperty()
- Specified by:
hasIdentifierProperty
in class PersistentClass
getDiscriminator
public Value getDiscriminator()
- Specified by:
getDiscriminator
in class PersistentClass
isInherited
public boolean isInherited()
- Specified by:
isInherited
in class PersistentClass
isPolymorphic
public boolean isPolymorphic()
- Specified by:
isPolymorphic
in class PersistentClass
setPolymorphic
public void setPolymorphic(boolean polymorphic)
getRootClass
public RootClass getRootClass()
- Specified by:
getRootClass
in class PersistentClass
getPropertyClosureIterator
public Iterator getPropertyClosureIterator()
- Specified by:
getPropertyClosureIterator
in class PersistentClass
getTableClosureIterator
public Iterator getTableClosureIterator()
- Specified by:
getTableClosureIterator
in class PersistentClass
addSubclass
public void addSubclass(Subclass subclass)
throws MappingException
- Overrides:
addSubclass
in class PersistentClass
- Throws:
MappingException
isExplicitPolymorphism
public boolean isExplicitPolymorphism()
- Specified by:
isExplicitPolymorphism
in class PersistentClass
getVersion
public Property getVersion()
- Specified by:
getVersion
in class PersistentClass
setVersion
public void setVersion(Property version)
isVersioned
public boolean isVersioned()
- Specified by:
isVersioned
in class PersistentClass
getCache
public CacheConcurrencyStrategy getCache()
- Specified by:
getCache
in class PersistentClass
isMutable
public boolean isMutable()
- Specified by:
isMutable
in class PersistentClass
hasEmbeddedIdentifier
public boolean hasEmbeddedIdentifier()
- Specified by:
hasEmbeddedIdentifier
in class PersistentClass
getClassPersisterClass
public Class getClassPersisterClass()
- Specified by:
getClassPersisterClass
in class PersistentClass
getRootTable
public Table getRootTable()
- Specified by:
getRootTable
in class PersistentClass
setClassPersisterClass
public void setClassPersisterClass(Class persister)
- Specified by:
setClassPersisterClass
in class PersistentClass
getSuperclass
public PersistentClass getSuperclass()
- Specified by:
getSuperclass
in class PersistentClass
getKey
public SimpleValue getKey()
- Specified by:
getKey
in class PersistentClass
setDiscriminator
public void setDiscriminator(SimpleValue discriminator)
setEmbeddedIdentifier
public void setEmbeddedIdentifier(boolean embeddedIdentifier)
setExplicitPolymorphism
public void setExplicitPolymorphism(boolean explicitPolymorphism)
setIdentifier
public void setIdentifier(SimpleValue identifier)
setIdentifierProperty
public void setIdentifierProperty(Property identifierProperty)
setMutable
public void setMutable(boolean mutable)
setCache
public void setCache(CacheConcurrencyStrategy cache)
isForceDiscriminator
public boolean isForceDiscriminator()
- Overrides:
isForceDiscriminator
in class PersistentClass
setForceDiscriminator
public void setForceDiscriminator(boolean forceDiscriminator)
getWhere
public String getWhere()
- Specified by:
getWhere
in class PersistentClass
setWhere
public void setWhere(String string)
isJoinedSubclass
public boolean isJoinedSubclass()
- Specified by:
isJoinedSubclass
in class PersistentClass
validate
public void validate(Mapping mapping)
throws MappingException
- Overrides:
validate
in class PersistentClass
- Throws:
MappingException
isDiscriminatorInsertable
public boolean isDiscriminatorInsertable()
- Specified by:
isDiscriminatorInsertable
in class PersistentClass
setDiscriminatorInsertable
public void setDiscriminatorInsertable(boolean insertable)