ojb.server
Class NamedRootsMap
java.lang.Object
|
+--ojb.server.NamedRootsMap
- public class NamedRootsMap
- extends java.lang.Object
ODMG NamedRoots implementation.
this implementation stores the (name, Identity) pairs in
a database table.
therefore the NamedRootsMap underlies the same transaction management
as all other persistent objects
Method Summary |
Identity |
get(java.lang.String key)
lookup key in map. |
static NamedRootsMap |
getInstance()
factory method returns singleton instance |
void |
put(java.lang.String key,
Identity oid)
put a serialized verion of oid into the map |
void |
unbind(java.lang.String key)
remove an entry from the NamedRoots map |
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
get
public Identity get(java.lang.String key)
- lookup key in map. If found return a deserialized Identity object, else null
getInstance
public static NamedRootsMap getInstance()
- factory method returns singleton instance
put
public void put(java.lang.String key,
Identity oid)
throws ObjectNameNotUniqueException
- put a serialized verion of oid into the map
unbind
public void unbind(java.lang.String key)
throws ObjectNameNotFoundException
- remove an entry from the NamedRoots map
Authors: Thomas Mahler, David Dixon-Peugh. (C) 2000, 2001.
All rights reserved. Published under the Gnu Public License.
http://objectbridge.sourceforge.net
Version: 0.1.120, 2001-05-12