Class CollectionPropertyHolder
java.lang.Object
org.hibernate.boot.model.internal.AbstractPropertyHolder
org.hibernate.boot.model.internal.CollectionPropertyHolder
- All Implemented Interfaces:
PropertyHolder
- Author:
- Emmanuel Bernard, Steve Ebersole
-
Field Summary
Fields inherited from class org.hibernate.boot.model.internal.AbstractPropertyHolder
parent -
Constructor Summary
ConstructorsConstructorDescriptionCollectionPropertyHolder(Collection collection, String path, XClass clazzToProcess, XProperty property, PropertyHolder parentPropertyHolder, MetadataBuildingContext context) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddProperty(Property prop, XClass declaringClass) voidaddProperty(Property prop, AnnotatedColumns columns, XClass declaringClass) getTable()booleanbooleanisEntity()booleanReturn true if this component is or is embedded in a @EmbeddedIdbooleanReturn true if this component is within an @ElementCollection.protected AttributeConversionInfoprotected AttributeConversionInfolocateAttributeConversionInfo(XProperty property) mapKeyAttributeConverterDescriptor(XProperty mapXProperty, XClass keyXClass) protected StringnormalizeCompositePath(String attributeName) protected StringnormalizeCompositePathForLogging(String attributeName) voidresolveElementAttributeConverterDescriptor(XProperty collectionXProperty, XClass elementXClass) voidstartingProperty(XProperty property) Called during binding to allow the PropertyHolder to inspect its discovered properties.toString()Methods inherited from class org.hibernate.boot.model.internal.AbstractPropertyHolder
buildExceptionFromInstantiationError, getContext, getJoinTable, getOverriddenColumn, getOverriddenColumnTransformer, getOverriddenForeignKey, getOverriddenJoinColumn, getOverriddenJoinTable, getPath, isInIdClass, makeAttributeConverterDescriptor, resolveAttributeConverterDescriptor, setCurrentProperty, setInIdClass, setParentProperty
-
Constructor Details
-
CollectionPropertyHolder
public CollectionPropertyHolder(Collection collection, String path, XClass clazzToProcess, XProperty property, PropertyHolder parentPropertyHolder, MetadataBuildingContext context)
-
-
Method Details
-
getCollectionBinding
-
normalizeCompositePath
- Specified by:
normalizeCompositePathin classAbstractPropertyHolder
-
normalizeCompositePathForLogging
- Specified by:
normalizeCompositePathForLoggingin classAbstractPropertyHolder
-
startingProperty
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
- Specified by:
locateAttributeConversionInfoin classAbstractPropertyHolder
-
locateAttributeConversionInfo
- Specified by:
locateAttributeConversionInfoin classAbstractPropertyHolder
-
getClassName
-
getEntityOwnerClassName
-
getTable
-
addProperty
-
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
-
isComponent
public boolean isComponent() -
isEntity
public boolean isEntity() -
getEntityName
-
addProperty
-
addJoin
-
addJoin
-
toString
-
prepare
-
resolveElementAttributeConverterDescriptor
public ConverterDescriptor resolveElementAttributeConverterDescriptor(XProperty collectionXProperty, XClass elementXClass) -
mapKeyAttributeConverterDescriptor
public ConverterDescriptor mapKeyAttributeConverterDescriptor(XProperty mapXProperty, XClass keyXClass)
-