Top Description Fields Constructors Methods
org.hibernate.cfg

public Class PropertyInferredData

extends Object
implements PropertyData
Class Inheritance
All Implemented Interfaces
org.hibernate.cfg.PropertyData
Imports
javax.persistence.Access, org.hibernate.MappingException, org.hibernate.annotations.Target, org.hibernate.annotations.common.reflection.ReflectionManager, .XClass, .XProperty

Retrieve all inferred data from an annotated element
Authors
Emmanuel Bernard, Paolo Perrotta

Field Summary

Modifier and TypeField and Description
private final XClass
private final AccessType
private final XProperty
private final ReflectionManager

Constructor Summary

AccessConstructor and Description
public
PropertyInferredData(XClass declaringClass, XProperty property, String propertyAccessor, ReflectionManager reflectionManager)

Take the annotated element for lazy process

Method Summary

Modifier and TypeMethod and Description
public XClass
getClassOrElement()

Implements org.hibernate.cfg.PropertyData.getClassOrElement.

Returns the returned class itself or the element type if an array
public String
getClassOrElementName()

Implements org.hibernate.cfg.PropertyData.getClassOrElementName.

Returns the returned class name itself or the element type if an array
public XClass
getDeclaringClass()

Implements org.hibernate.cfg.PropertyData.getDeclaringClass.

Return the Class the property is declared on If the property is declared on a @MappedSuperclass, this class will be different than the PersistentClass's class
public AccessType
public XProperty
getProperty()

Implements org.hibernate.cfg.PropertyData.getProperty.

Return the Hibernate mapping property
public XClass
public String
public String
getTypeName()

Implements org.hibernate.cfg.PropertyData.getTypeName.

Returns the returned class name itself
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

declaringClassback to summary
private final XClass declaringClass
defaultAccessback to summary
private final AccessType defaultAccess
propertyback to summary
private final XProperty property
reflectionManagerback to summary
private final ReflectionManager reflectionManager

Constructor Detail

PropertyInferredDataback to summary
public PropertyInferredData(XClass declaringClass, XProperty property, String propertyAccessor, ReflectionManager reflectionManager)

Take the annotated element for lazy process

Method Detail

getClassOrElementback to summary
public XClass getClassOrElement() throws MappingException

Implements org.hibernate.cfg.PropertyData.getClassOrElement.

Doc from org.hibernate.cfg.PropertyData.getClassOrElement.

Returns the returned class itself or the element type if an array

getClassOrElementNameback to summary
public String getClassOrElementName() throws MappingException

Implements org.hibernate.cfg.PropertyData.getClassOrElementName.

Doc from org.hibernate.cfg.PropertyData.getClassOrElementName.

Returns the returned class name itself or the element type if an array

getDeclaringClassback to summary
public XClass getDeclaringClass()

Implements org.hibernate.cfg.PropertyData.getDeclaringClass.

Doc from org.hibernate.cfg.PropertyData.getDeclaringClass.

Return the Class the property is declared on If the property is declared on a @MappedSuperclass, this class will be different than the PersistentClass's class

getDefaultAccessback to summary
public AccessType getDefaultAccess() throws MappingException

Implements org.hibernate.cfg.PropertyData.getDefaultAccess.

Returns:AccessType

Doc from org.hibernate.cfg.PropertyData.getDefaultAccess.

default member access (whether field or property)

Exceptions
MappingException:

Doc from org.hibernate.cfg.PropertyData.getDefaultAccess.

No getter or field found or wrong JavaBean spec usage

getPropertyback to summary
public XProperty getProperty()

Implements org.hibernate.cfg.PropertyData.getProperty.

Doc from org.hibernate.cfg.PropertyData.getProperty.

Return the Hibernate mapping property

getPropertyClassback to summary
public XClass getPropertyClass() throws MappingException

Implements org.hibernate.cfg.PropertyData.getPropertyClass.

Doc from org.hibernate.cfg.PropertyData.getPropertyClass.

Return the class itself

getPropertyNameback to summary
public String getPropertyName() throws MappingException

Implements org.hibernate.cfg.PropertyData.getPropertyName.

Returns:String

Doc from org.hibernate.cfg.PropertyData.getPropertyName.

property name

Exceptions
MappingException:

Doc from org.hibernate.cfg.PropertyData.getPropertyName.

No getter or field found or wrong JavaBean spec usage

getTypeNameback to summary
public String getTypeName() throws MappingException

Implements org.hibernate.cfg.PropertyData.getTypeName.

Doc from org.hibernate.cfg.PropertyData.getTypeName.

Returns the returned class name itself

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.

Annotations
@Override