Package org.castor.cpa.jpa.info
Class ClassInfoBuilder
- java.lang.Object
-
- org.castor.cpa.jpa.info.ClassInfoBuilder
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ClassInfobuildClassInfo(java.lang.Class<?> type)Builds a newClassInfodescribing the given Class.
-
-
-
Method Detail
-
buildClassInfo
public static ClassInfo buildClassInfo(java.lang.Class<?> type) throws MappingException
Builds a newClassInfodescribing the given Class. Annotations for the class and its fields are read using theTargetAwareAnnotationProcessingServices defined by#setClassAnnotationProcessingService(TargetAwareAnnotationProcessingService)and#setFieldAnnotationProcessingService(TargetAwareAnnotationProcessingService). The information is stored in theClassInfoand its relatedFieldInfos.- Parameters:
type- The Class Object representing the Class that shall be described.- Returns:
- a new
ClassInfodescribing the given Class or null if the given type was not describable. - Throws:
MappingException- if annotation placement is invalid (field and property access for the same field) or if composite keys are used!
-
-