Top Description Fields Constructors Methods
org.hibernate.cfg

public abstract Class AbstractPropertyHolder

extends Object
implements PropertyHolder
Class Inheritance
All Implemented Interfaces
org.hibernate.cfg.PropertyHolder
Known Direct Subclasses
org.hibernate.cfg.ClassPropertyHolder, org.hibernate.cfg.CollectionPropertyHolder, org.hibernate.cfg.ComponentPropertyHolder
Imports
java.util.ArrayList, .Arrays, .HashMap, .List, .Map, javax.persistence.AssociationOverride, .AssociationOverrides, .AttributeOverride, .AttributeOverrides, .Column, .Embeddable, .Entity, .ForeignKey, .JoinColumn, .JoinTable, .MappedSuperclass, org.hibernate.AnnotationException, .AssertionFailure, org.hibernate.annotations.common.reflection.XAnnotatedElement, .XClass, .XProperty, org.hibernate.boot.model.convert.internal.ClassBasedConverterDescriptor, org.hibernate.boot.model.convert.spi.ConverterDescriptor, org.hibernate.boot.spi.MetadataBuildingContext, org.hibernate.internal.CoreLogging, org.hibernate.internal.util.StringHelper, org.jboss.logging.Logger

No idea.
Author
Emmanuel Bernard

Field Summary

Modifier and TypeField and Description
private MetadataBuildingContext
private Map<String, Column[]>
private Map<String, ForeignKey>
private Map<String, JoinColumn[]>
private Map<String, JoinTable>
private Map<String, Column[]>
private Map<String, ForeignKey>
private Map<String, JoinColumn[]>
private Map<String, JoinTable>
private Boolean
private static final Logger
protected AbstractPropertyHolder
private String

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
private static AssociationOverride[]
private static Map<String, Column[]>
protected IllegalStateException
private static Map<String, ForeignKey>
private void
private static Map<String, JoinColumn[]>
private static Map<String, JoinTable>
protected MetadataBuildingContext

Returns:

The mappings
getContext
()

Get the mappings

private Column[]
getExactOverriddenColumn(String propertyName)

Get column overriding, property first, then parent, then holder find the overridden rules from the exact property name.

private ForeignKey
private JoinColumn[]
getExactOverriddenJoinColumn(String propertyName)

Get column overriding, property first, then parent, then holder

private JoinTable
getExactOverriddenJoinTable(String propertyName)

Get column overriding, property first, then parent, then holder

public JoinTable
getJoinTable(XProperty property)

Implements org.hibernate.cfg.PropertyHolder.getJoinTable.

Get column overriding, property first, then parent, then holder replace the placeholder 'collection&&element;' with nothing These rules are here to support both JPA 2 and legacy overriding rules.
public Column[]
getOverriddenColumn(String propertyName)

Implements org.hibernate.cfg.PropertyHolder.getOverriddenColumn.

Get column overriding, property first, then parent, then holder replace the placeholder 'collection&&element;' with nothing These rules are here to support both JPA 2 and legacy overriding rules.
public ForeignKey
getOverriddenForeignKey(String propertyName)

Overrides default org.hibernate.cfg.PropertyHolder.getOverriddenForeignKey.

return null if hte foreign key is not overridden, or the foreign key if true
public JoinColumn[]
getOverriddenJoinColumn(String propertyName)

Implements org.hibernate.cfg.PropertyHolder.getOverriddenJoinColumn.

Get column overriding, property first, then parent, then holder replace the placeholder 'collection&&element;' with nothing These rules are here to support both JPA 2 and legacy overriding rules.
public JoinTable
getOverriddenJoinTable(String propertyName)

Get column overriding, property first, then parent, then holder replace the placeholder 'collection&&element;' with nothing These rules are here to support both JPA 2 and legacy overriding rules.

public String
public boolean
protected abstract AttributeConversionInfo
protected abstract AttributeConversionInfo
protected ConverterDescriptor
protected abstract String
protected abstract String
public ConverterDescriptor
resolveAttributeConverterDescriptor(XProperty property)

Implements org.hibernate.cfg.PropertyHolder.resolveAttributeConverterDescriptor.

Determine the AttributeConverter to use for the given property.
protected void
setCurrentProperty(XProperty
The property
property
)

Set the property to be processed.

public void
public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

contextback to summary
private MetadataBuildingContext context
currentPropertyColumnOverrideback to summary
private Map<String, Column[]> currentPropertyColumnOverride
currentPropertyForeignKeyOverrideback to summary
private Map<String, ForeignKey> currentPropertyForeignKeyOverride
currentPropertyJoinColumnOverrideback to summary
private Map<String, JoinColumn[]> currentPropertyJoinColumnOverride
currentPropertyJoinTableOverrideback to summary
private Map<String, JoinTable> currentPropertyJoinTableOverride
holderColumnOverrideback to summary
private Map<String, Column[]> holderColumnOverride
holderForeignKeyOverrideback to summary
private Map<String, ForeignKey> holderForeignKeyOverride
holderJoinColumnOverrideback to summary
private Map<String, JoinColumn[]> holderJoinColumnOverride
holderJoinTableOverrideback to summary
private Map<String, JoinTable> holderJoinTableOverride
isInIdClassback to summary
private Boolean isInIdClass
logback to summary
private static final Logger log
parentback to summary
protected AbstractPropertyHolder parent
pathback to summary
private String path

Constructor Detail

