Package org.hibernate.cfg
Class PropertyInferredData
- java.lang.Object
-
- org.hibernate.cfg.PropertyInferredData
-
- All Implemented Interfaces:
PropertyData
public class PropertyInferredData extends java.lang.Object implements PropertyData
Retrieve all inferred data from an annotated element
-
-
Constructor Summary
Constructors Constructor Description PropertyInferredData(org.hibernate.annotations.common.reflection.XClass declaringClass, org.hibernate.annotations.common.reflection.XProperty property, java.lang.String propertyAccessor, org.hibernate.annotations.common.reflection.ReflectionManager reflectionManager)Take the annotated element for lazy process
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.hibernate.annotations.common.reflection.XClassgetClassOrElement()Returns the returned class itself or the element type if an arrayjava.lang.StringgetClassOrElementName()Returns the returned class name itself or the element type if an arrayorg.hibernate.annotations.common.reflection.XClassgetDeclaringClass()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 classAccessTypegetDefaultAccess()org.hibernate.annotations.common.reflection.XPropertygetProperty()Return the Hibernate mapping propertyorg.hibernate.annotations.common.reflection.XClassgetPropertyClass()Return the class itselfjava.lang.StringgetPropertyName()java.lang.StringgetTypeName()Returns the returned class name itselfjava.lang.StringtoString()
-
-
-
Constructor Detail
-
PropertyInferredData
public PropertyInferredData(org.hibernate.annotations.common.reflection.XClass declaringClass, org.hibernate.annotations.common.reflection.XProperty property, java.lang.String propertyAccessor, org.hibernate.annotations.common.reflection.ReflectionManager reflectionManager)Take the annotated element for lazy process
-
-
Method Detail
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
getDefaultAccess
public AccessType getDefaultAccess() throws MappingException
- Specified by:
getDefaultAccessin interfacePropertyData- Returns:
- default member access (whether field or property)
- Throws:
MappingException- No getter or field found or wrong JavaBean spec usage
-
getPropertyName
public java.lang.String getPropertyName() throws MappingException- Specified by:
getPropertyNamein interfacePropertyData- Returns:
- property name
- Throws:
MappingException- No getter or field found or wrong JavaBean spec usage
-
getPropertyClass
public org.hibernate.annotations.common.reflection.XClass getPropertyClass() throws MappingExceptionDescription copied from interface:PropertyDataReturn the class itself- Specified by:
getPropertyClassin interfacePropertyData- Throws:
MappingException
-
getClassOrElement
public org.hibernate.annotations.common.reflection.XClass getClassOrElement() throws MappingExceptionDescription copied from interface:PropertyDataReturns the returned class itself or the element type if an array- Specified by:
getClassOrElementin interfacePropertyData- Throws:
MappingException
-
getClassOrElementName
public java.lang.String getClassOrElementName() throws MappingExceptionDescription copied from interface:PropertyDataReturns the returned class name itself or the element type if an array- Specified by:
getClassOrElementNamein interfacePropertyData- Throws:
MappingException
-
getTypeName
public java.lang.String getTypeName() throws MappingExceptionDescription copied from interface:PropertyDataReturns the returned class name itself- Specified by:
getTypeNamein interfacePropertyData- Throws:
MappingException
-
getProperty
public org.hibernate.annotations.common.reflection.XProperty getProperty()
Description copied from interface:PropertyDataReturn the Hibernate mapping property- Specified by:
getPropertyin interfacePropertyData
-
getDeclaringClass
public org.hibernate.annotations.common.reflection.XClass getDeclaringClass()
Description copied from interface: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- Specified by:
getDeclaringClassin interfacePropertyData
-
-