org.hibernate.mapping

Class UnionSubclass

Implemented Interfaces:
Serializable, Filterable, MetaAttributable, TableOwner

public class UnionSubclass
extends Subclass
implements TableOwner

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

UnionSubclass(PersistentClass superclass)

Method Summary

Object
accept(PersistentClassVisitor mv)
Table
getIdentityTable()
protected Iterator
getNonDuplicatedPropertyIterator()
java.util.Set
getSynchronizedTables()
Table
getTable()
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

UnionSubclass

public UnionSubclass(PersistentClass superclass)

Method Details

accept

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

getIdentityTable

public Table getIdentityTable()
Overrides:
getIdentityTable in interface PersistentClass

getNonDuplicatedPropertyIterator

protected Iterator getNonDuplicatedPropertyIterator()
Overrides:
getNonDuplicatedPropertyIterator in interface PersistentClass

getSynchronizedTables

public java.util.Set getSynchronizedTables()
Overrides:
getSynchronizedTables in interface Subclass

getTable

public Table getTable()
Overrides:
getTable in interface Subclass

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