AbstractPropertyHolderback to summary
pack-priv AbstractPropertyHolder(String path, PropertyHolder parent, XClass clazzToProcess, MetadataBuildingContext context)

Method Detail

buildAssociationOverridesback to summary
private static AssociationOverride[] buildAssociationOverrides(XAnnotatedElement element, String path)
buildColumnOverrideback to summary
private static Map<String, Column[]> buildColumnOverride(XAnnotatedElement element, String path)
buildExceptionFromInstantiationErrorback to summary
protected IllegalStateException buildExceptionFromInstantiationError(AttributeConversionInfo info, Exception e)
buildForeignKeyOverrideback to summary
private static Map<String, ForeignKey> buildForeignKeyOverride(XAnnotatedElement element, String path)
buildHierarchyColumnOverrideback to summary
private void buildHierarchyColumnOverride(XClass element)
buildJoinColumnOverrideback to summary
private static Map<String, JoinColumn[]> buildJoinColumnOverride(XAnnotatedElement element, String path)
buildJoinTableOverrideback to summary
private static Map<String, JoinTable> buildJoinTableOverride(XAnnotatedElement element, String path)
getContextback to summary
protected MetadataBuildingContext getContext()

Get the mappings

Returns:MetadataBuildingContext

The mappings

getExactOverriddenColumnback to summary
private Column[] getExactOverriddenColumn(String propertyName)

Get column overriding, property first, then parent, then holder find the overridden rules from the exact property name.

getExactOverriddenForeignKeyback to summary
private ForeignKey getExactOverriddenForeignKey(String propertyName)
getExactOverriddenJoinColumnback to summary
private JoinColumn[] getExactOverriddenJoinColumn(String propertyName)

Get column overriding, property first, then parent, then holder

getExactOverriddenJoinTableback to summary
private JoinTable getExactOverriddenJoinTable(String propertyName)

Get column overriding, property first, then parent, then holder

getJoinTableback to summary
public JoinTable getJoinTable(XProperty property)

Implements org.hibernate.cfg.PropertyHolder.getJoinTable.

Get column overriding, property first, then parent, then holder replace the placeholder 'collection&&element' with nothing These rules are here to support both JPA 2 and legacy overriding rules.

Annotations
@Override
getOverriddenColumnback to summary
public Column[] getOverriddenColumn(String propertyName)

Implements org.hibernate.cfg.PropertyHolder.getOverriddenColumn.

Get column overriding, property first, then parent, then holder replace the placeholder 'collection&&element' with nothing These rules are here to support both JPA 2 and legacy overriding rules.

Annotations
@Override
getOverriddenForeignKeyback to summary
public ForeignKey getOverriddenForeignKey(String propertyName)

Overrides default org.hibernate.cfg.PropertyHolder.getOverriddenForeignKey.

Doc from org.hibernate.cfg.PropertyHolder.getOverriddenForeignKey.

return null if hte foreign key is not overridden, or the foreign key if true

getOverriddenJoinColumnback to summary
public JoinColumn[] getOverriddenJoinColumn(String propertyName)

Implements org.hibernate.cfg.PropertyHolder.getOverriddenJoinColumn.

Get column overriding, property first, then parent, then holder replace the placeholder 'collection&&element' with nothing These rules are here to support both JPA 2 and legacy overriding rules.

Annotations
@Override
getOverriddenJoinTableback to summary
public JoinTable getOverriddenJoinTable(String propertyName)

Get column overriding, property first, then parent, then holder replace the placeholder 'collection&&element' with nothing These rules are here to support both JPA 2 and legacy overriding rules.

getPathback to summary
public String getPath()

Implements org.hibernate.cfg.PropertyHolder.getPath.

Annotations
@Override
isInIdClassback to summary
public boolean isInIdClass()

Implements org.hibernate.cfg.PropertyHolder.isInIdClass.

Annotations
@Override
locateAttributeConversionInfoback to summary
protected abstract AttributeConversionInfo locateAttributeConversionInfo(XProperty property)
locateAttributeConversionInfoback to summary
protected abstract AttributeConversionInfo locateAttributeConversionInfo(String path)
makeAttributeConverterDescriptorback to summary
protected ConverterDescriptor makeAttributeConverterDescriptor(AttributeConversionInfo conversion)
normalizeCompositePathback to summary
protected abstract String normalizeCompositePath(String attributeName)
normalizeCompositePathForLoggingback to summary
protected abstract String normalizeCompositePathForLogging(String attributeName)
resolveAttributeConverterDescriptorback to summary
public ConverterDescriptor resolveAttributeConverterDescriptor(XProperty property)

Implements org.hibernate.cfg.PropertyHolder.resolveAttributeConverterDescriptor.

Doc from org.hibernate.cfg.PropertyHolder.resolveAttributeConverterDescriptor.

Determine the AttributeConverter to use for the given property.

Returns:ConverterDescriptor

The ConverterDescriptor

Annotations
@Override
setCurrentPropertyback to summary
protected void setCurrentProperty(XProperty property)

Set the property to be processed. property can be null

Parameters
property:XProperty

The property

setInIdClassback to summary
public void setInIdClass(Boolean isInIdClass)

Implements org.hibernate.cfg.PropertyHolder.setInIdClass.

Annotations
@Override
setParentPropertyback to summary
public void setParentProperty(String parentProperty)

Implements org.hibernate.cfg.PropertyHolder.setParentProperty.

Annotations
@Override