|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.castor.jdo.jpa.info.ClassInfoBuilder
public final class ClassInfoBuilder
Uses a JPA annotated Class
to build a ClassInfo
and
FieldInfo
s of it and parse the mapping information in them.
Method Summary | |
---|---|
static ClassInfo |
buildClassInfo(java.lang.Class<?> type)
Builds a new ClassInfo describing the given Class. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static ClassInfo buildClassInfo(java.lang.Class<?> type) throws MappingException
ClassInfo
describing the given Class. Annotations
for the class and its fields are read using the
TargetAwareAnnotationProcessingService
s defined by
#setClassAnnotationProcessingService(TargetAwareAnnotationProcessingService)
and
#setFieldAnnotationProcessingService(TargetAwareAnnotationProcessingService)
. The information is stored in the ClassInfo
and its related
FieldInfo
s.
type
- The Class Object representing the Class that shall be
described.
ClassInfo
describing the given Class or null if the
given type was not describable.
MappingException
- if annotation placement is invalid (field and property access
for the same field) or if composite keys are used!
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |