Package org.castor.cpa.jpa.info
Class InfoToDescriptorConverter
- java.lang.Object
-
- org.castor.cpa.jpa.info.InfoToDescriptorConverter
-
public final class InfoToDescriptorConverter extends java.lang.Object
This Class converts a
Working getters for Classes (ClassInfo
and its containedFieldInfo
s to aClassDescriptor
withFieldDescriptor
s.#convert(ClassInfo)
) and Fields (#convert(ClassDescriptor, FieldInfo)
)- Since:
- 1.3
- Author:
- Peter Schmidt
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
convert(ClassInfo classInfo, ClassDescriptorResolver cdr, ClassDescriptorImpl descriptor)
This method converts aClassInfo
to aClassDescriptorImpl
.
-
-
-
Method Detail
-
convert
public static void convert(ClassInfo classInfo, ClassDescriptorResolver cdr, ClassDescriptorImpl descriptor) throws MappingException
This method converts aClassInfo
to aClassDescriptorImpl
. Implemented Features ofClassDescriptorImpl
-
ClassDescriptorImpl.getExtends()
-
ClassDescriptorImpl.getFields()
-
ClassDescriptorImpl.getIdentities()
-
ClassDescriptorImpl.getIdentity()
-
ClassDescriptorImpl.getJavaClass()
-
ClassDescriptorImpl.getMapping()
ClassDescriptorImpl
Implemented Features ofClassDescriptorJDONature
-
ClassDescriptorJDONature.getTableName()
-
ClassDescriptorJDONature.getExtended()
-
ClassDescriptorJDONature.getField(String)
-
ClassDescriptorJDONature.getCacheParams()
ClassDescriptorJDONature
- Parameters:
classInfo
- TheClassInfo
to convert.cdr
- TheClassDescriptorResolver
to ask for neededClassDescriptor
s (of extended or related classes).descriptor
- AClassDescriptorImpl
for the class described by the givenClassInfo
. This will be filled with information!- Throws:
MappingException
- if the class has not a public available default constructor or theClassDescriptor
of a related class can not be found by theClassDescriptorManager
.- See Also:
InfoToDescriptorConverter
-
-
-