Package org.hibernate.cfg
Class CollectionPropertyHolder
- java.lang.Object
-
- org.hibernate.cfg.AbstractPropertyHolder
-
- org.hibernate.cfg.CollectionPropertyHolder
-
- All Implemented Interfaces:
PropertyHolder
public class CollectionPropertyHolder extends AbstractPropertyHolder
-
-
Field Summary
-
Fields inherited from class org.hibernate.cfg.AbstractPropertyHolder
parent
-
-
Constructor Summary
Constructors Constructor Description CollectionPropertyHolder(Collection collection, String path, org.hibernate.annotations.common.reflection.XClass clazzToProcess, org.hibernate.annotations.common.reflection.XProperty property, PropertyHolder parentPropertyHolder, MetadataBuildingContext context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JoinaddJoin(JoinTable joinTableAnn, boolean noDelayInPkColumnCreation)voidaddProperty(Property prop, org.hibernate.annotations.common.reflection.XClass declaringClass)voidaddProperty(Property prop, AnnotatedColumn[] columns, org.hibernate.annotations.common.reflection.XClass declaringClass)StringgetClassName()CollectiongetCollectionBinding()StringgetEntityName()StringgetEntityOwnerClassName()KeyValuegetIdentifier()PersistentClassgetPersistentClass()TablegetTable()booleanisComponent()booleanisEntity()booleanisOrWithinEmbeddedId()Return true if this component is or is embedded in a @EmbeddedIdbooleanisWithinElementCollection()Return true if this component is within an @ElementCollection.protected AttributeConversionInfolocateAttributeConversionInfo(String path)protected AttributeConversionInfolocateAttributeConversionInfo(org.hibernate.annotations.common.reflection.XProperty property)ConverterDescriptormapKeyAttributeConverterDescriptor(org.hibernate.annotations.common.reflection.XProperty mapXProperty, org.hibernate.annotations.common.reflection.XClass keyXClass)protected StringnormalizeCompositePath(String attributeName)protected StringnormalizeCompositePathForLogging(String attributeName)voidprepare(org.hibernate.annotations.common.reflection.XProperty collectionProperty)ConverterDescriptorresolveElementAttributeConverterDescriptor(org.hibernate.annotations.common.reflection.XProperty collectionXProperty, org.hibernate.annotations.common.reflection.XClass elementXClass)voidstartingProperty(org.hibernate.annotations.common.reflection.XProperty property)Called during binding to allow the PropertyHolder to inspect its discovered properties.StringtoString()-
Methods inherited from class org.hibernate.cfg.AbstractPropertyHolder
buildExceptionFromInstantiationError, getContext, getJoinTable, getOverriddenColumn, getOverriddenColumnTransformer, getOverriddenForeignKey, getOverriddenJoinColumn, getOverriddenJoinTable, getPath, isInIdClass, makeAttributeConverterDescriptor, resolveAttributeConverterDescriptor, setCurrentProperty, setInIdClass, setParentProperty
-
-
-
-
Constructor Detail
-
CollectionPropertyHolder
public CollectionPropertyHolder(Collection collection, String path, org.hibernate.annotations.common.reflection.XClass clazzToProcess, org.hibernate.annotations.common.reflection.XProperty property, PropertyHolder parentPropertyHolder, MetadataBuildingContext context)
-
-
Method Detail
-
getCollectionBinding
public Collection getCollectionBinding()
-
normalizeCompositePath
protected String normalizeCompositePath(String attributeName)
- Specified by:
normalizeCompositePathin classAbstractPropertyHolder
-
normalizeCompositePathForLogging
protected String normalizeCompositePathForLogging(String attributeName)
- Specified by:
normalizeCompositePathForLoggingin classAbstractPropertyHolder
-
startingProperty
public void startingProperty(org.hibernate.annotations.common.reflection.XProperty property)
Description copied from interface:PropertyHolderCalled during binding to allow the PropertyHolder to inspect its discovered properties. Mainly this is used in collecting attribute conversion declarations (via @Convert/@Converts).- Parameters:
property- The property
-
locateAttributeConversionInfo
protected AttributeConversionInfo locateAttributeConversionInfo(org.hibernate.annotations.common.reflection.XProperty property)
- Specified by:
locateAttributeConversionInfoin classAbstractPropertyHolder
-
locateAttributeConversionInfo
protected AttributeConversionInfo locateAttributeConversionInfo(String path)
- Specified by:
locateAttributeConversionInfoin classAbstractPropertyHolder
-
getClassName
public String getClassName()
-
getEntityOwnerClassName
public String getEntityOwnerClassName()
-
getTable
public Table getTable()
-
addProperty
public void addProperty(Property prop, org.hibernate.annotations.common.reflection.XClass declaringClass)
-
getIdentifier
public KeyValue getIdentifier()
-
isOrWithinEmbeddedId
public boolean isOrWithinEmbeddedId()
Description copied from interface:PropertyHolderReturn true if this component is or is embedded in a @EmbeddedId
-
isWithinElementCollection
public boolean isWithinElementCollection()
Description copied from interface:PropertyHolderReturn true if this component is within an @ElementCollection.
-
getPersistentClass
public PersistentClass getPersistentClass()
-
isComponent
public boolean isComponent()
-
isEntity
public boolean isEntity()
-
getEntityName
public String getEntityName()
-
addProperty
public void addProperty(Property prop, AnnotatedColumn[] columns, org.hibernate.annotations.common.reflection.XClass declaringClass)
-
prepare
public void prepare(org.hibernate.annotations.common.reflection.XProperty collectionProperty)
-
resolveElementAttributeConverterDescriptor
public ConverterDescriptor resolveElementAttributeConverterDescriptor(org.hibernate.annotations.common.reflection.XProperty collectionXProperty, org.hibernate.annotations.common.reflection.XClass elementXClass)
-
mapKeyAttributeConverterDescriptor
public ConverterDescriptor mapKeyAttributeConverterDescriptor(org.hibernate.annotations.common.reflection.XProperty mapXProperty, org.hibernate.annotations.common.reflection.XClass keyXClass)
-
-