Class DatingService

java.lang.Object
org.exolab.castor.persist.DatingService

public class DatingService extends Object
DataService is a helper class for constructing ClassMolders and pairing up ClassMolders which depends and extends the other.
Author:
Thomas Yip
  • Constructor Details

  • Method Details

    • close

      void close() throws MappingException
      Indicate that all ClassMolder is registered. DatingService will resolve all the outstanding relation now.
      Throws:
      MappingException
    • pairExtends

      boolean pairExtends(ClassMolder me, String extName) throws MappingException
      Pair up ClassMolder and it extends class.
      Returns:
      true if they can be paired up immediately.
      Throws:
      MappingException
    • pairDepends

      boolean pairDepends(ClassMolder me, String depName)
      Pair up ClassMolder and it depends class.
      Returns:
      true if they can be paired up immediately.
    • resolve

      Class<?> resolve(String className) throws ClassNotFoundException
      Resolve the java.lang.Class of the fully qualified class name.
      Throws:
      ClassNotFoundException
    • pairFieldClass

      boolean pairFieldClass(FieldMolder fieldMolder, String typeName) throws MappingException
      Pair the FieldMolder with the ClassMolder of typeName.
      Parameters:
      fieldMolder - the fieldMolder to be paired.
      typeName - Type of the field which the FieldMolder represents.
      Throws:
      MappingException - indicates that the pairing failed.
    • register

      void register(String name, ClassMolder clsMold)
      Register the name of a ClassMolder which will be pairing up.