|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.hibernate.cfg.PropertyInferredData
public class PropertyInferredData
Retrieve all inferred data from an annnoted element Currently support field and getter processing. An exception is thrown when the annoted element does not fit. The calculation is lazied until the first access to a public getter. This prevent useless reflection.
Constructor Summary | |
---|---|
PropertyInferredData(AnnotatedElement annotedElt,
Class rootEntity,
String propertyAccessor)
Take the annoted element for lazy process |
|
PropertyInferredData(String defaultAccess,
String propertyName,
Class returnedClass)
|
Method Summary | |
---|---|
Class |
getCollectionType()
|
String |
getDefaultAccess()
|
String |
getPropertyName()
|
Class |
getReturnedClass()
Return the class itself |
String |
getReturnedClassName()
Returns the returned class name itself |
Class |
getReturnedClassOrElement()
Returns the returned class itself or the element type if an array |
String |
getReturnedClassOrElementName()
Returns the returned class name itself or the element type if an array |
boolean |
isArray()
|
boolean |
skip()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PropertyInferredData(String defaultAccess, String propertyName, Class returnedClass)
public PropertyInferredData(AnnotatedElement annotedElt, Class rootEntity, String propertyAccessor)
annotedElt
- element to processpropertyAccessor
- Method Detail |
---|
public boolean skip()
public String getDefaultAccess() throws org.hibernate.MappingException
org.hibernate.MappingException
- No getter or field found or wrong JavaBean spec usagepublic String getPropertyName() throws org.hibernate.MappingException
org.hibernate.MappingException
- No getter or field found or wrong JavaBean spec usagepublic Class getReturnedClassOrElement() throws org.hibernate.MappingException
org.hibernate.MappingException
public Class getReturnedClass() throws org.hibernate.MappingException
org.hibernate.MappingException
public String getReturnedClassOrElementName() throws org.hibernate.MappingException
org.hibernate.MappingException
public String getReturnedClassName() throws org.hibernate.MappingException
org.hibernate.MappingException
public Class getCollectionType()
public boolean isArray()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |