Top 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.HashMap, .Map, javax.persistence.AssociationOverride, .AssociationOverrides, .AttributeOverride, .AttributeOverrides, .Column, .Embeddable, .Entity, .JoinColumn, .JoinTable, .MappedSuperclass, org.hibernate.AssertionFailure, org.hibernate.annotations.common.reflection.XAnnotatedElement, .XClass, .XProperty, org.hibernate.util.StringHelper

Author
Emmanuel Bernard

Field Summary

Modifier and TypeField and Description
private Map<String, Column[]>
private Map<String, JoinColumn[]>
private Map<String, JoinTable>
private Map<String, Column[]>
private Map<String, JoinColumn[]>
private Map<String, JoinTable>
private Boolean
private Mappings
protected AbstractPropertyHolder
private String

Constructor Summary

AccessConstructor and Description
public
AbstractPropertyHolder(String path, PropertyHolder parent, XClass clazzToProcess, Mappings mappings)

Method Summary

Modifier and TypeMethod and Description
private static Map<String, Column[]>
private void
private static Map<String, JoinColumn[]>
private static Map<String, JoinTable>
private Column[]
getExactOverriddenColumn(String propertyName)

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

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.
protected Mappings
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 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 void
setCurrentProperty(XProperty property)

property can be null

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

Field Detail

currentPropertyColumnOverrideback to summary
private Map<String, Column[]> currentPropertyColumnOverride
currentPropertyJoinColumnOverrideback to summary
private Map<String, JoinColumn[]> currentPropertyJoinColumnOverride
currentPropertyJoinTableOverrideback to summary
private Map<String, JoinTable> currentPropertyJoinTableOverride
holderColumnOverrideback to summary
private Map<String, Column[]> holderColumnOverride
holderJoinColumnOverrideback to summary
private Map<String, JoinColumn[]> holderJoinColumnOverride
holderJoinTableOverrideback to summary
private Map<String, JoinTable> holderJoinTableOverride
isInIdClassback to summary
private Boolean isInIdClass
mappingsback to summary
private Mappings mappings
parentback to summary
protected AbstractPropertyHolder parent
pathback to summary
private String path

Constructor Detail

AbstractPropertyHolderback to summary
public AbstractPropertyHolder(String path, PropertyHolder parent, XClass clazzToProcess, Mappings mappings)

Method Detail

buildColumnOverrideback to summary
private static Map<String, Column[]> buildColumnOverride(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)
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.

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.

getMappingsback to summary
protected Mappings getMappings()
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.

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.

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.

isInIdClassback to summary
public boolean isInIdClass()

Implements org.hibernate.cfg.PropertyHolder.isInIdClass.

setCurrentPropertyback to summary
protected void setCurrentProperty(XProperty property)

property can be null

setInIdClassback to summary
public void setInIdClass(Boolean isInIdClass)

Implements org.hibernate.cfg.PropertyHolder.setInIdClass.

setParentPropertyback to summary
public void setParentProperty(String parentProperty)

Implements org.hibernate.cfg.PropertyHolder.setParentProperty.