org.castor.jdo.jpa.info
Class InfoToDescriptorConverter

java.lang.Object
  extended by org.castor.jdo.jpa.info.InfoToDescriptorConverter

public final class InfoToDescriptorConverter
extends java.lang.Object

This Class converts a ClassInfo and its contained FieldInfos to a ClassDescriptor with FieldDescriptors.

Working getters for Classes (#convert(ClassInfo)) and Fields ( #convert(ClassDescriptor, FieldInfo))

Since:
1.3
Author:
Peter Schmidt

Method Summary
static void convert(ClassInfo classInfo, ClassDescriptorResolver cdr, ClassDescriptorImpl descriptor)
          This method converts a ClassInfo to a ClassDescriptorImpl .
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

convert

public static void convert(ClassInfo classInfo,
                           ClassDescriptorResolver cdr,
                           ClassDescriptorImpl descriptor)
                    throws MappingException
This method converts a ClassInfo to a ClassDescriptorImpl . Implemented Features of ClassDescriptorImpl Unimplemented Features of ClassDescriptorImpl Implemented Features of ClassDescriptorJDONature Unimplemented Features of ClassDescriptorJDONature

Parameters:
classInfo - The ClassInfo to convert.
cdr - The ClassDescriptorResolver to ask for needed ClassDescriptors (of extended or related classes).
descriptor - A ClassDescriptorImpl for the class described by the given ClassInfo. This will be filled with information!
Throws:
MappingException - if the class has not a public available default constructor or the ClassDescriptor of a related class can not be found by the ClassDescriptorManager.
See Also:
InfoToDescriptorConverter


Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com