Package org.hibernate.cfg
Class WrappedInferredData
- java.lang.Object
-
- org.hibernate.cfg.WrappedInferredData
-
- All Implemented Interfaces:
PropertyData
public class WrappedInferredData extends Object implements PropertyData
-
-
Constructor Summary
Constructors Constructor Description WrappedInferredData(PropertyData inferredData, String suffix)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.hibernate.annotations.common.reflection.XClass
getClassOrElement()
Returns the returned class itself or the element type if an arrayString
getClassOrElementName()
Returns the returned class name itself or the element type if an arrayorg.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 classAccessType
getDefaultAccess()
org.hibernate.annotations.common.reflection.XProperty
getProperty()
Return the Hibernate mapping propertyorg.hibernate.annotations.common.reflection.XClass
getPropertyClass()
Return the class itselfString
getPropertyName()
String
getTypeName()
Returns the returned class name itself
-
-
-
Constructor Detail
-
WrappedInferredData
public WrappedInferredData(PropertyData inferredData, String suffix)
-
-
Method Detail
-
getClassOrElement
public org.hibernate.annotations.common.reflection.XClass getClassOrElement() throws MappingException
Description copied from interface:PropertyData
Returns the returned class itself or the element type if an array- Specified by:
getClassOrElement
in interfacePropertyData
- Throws:
MappingException
-
getClassOrElementName
public String getClassOrElementName() throws MappingException
Description copied from interface:PropertyData
Returns the returned class name itself or the element type if an array- Specified by:
getClassOrElementName
in interfacePropertyData
- Throws:
MappingException
-
getDefaultAccess
public AccessType getDefaultAccess()
- Specified by:
getDefaultAccess
in interfacePropertyData
- Returns:
- default member access (whether field or property)
-
getProperty
public org.hibernate.annotations.common.reflection.XProperty getProperty()
Description copied from interface:PropertyData
Return the Hibernate mapping property- Specified by:
getProperty
in interfacePropertyData
-
getDeclaringClass
public org.hibernate.annotations.common.reflection.XClass getDeclaringClass()
Description copied from interface:PropertyData
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- Specified by:
getDeclaringClass
in interfacePropertyData
-
getPropertyClass
public org.hibernate.annotations.common.reflection.XClass getPropertyClass() throws MappingException
Description copied from interface:PropertyData
Return the class itself- Specified by:
getPropertyClass
in interfacePropertyData
- Throws:
MappingException
-
getPropertyName
public String getPropertyName() throws MappingException
- Specified by:
getPropertyName
in interfacePropertyData
- Returns:
- property name
- Throws:
MappingException
- No getter or field found or wrong JavaBean spec usage
-
getTypeName
public String getTypeName() throws MappingException
Description copied from interface:PropertyData
Returns the returned class name itself- Specified by:
getTypeName
in interfacePropertyData
- Throws:
MappingException
-
-