Package net.ontopia.persistence.proxy
Class ObjectRelationalMapping
- java.lang.Object
-
- net.ontopia.persistence.proxy.ObjectRelationalMapping
-
public class ObjectRelationalMapping extends Object
INTERNAL: The generic object relational mapping definition class.
-
-
Field Summary
Fields Modifier and Type Field Description protected Map<Class<?>,ClassDescriptor>
cdescs
-
Constructor Summary
Constructors Constructor Description ObjectRelationalMapping(InputStream istream)
INTERNAL: Creates an object relational mapping instance that is to read its definition from the specified mapping file.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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(Class<?> type)
INTERNAL: Gets the class descriptor by object type.protected void
loadMapping(InputSource isource)
INTERNAL: Read a mapping description from the specified file.protected ClassDescriptor[]
toClassDescriptorArray(Collection<ClassDescriptor> cdescs)
INTERNAL: Utility method that converts a collection of class descriptors to an array of class descriptors.
-
-
-
Field Detail
-
cdescs
protected Map<Class<?>,ClassDescriptor> cdescs
-
-
Constructor Detail
-
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 Detail
-
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.
-
-