org.hibernate.mapping

Class JoinedSubclass

Implemented Interfaces:
Serializable, Filterable, MetaAttributable, TableOwner

public class JoinedSubclass
extends Subclass
implements TableOwner

A subclass in a table-per-subclass 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

JoinedSubclass(PersistentClass superclass)

Method Summary

Object
accept(PersistentClassVisitor mv)
KeyValue
getKey()
Iterator
getReferenceablePropertyIterator()
Build an iterator of properties which are "referenceable".
Table
getTable()
void
setKey(KeyValue key)
void
setTable(Table table)
void
validate(Mapping mapping)

Methods inherited from class org.hibernate.mapping.Subclass

accept, addJoin, addProperty, addSubclassJoin, addSubclassProperty, addSubclassTable, createForeignKey, getCacheConcurrencyStrategy, getDiscriminator, getEntityPersisterClass, getFilterMap, getIdentifier, getIdentifierMapper, getIdentifierProperty, getJoinClosureIterator, getJoinClosureSpan, getKey, getKeyClosureIterator, getOptimisticLockMode, getPropertyClosureIterator, getPropertyClosureSpan, getRootClass, getRootTable, getSubclassId, getSuperclass, getSynchronizedTables, getTable, getTableClosureIterator, getTuplizerImplClassName, getTuplizerMap, getVersion, getWhere, hasEmbeddedIdentifier, hasIdentifierProperty, hasSubselectLoadableCollections, isClassOrSuperclassJoin, isClassOrSuperclassTable, isDiscriminatorInsertable, isExplicitPolymorphism, isForceDiscriminator, isInherited, isJoinedSubclass, isLazyPropertiesCacheable, isMutable, isPolymorphic, isVersioned, setEntityPersisterClass, setSuperclass

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

JoinedSubclass

public JoinedSubclass(PersistentClass superclass)

Method Details

accept

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

getKey

public KeyValue getKey()
Overrides:
getKey in interface Subclass

getReferenceablePropertyIterator

public Iterator getReferenceablePropertyIterator()
Build an iterator of properties which are "referenceable".
Overrides:
getReferenceablePropertyIterator in interface PersistentClass
Returns:
The property iterator.

getTable

public Table getTable()
Overrides:
getTable in interface Subclass

setKey

public void setKey(KeyValue key)

setTable

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

validate

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