|
|||||||||
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 class ClassInfoBuilder
Uses a JPA annotated Class
to build ClassInfo
and
FieldInfo
s of it and parse the mapping information in them. For now,
all fields are mapped as normal fields. No keys fields are recognized.
Constructor Summary | |
---|---|
ClassInfoBuilder()
Create a new ClassInfoBuilder with the JPA annotation capable AnnotationProcessingService s. |
Method Summary | |
---|---|
ClassInfo |
buildClassInfo(java.lang.Class<?> type)
Builds a new ClassInfo describing the given Class. |
AnnotationProcessingService |
getClassAnnotationProcessingService()
|
AnnotationProcessingService |
getFieldAnnotationProcessingService()
|
void |
setClassAnnotationProcessingService(AnnotationProcessingService annotationProcessingService)
Set the AnnotationProcessingService used to read the classes
annotations. |
void |
setFieldAnnotationProcessingService(AnnotationProcessingService annotationProcessingService)
Set the AnnotationProcessingService used to read annotations of
the classes fields. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ClassInfoBuilder()
AnnotationProcessingService
s.
Method Detail |
---|
public final AnnotationProcessingService getClassAnnotationProcessingService()
AnnotationProcessingService
used to read annotations
of the class.public final void setClassAnnotationProcessingService(AnnotationProcessingService annotationProcessingService)
AnnotationProcessingService
used to read the classes
annotations.
annotationProcessingService
- the AnnotationProcessingService
used to read the
classes annotations.public final AnnotationProcessingService getFieldAnnotationProcessingService()
AnnotationProcessingService
used to read annotations
of the classes fields.public final void setFieldAnnotationProcessingService(AnnotationProcessingService annotationProcessingService)
AnnotationProcessingService
used to read annotations of
the classes fields.
annotationProcessingService
- the AnnotationProcessingService
used to read
annotations of the classes fields.public final ClassInfo buildClassInfo(java.lang.Class<?> type) throws MappingException
ClassInfo
describing the given Class. Annotations for the class and its
fields are read using the AnnotationProcessingService
s defined by
{@link #setClassAnnotationProcessingService(AnnotationProcessingService) and
type
- The Class Object representing the Class that shall be described.
ClassInfo
describing the given Class.
MappingException
- if annotation placement is invalid (field and property access for the same field).
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |