Class ObjectRelationalMapping

java.lang.Object
net.ontopia.persistence.proxy.ObjectRelationalMapping

public class ObjectRelationalMapping extends Object
INTERNAL: The generic object relational mapping definition class.
  • Field Details

  • Constructor Details

    • ObjectRelationalMapping

      public ObjectRelationalMapping(InputStream istream)
      INTERNAL: Creates an object relational mapping instance that is to read its definition from the specified mapping file. The mapping file input stream should be an XML file.
  • Method Details

    • loadMapping

      protected void loadMapping(InputSource isource)
      INTERNAL: Read a mapping description from the specified file.
    • toClassDescriptorArray

      protected ClassDescriptor[] toClassDescriptorArray(Collection<ClassDescriptor> cdescs)
      INTERNAL: Utility method that converts a collection of class descriptors to an array of class descriptors.
    • getClassDescriptors

      public ClassDescriptor[] getClassDescriptors()
      INTERNAL: Gets all the class descriptors in the mapping.
    • getDescriptorByClass

      public ClassDescriptor getDescriptorByClass(Class<?> type)
      INTERNAL: Gets the class descriptor by object type.
    • addClass

      public void addClass(ClassDescriptor cdesc)
      INTERNAL: Adds the class descriptor to the mapping.