Package org.hibernate.mapping
Class JoinedSubclass
- java.lang.Object
-
- org.hibernate.mapping.PersistentClass
-
- org.hibernate.mapping.Subclass
-
- org.hibernate.mapping.JoinedSubclass
-
- All Implemented Interfaces:
java.io.Serializable
,AttributeContainer
,Filterable
,MetaAttributable
,TableOwner
public class JoinedSubclass extends Subclass implements TableOwner
A subclass in a table-per-subclass mapping- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.hibernate.mapping.PersistentClass
NOT_NULL_DISCRIMINATOR_MAPPING, NULL_DISCRIMINATOR_MAPPING, synchronizedTables
-
-
Constructor Summary
Constructors Constructor Description JoinedSubclass(PersistentClass superclass, MetadataBuildingContext metadataBuildingContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
accept(PersistentClassVisitor mv)
KeyValue
getKey()
java.util.Iterator
getReferenceablePropertyIterator()
Build an iterator of properties which may be referenced in association mappings.Table
getTable()
void
setKey(KeyValue key)
void
setTable(Table table)
void
validate(Mapping mapping)
-
Methods inherited from class org.hibernate.mapping.Subclass
addJoin, addMappedsuperclassProperty, addProperty, addSubclassJoin, addSubclassProperty, addSubclassTable, createForeignKey, getCacheConcurrencyStrategy, getDeclaredIdentifierProperty, getDeclaredVersion, getDiscriminator, getEntityPersisterClass, getFilters, getIdentifier, getIdentifierMapper, getIdentifierProperty, getJoinClosureIterator, getJoinClosureSpan, getKeyClosureIterator, getNaturalIdCacheRegionName, getOptimisticLockStyle, getPropertyClosureIterator, getPropertyClosureSpan, getRootClass, getRootTable, getSubclassId, getSuperclass, getSynchronizedTables, getTableClosureIterator, getTuplizerImplClassName, getTuplizerMap, getVersion, getWhere, hasEmbeddedIdentifier, hasIdentifierProperty, hasSubselectLoadableCollections, isClassOrSuperclassJoin, isClassOrSuperclassTable, isDiscriminatorInsertable, isExplicitPolymorphism, isForceDiscriminator, isInherited, isJoinedSubclass, isMutable, isPolymorphic, isVersioned, setEntityPersisterClass, setSuperclass
-
Methods inherited from class org.hibernate.mapping.PersistentClass
addFilter, addSubclass, addSynchronizedTable, addTuplizer, checkColumnDuplication, checkColumnDuplication, checkPropertyColumnDuplication, createPrimaryKey, getBatchSize, getClassName, getCustomSQLDelete, getCustomSQLDeleteCheckStyle, getCustomSQLInsert, getCustomSQLInsertCheckStyle, getCustomSQLUpdate, getCustomSQLUpdateCheckStyle, getDeclaredIdentifierMapper, getDeclaredPropertyIterator, getDirectSubclasses, getDiscriminatorColumnIterator, getDiscriminatorValue, getEntityName, getIdentityTable, getJoinIterator, getJoinNumber, getJpaEntityName, getLoaderName, getMappedClass, getMetaAttribute, getMetaAttributes, getNonDuplicatedPropertyIterator, getOptimisticLockMode, getProperty, getPropertyIterator, getProxyInterface, getProxyInterfaceName, getRecursiveProperty, getReferencedProperty, getServiceRegistry, getSubclassClosureIterator, getSubclassIterator, getSubclassJoinClosureIterator, getSubclassPropertyClosureIterator, getSubclassSpan, getSubclassTableClosureIterator, getSuperMappedSuperclass, getUnjoinedPropertyIterator, hasIdentifierMapper, hasNaturalId, hasPojoRepresentation, hasProperty, hasSelectBeforeUpdate, hasSubclasses, isAbstract, isCached, isCachingExplicitlyRequested, isCustomDeleteCallable, isCustomInsertCallable, isCustomUpdateCallable, isDiscriminatorValueNotNull, isDiscriminatorValueNull, isLazy, isPropertyDefinedInHierarchy, isPropertyDefinedInSuperHierarchy, setAbstract, setBatchSize, setCached, setCachingExplicitlyRequested, setClassName, setCustomSQLDelete, setCustomSQLInsert, setCustomSQLUpdate, setDeclaredIdentifierMapper, setDiscriminatorValue, setDynamicInsert, setDynamicUpdate, setEntityName, setIdentifierMapper, setJpaEntityName, setLazy, setLoaderName, setMetaAttributes, setOptimisticLockMode, setOptimisticLockStyle, setProxyInterfaceName, setSelectBeforeUpdate, setSubselectLoadableCollections, setSuperMappedSuperclass, toString, useDynamicInsert, useDynamicUpdate
-
-
-
-
Constructor Detail
-
JoinedSubclass
public JoinedSubclass(PersistentClass superclass, MetadataBuildingContext metadataBuildingContext)
-
-
Method Detail
-
setTable
public void setTable(Table table)
- Specified by:
setTable
in interfaceTableOwner
-
setKey
public void setKey(KeyValue key)
-
validate
public void validate(Mapping mapping) throws MappingException
- Overrides:
validate
in classPersistentClass
- Throws:
MappingException
-
getReferenceablePropertyIterator
public java.util.Iterator getReferenceablePropertyIterator()
Description copied from class:PersistentClass
Build an iterator of properties which may be referenced in association mappings.Includes properties defined in superclasses of the mapping inheritance. Includes all properties defined as part of a join.
- Overrides:
getReferenceablePropertyIterator
in classPersistentClass
- Returns:
- The referenceable property iterator.
- See Also:
for a discussion of "referenceable"
-
accept
public java.lang.Object accept(PersistentClassVisitor mv)
-
-