public class ObjectRelationalMapping extends Object
Modifier and Type | Field and Description |
---|---|
protected Map<Class<?>,ClassDescriptor> |
cdescs |
Constructor and Description |
---|
ObjectRelationalMapping(InputStream istream)
INTERNAL: Creates an object relational mapping instance that is
to read its definition from the specified mapping file.
|
Modifier and Type | Method and 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.
|
protected Map<Class<?>,ClassDescriptor> cdescs
public ObjectRelationalMapping(InputStream istream)
protected void loadMapping(InputSource isource)
protected ClassDescriptor[] toClassDescriptorArray(Collection<ClassDescriptor> cdescs)
public ClassDescriptor[] getClassDescriptors()
public ClassDescriptor getDescriptorByClass(Class<?> type)
public void addClass(ClassDescriptor cdesc)