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 ClassDescriptorImpl convert(ClassInfo classInfo, ClassDescriptorResolutionCommand command)
          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 ClassDescriptorImpl convert(ClassInfo classInfo,
                                          ClassDescriptorResolutionCommand command)
                                   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.
command - The ClassDescriptorResolutionCommand to ask for needed ClassDescriptors (of extended, used classes).
Returns:
A ClassDescriptorImpl for the class described by the given ClassInfo.
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


Copyright © 2011. All Rights Reserved.