org.castor.jdo.jpa.info
Class ClassInfoBuilder
java.lang.Object
org.castor.jdo.jpa.info.ClassInfoBuilder
public final class ClassInfoBuilder
- extends Object
Uses a JPA annotated Class to build a ClassInfo and
FieldInfos of it and parse the mapping information in them.
- Since:
- 1.3
- Author:
- Peter Schmidt
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
buildClassInfo
public static ClassInfo buildClassInfo(Class<?> type)
throws MappingException
- Builds a new
ClassInfo describing the given Class. Annotations
for the class and its fields are read using the
TargetAwareAnnotationProcessingServices defined by
#setClassAnnotationProcessingService(TargetAwareAnnotationProcessingService)
and
#setFieldAnnotationProcessingService(TargetAwareAnnotationProcessingService)
. The information is stored in the ClassInfo and its related
FieldInfos.
- Parameters:
type - The Class Object representing the Class that shall be
described.
- Returns:
- a new
ClassInfo describing 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!
Copyright © 2010. All Rights Reserved.