org.apache.tuscany.das.rdb.graphbuilder.impl
Class MultiTableRegistry
java.lang.Object
org.apache.tuscany.das.rdb.graphbuilder.impl.MultiTableRegistry
- All Implemented Interfaces:
- TableRegistry
public class MultiTableRegistry
- extends java.lang.Object
- implements TableRegistry
Used to store and look up table objects based on primary key
This could be a lot more efficient if we could use LinkedHashMap from JDK 1.4
Method Summary |
boolean |
contains(java.lang.String tableName,
java.util.List primaryKey)
|
commonj.sdo.DataObject |
get(java.lang.String tableName,
java.util.List primaryKey)
Get the table with the specified name and primary key |
void |
put(java.lang.String tableName,
java.util.List primaryKey,
commonj.sdo.DataObject value)
Add the table with the specified name and primary key |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MultiTableRegistry
public MultiTableRegistry()
get
public commonj.sdo.DataObject get(java.lang.String tableName,
java.util.List primaryKey)
- Get the table with the specified name and primary key
- Specified by:
get
in interface TableRegistry
- Parameters:
tableName
- primaryKey
-
- Returns:
- EDataObject
put
public void put(java.lang.String tableName,
java.util.List primaryKey,
commonj.sdo.DataObject value)
- Add the table with the specified name and primary key
- Specified by:
put
in interface TableRegistry
- Parameters:
tableName
- primaryKey
- value
-
contains
public boolean contains(java.lang.String tableName,
java.util.List primaryKey)
- Specified by:
contains
in interface TableRegistry
-