|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.nec.tdd.tools.dbMapper.ORMappingInfo
This class maintains the mappings between Java classes that an application will use, and the relational database tables that will be used to store object instances of them.
It stores OR mapping entries (instances of type ORMapEntry) in a map indexed by user class names. New mapping entries can be added dynamically by manually constructing an ORMapEntry object.
Constructor Summary | |
ORMappingInfo()
Constructs an empty ORMappingInfo object. |
Method Summary | |
ORMapEntry |
add(ORMapEntry mapEntry)
Add an ORMapEntry to the ORMappingInfo map. |
void |
addAll(ORMappingInfo newMappings)
Copies all of the O-R mappings (ORMapEntry objects) from the specified ORMappingInfo, named newMappings, to this ORMappingInfo. |
ORMapEntry |
get(java.lang.Class cls)
Get an ORMapEntry associated with given user class. |
ORMapEntry |
get(java.lang.String className)
Get an ORMapEntry associated with given class name. |
ORMapEntry[] |
getAll()
Get all OR mapping entries associated with this ORMappingInfo object. |
java.lang.String |
toString()
Returns string representation of ORMappingInfo, containing the string representation of each mapping entry. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public ORMappingInfo()
Method Detail |
public ORMapEntry get(java.lang.Class cls)
cls
- User class whose associated mapping entry is to be returned.public ORMapEntry get(java.lang.String className)
className
- User class name whose associated mapping entry is to
be returned.public ORMapEntry[] getAll()
public ORMapEntry add(ORMapEntry mapEntry)
mapEntry
- map entry to be inserted.public void addAll(ORMappingInfo newMappings)
newMappings
- new mappings to be stored in this ORMappingInfopublic java.lang.String toString()
toString
in class java.lang.Object
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |