org.exolab.castor.mapping.loader
Class ClassDescriptorHelper

java.lang.Object
  extended by org.exolab.castor.mapping.loader.ClassDescriptorHelper

public class ClassDescriptorHelper
extends Object


Constructor Summary
ClassDescriptorHelper()
           
 
Method Summary
static FieldDescriptor[] getFullFields(ClassDescriptor classDescriptor)
          Get all the FieldDescriptors for non-identity fields, including all the fields in base classes.
static FieldDescriptor[] getIdFields(ClassDescriptor classDescriptor)
          Get the all the id fields of a class If the class, C, is a dependent class, then the depended class', D, id fields will be appended at the back and returned.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClassDescriptorHelper

public ClassDescriptorHelper()
Method Detail

getFullFields

public static FieldDescriptor[] getFullFields(ClassDescriptor classDescriptor)
                                       throws MappingException
Get all the FieldDescriptors for non-identity fields, including all the fields in base classes.

Parameters:
classDescriptor - ClassMapping instance.
Returns:
An array.
Throws:
MappingException

getIdFields

public static FieldDescriptor[] getIdFields(ClassDescriptor classDescriptor)
                                     throws MappingException
Get the all the id fields of a class If the class, C, is a dependent class, then the depended class', D, id fields will be appended at the back and returned. If the class is an extended class, the id fields of the extended class will be returned.

Throws:
MappingException


Copyright © 2013. All Rights Reserved.