org.hibernate.mapping

Class Subclass

Implemented Interfaces:
Serializable, Filterable, MetaAttributable
Known Direct Subclasses:
JoinedSubclass, SingleTableSubclass, UnionSubclass

public class Subclass
extends PersistentClass

A sublass in a table-per-class-hierarchy mapping
Author:
Gavin King

Field Summary

Fields inherited from class org.hibernate.mapping.PersistentClass

NOT_NULL_DISCRIMINATOR_MAPPING, NULL_DISCRIMINATOR_MAPPING, optimisticLockMode, synchronizedTables

Constructor Summary

Subclass(PersistentClass superclass)

Method Summary

Object
accept(PersistentClassVisitor mv)
void
addJoin(Join j)
void
addProperty(Property p)
protected void
addSubclassJoin(Join j)
protected void
addSubclassProperty(Property p)
protected void
addSubclassTable(Table table)
void
createForeignKey()
String
getCacheConcurrencyStrategy()
Value
getDiscriminator()
Class
getEntityPersisterClass()
Map
getFilterMap()
KeyValue
getIdentifier()
Component
getIdentifierMapper()
Property
getIdentifierProperty()
Iterator
getJoinClosureIterator()
int
getJoinClosureSpan()
KeyValue
getKey()
Iterator
getKeyClosureIterator()
int
getOptimisticLockMode()
Iterator
getPropertyClosureIterator()
int
getPropertyClosureSpan()
RootClass
getRootClass()
Table
getRootTable()
int
getSubclassId()
PersistentClass
getSuperclass()
java.util.Set
getSynchronizedTables()
Table
getTable()
Iterator
getTableClosureIterator()
String
getTuplizerImplClassName(EntityMode mode)
Map
getTuplizerMap()
Property
getVersion()
String
getWhere()
boolean
hasEmbeddedIdentifier()
boolean
hasIdentifierProperty()
boolean
hasSubselectLoadableCollections()
boolean
isClassOrSuperclassJoin(Join join)
boolean
isClassOrSuperclassTable(Table table)
boolean
isDiscriminatorInsertable()
boolean
isExplicitPolymorphism()
boolean
isForceDiscriminator()
boolean
isInherited()
boolean
isJoinedSubclass()
boolean
isLazyPropertiesCacheable()
boolean
isMutable()
boolean
isPolymorphic()
boolean
isVersioned()
void
setEntityPersisterClass(Class classPersisterClass)
void
setSuperclass(PersistentClass superclass)

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

Constructor Details

Subclass

public Subclass(PersistentClass superclass)

Method Details

accept

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

addJoin

public void addJoin(Join j)
Overrides:
addJoin in interface PersistentClass

addProperty

public void addProperty(Property p)
Overrides:
addProperty in interface PersistentClass

addSubclassJoin

protected void addSubclassJoin(Join j)
Overrides:
addSubclassJoin in interface PersistentClass

addSubclassProperty

protected void addSubclassProperty(Property p)
Overrides:
addSubclassProperty in interface PersistentClass

addSubclassTable

protected void addSubclassTable(Table table)
Overrides:
addSubclassTable in interface PersistentClass

createForeignKey

public void createForeignKey()

getCacheConcurrencyStrategy

public String getCacheConcurrencyStrategy()
Overrides:
getCacheConcurrencyStrategy in interface PersistentClass

getDiscriminator

public Value getDiscriminator()
Overrides:
getDiscriminator in interface PersistentClass

getEntityPersisterClass

public Class getEntityPersisterClass()
Overrides:
getEntityPersisterClass in interface PersistentClass

getFilterMap

public Map getFilterMap()
Specified by:
getFilterMap in interface Filterable
Overrides:
getFilterMap in interface PersistentClass

getIdentifier

public KeyValue getIdentifier()
Overrides:
getIdentifier in interface PersistentClass

getIdentifierMapper

public Component getIdentifierMapper()
Overrides:
getIdentifierMapper in interface PersistentClass

getIdentifierProperty

public Property getIdentifierProperty()
Overrides:
getIdentifierProperty in interface PersistentClass

getJoinClosureIterator

public Iterator getJoinClosureIterator()
Overrides:
getJoinClosureIterator in interface PersistentClass

getJoinClosureSpan

public int getJoinClosureSpan()
Overrides:
getJoinClosureSpan in interface PersistentClass

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

getPropertyClosureSpan

public int getPropertyClosureSpan()
Overrides:
getPropertyClosureSpan 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 java.util.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

getTuplizerImplClassName

public String getTuplizerImplClassName(EntityMode mode)
Overrides:
getTuplizerImplClassName in interface PersistentClass

getTuplizerMap

public Map getTuplizerMap()
Overrides:
getTuplizerMap 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

hasSubselectLoadableCollections

public boolean hasSubselectLoadableCollections()
Overrides:
hasSubselectLoadableCollections in interface PersistentClass

isClassOrSuperclassJoin

public boolean isClassOrSuperclassJoin(Join join)
Overrides:
isClassOrSuperclassJoin in interface PersistentClass

isClassOrSuperclassTable

public boolean isClassOrSuperclassTable(Table table)
Overrides:
isClassOrSuperclassTable 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

setEntityPersisterClass

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

setSuperclass

public void setSuperclass(PersistentClass superclass)