public class PropertyInferredData extends Object implements PropertyData
Retrieve all inferred data from an annnoted element
| Constructor and Description |
|---|
PropertyInferredData(org.hibernate.annotations.common.reflection.XClass declaringClass,
org.hibernate.annotations.common.reflection.XProperty property,
String propertyAccessor,
org.hibernate.annotations.common.reflection.ReflectionManager reflectionManager)
Take the annoted element for lazy process
|
| Modifier and Type | Method and Description |
|---|---|
org.hibernate.annotations.common.reflection.XClass |
getClassOrElement()
Returns the returned class itself or the element type if an array
|
String |
getClassOrElementName()
Returns the returned class name itself or the element type if an array
|
org.hibernate.annotations.common.reflection.XClass |
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
|
AccessType |
getDefaultAccess() |
org.hibernate.annotations.common.reflection.XProperty |
getProperty()
Return the Hibernate mapping property
|
org.hibernate.annotations.common.reflection.XClass |
getPropertyClass()
Return the class itself
|
String |
getPropertyName() |
String |
getTypeName()
Returns the returned class name itself
|
String |
toString() |
public PropertyInferredData(org.hibernate.annotations.common.reflection.XClass declaringClass,
org.hibernate.annotations.common.reflection.XProperty property,
String propertyAccessor,
org.hibernate.annotations.common.reflection.ReflectionManager reflectionManager)
Take the annoted element for lazy process
public AccessType getDefaultAccess() throws MappingException
getDefaultAccess in interface PropertyDataMappingException - No getter or field found or wrong JavaBean spec usagepublic String getPropertyName() throws MappingException
getPropertyName in interface PropertyDataMappingException - No getter or field found or wrong JavaBean spec usagepublic org.hibernate.annotations.common.reflection.XClass getPropertyClass()
throws MappingException
PropertyDataReturn the class itself
getPropertyClass in interface PropertyDataMappingExceptionpublic org.hibernate.annotations.common.reflection.XClass getClassOrElement()
throws MappingException
PropertyDataReturns the returned class itself or the element type if an array
getClassOrElement in interface PropertyDataMappingExceptionpublic String getClassOrElementName() throws MappingException
PropertyDataReturns the returned class name itself or the element type if an array
getClassOrElementName in interface PropertyDataMappingExceptionpublic String getTypeName() throws MappingException
PropertyDataReturns the returned class name itself
getTypeName in interface PropertyDataMappingExceptionpublic org.hibernate.annotations.common.reflection.XProperty getProperty()
PropertyDataReturn the Hibernate mapping property
getProperty in interface PropertyDatapublic org.hibernate.annotations.common.reflection.XClass getDeclaringClass()
PropertyDataReturn 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
getDeclaringClass in interface PropertyDataCopyright © 2001-2018 Red Hat, Inc. All Rights Reserved.