Package net.ontopia.persistence.proxy
Class ObjectRelationalMapping
java.lang.Object
net.ontopia.persistence.proxy.ObjectRelationalMapping
INTERNAL: The generic object relational mapping definition class.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionObjectRelationalMapping(InputStream istream) INTERNAL: Creates an object relational mapping instance that is to read its definition from the specified mapping file. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddClass(ClassDescriptor cdesc) INTERNAL: Adds the class descriptor to the mapping.INTERNAL: Gets all the class descriptors in the mapping.getDescriptorByClass(Class<?> type) INTERNAL: Gets the class descriptor by object type.protected voidloadMapping(InputSource isource) INTERNAL: Read a mapping description from the specified file.protected ClassDescriptor[]INTERNAL: Utility method that converts a collection of class descriptors to an array of class descriptors.
-
Field Details
-
cdescs
-
-
Constructor Details
-
ObjectRelationalMapping
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
INTERNAL: Read a mapping description from the specified file. -
toClassDescriptorArray
INTERNAL: Utility method that converts a collection of class descriptors to an array of class descriptors. -
getClassDescriptors
INTERNAL: Gets all the class descriptors in the mapping. -
getDescriptorByClass
INTERNAL: Gets the class descriptor by object type. -
addClass
INTERNAL: Adds the class descriptor to the mapping.
-