public class PropertyPreloadedData extends Object implements PropertyData
Constructor and Description |
---|
PropertyPreloadedData(AccessType defaultAccess,
String propertyName,
XClass returnedClass) |
Modifier and Type | Method and Description |
---|---|
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
|
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() |
XProperty |
getProperty()
Return the Hibernate mapping property
|
XClass |
getPropertyClass()
Return the class itself
|
String |
getPropertyName() |
String |
getTypeName()
Returns the returned class name itself
|
public PropertyPreloadedData(AccessType defaultAccess, String propertyName, XClass returnedClass)
public AccessType getDefaultAccess() throws MappingException
getDefaultAccess
in interface PropertyData
MappingException
- No getter or field found or wrong JavaBean spec usagepublic String getPropertyName() throws MappingException
getPropertyName
in interface PropertyData
MappingException
- No getter or field found or wrong JavaBean spec usagepublic XClass getClassOrElement() throws MappingException
PropertyData
getClassOrElement
in interface PropertyData
MappingException
public XClass getPropertyClass() throws MappingException
PropertyData
getPropertyClass
in interface PropertyData
MappingException
public String getClassOrElementName() throws MappingException
PropertyData
getClassOrElementName
in interface PropertyData
MappingException
public String getTypeName() throws MappingException
PropertyData
getTypeName
in interface PropertyData
MappingException
public XProperty getProperty()
PropertyData
getProperty
in interface PropertyData
public XClass getDeclaringClass()
PropertyData
getDeclaringClass
in interface PropertyData
Copyright © 2018 JBoss by Red Hat. All rights reserved.