net.ontopia.persistence.proxy
Class ObjectRelationalMapping

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

public class ObjectRelationalMapping
extends java.lang.Object

INTERNAL: The generic object relational mapping definition class.


Field Summary
protected  java.util.Map cdescs
           
 
Constructor Summary
ObjectRelationalMapping(java.io.InputStream istream)
          INTERNAL: Creates an object relational mapping instance that is to read its definition from the specified mapping file.
 
Method Summary
 void addClass(ClassDescriptor cdesc)
          INTERNAL: Adds the class descriptor to the mapping.
 ClassDescriptor[] getClassDescriptors()
          INTERNAL: Gets all the class descriptors in the mapping.
 ClassDescriptor getDescriptorByClass(java.lang.Object type)
          INTERNAL: Gets the class descriptor by object type.
 ClassDescriptor[] getDescriptorClasses()
          INTERNAL: Gets all the descriptor classes in describes by the mapping.
protected  void loadMapping(org.xml.sax.InputSource isource)
          INTERNAL: Read a mapping description from the specified file.
protected  ClassDescriptor[] toClassDescriptorArray(java.util.Collection cdescs)
          INTERNAL: Utility method that converts a collection of class descriptors to an array of class descriptors.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cdescs

protected java.util.Map cdescs
Constructor Detail

ObjectRelationalMapping

public ObjectRelationalMapping(java.io.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 Detail

loadMapping

protected void loadMapping(org.xml.sax.InputSource isource)
INTERNAL: Read a mapping description from the specified file.


toClassDescriptorArray

protected ClassDescriptor[] toClassDescriptorArray(java.util.Collection 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.


getDescriptorClasses

public ClassDescriptor[] getDescriptorClasses()
INTERNAL: Gets all the descriptor classes in describes by the mapping.


getDescriptorByClass

public ClassDescriptor getDescriptorByClass(java.lang.Object type)
INTERNAL: Gets the class descriptor by object type.


addClass

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



Copyright © 2000-2012 Ontopia.