Package org.hibernate.cfg
Class WrappedInferredData
- java.lang.Object
-
- org.hibernate.cfg.WrappedInferredData
-
- All Implemented Interfaces:
PropertyData
public class WrappedInferredData extends java.lang.Object implements PropertyData
-
-
Constructor Summary
Constructors Constructor Description WrappedInferredData(PropertyData inferredData, java.lang.String suffix)
-
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 itself
-
-
-
Constructor Detail
-
WrappedInferredData
public WrappedInferredData(PropertyData inferredData, java.lang.String suffix)
-
-
Method Detail
-
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
-
getDefaultAccess
public AccessType getDefaultAccess()
- Specified by:
getDefaultAccessin interfacePropertyData- Returns:
- default member access (whether field or property)
-
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
-
getPropertyClass
public org.hibernate.annotations.common.reflection.XClass getPropertyClass() throws MappingExceptionDescription copied from interface:PropertyDataReturn the class itself- Specified by:
getPropertyClassin interfacePropertyData- Throws:
MappingException
-
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
-
getTypeName
public java.lang.String getTypeName() throws MappingExceptionDescription copied from interface:PropertyDataReturns the returned class name itself- Specified by:
getTypeNamein interfacePropertyData- Throws:
MappingException
-
-