Interface PropertyHolder
-
- All Known Implementing Classes:
AbstractPropertyHolder,ClassPropertyHolder,CollectionPropertyHolder,ComponentPropertyHolder
public interface PropertyHolderProperty holder abstract property containers from their direct implementation
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description JoinaddJoin(JoinTable joinTableAnn, boolean noDelayInPkColumnCreation)voidaddProperty(Property prop, org.hibernate.annotations.common.reflection.XClass declaringClass)voidaddProperty(Property prop, AnnotatedColumns columns, org.hibernate.annotations.common.reflection.XClass declaringClass)StringgetClassName()StringgetEntityName()StringgetEntityOwnerClassName()KeyValuegetIdentifier()JoinTablegetJoinTable(org.hibernate.annotations.common.reflection.XProperty property)return - null if no join table is present, - the join table if not overridden, - the overridden join table otherwiseColumn[]getOverriddenColumn(String propertyName)return null if the column is not overridden, or an array of column if trueColumnTransformergetOverriddenColumnTransformer(String logicalColumnName)default ForeignKeygetOverriddenForeignKey(String propertyName)return null if hte foreign key is not overridden, or the foreign key if trueJoinColumn[]getOverriddenJoinColumn(String propertyName)return null if the column is not overridden, or an array of column if trueStringgetPath()PersistentClassgetPersistentClass()TablegetTable()booleanisComponent()booleanisEntity()booleanisInIdClass()booleanisOrWithinEmbeddedId()Return true if this component is or is embedded in a @EmbeddedIdbooleanisWithinElementCollection()Return true if this component is within an @ElementCollection.voidmovePropertyToJoin(Property prop, Join join, org.hibernate.annotations.common.reflection.XClass declaringClass)ConverterDescriptorresolveAttributeConverterDescriptor(org.hibernate.annotations.common.reflection.XProperty property)Determine the AttributeConverter to use for the given property.voidsetInIdClass(Boolean isInIdClass)voidsetParentProperty(String parentProperty)voidstartingProperty(org.hibernate.annotations.common.reflection.XProperty property)Called during binding to allow the PropertyHolder to inspect its discovered properties.
-
-
-
Method Detail
-
getClassName
String getClassName()
-
getEntityOwnerClassName
String getEntityOwnerClassName()
-
getTable
Table getTable()
-
addProperty
void addProperty(Property prop, org.hibernate.annotations.common.reflection.XClass declaringClass)
-
addProperty
void addProperty(Property prop, AnnotatedColumns columns, org.hibernate.annotations.common.reflection.XClass declaringClass)
-
movePropertyToJoin
void movePropertyToJoin(Property prop, Join join, org.hibernate.annotations.common.reflection.XClass declaringClass)
-
getIdentifier
KeyValue getIdentifier()
-
isOrWithinEmbeddedId
boolean isOrWithinEmbeddedId()
Return true if this component is or is embedded in a @EmbeddedId
-
isWithinElementCollection
boolean isWithinElementCollection()
Return true if this component is within an @ElementCollection.
-
getPersistentClass
PersistentClass getPersistentClass()
-
isComponent
boolean isComponent()
-
isEntity
boolean isEntity()
-
setParentProperty
void setParentProperty(String parentProperty)
-
getPath
String getPath()
-
getOverriddenColumn
Column[] getOverriddenColumn(String propertyName)
return null if the column is not overridden, or an array of column if true
-
getOverriddenJoinColumn
JoinColumn[] getOverriddenJoinColumn(String propertyName)
return null if the column is not overridden, or an array of column if true
-
getOverriddenForeignKey
default ForeignKey getOverriddenForeignKey(String propertyName)
return null if hte foreign key is not overridden, or the foreign key if true
-
getOverriddenColumnTransformer
ColumnTransformer getOverriddenColumnTransformer(String logicalColumnName)
-
getJoinTable
JoinTable getJoinTable(org.hibernate.annotations.common.reflection.XProperty property)
return - null if no join table is present, - the join table if not overridden, - the overridden join table otherwise
-
getEntityName
String getEntityName()
-
isInIdClass
boolean isInIdClass()
-
setInIdClass
void setInIdClass(Boolean isInIdClass)
-
startingProperty
void startingProperty(org.hibernate.annotations.common.reflection.XProperty property)
Called 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
-
resolveAttributeConverterDescriptor
ConverterDescriptor resolveAttributeConverterDescriptor(org.hibernate.annotations.common.reflection.XProperty property)
Determine the AttributeConverter to use for the given property.- Returns:
- The ConverterDescriptor
-
-