org.apache.ojb.odmg
Class NamedRootsMap

java.lang.Object
  extended by org.apache.ojb.odmg.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

Version:
$Id: NamedRootsMap.java 365266 2005-12-31 18:51:59Z arminw $

Nested Class Summary
static class NamedRootsMap.NamedEntry
          represents an entry to the named roots table.
 
Method Summary
 void bind(java.lang.Object object, java.lang.String name)
           
 void cleanup()
           
 void performDeletion()
          Have to be performed after the "normal" objects be written to DB and before method performInsert().
 void performInsert()
          Have to be performed after the "normal" objects be written to DB and after method performDeletion().
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

performDeletion

public void performDeletion()
Have to be performed after the "normal" objects be written to DB and before method performInsert().


performInsert

public void performInsert()
Have to be performed after the "normal" objects be written to DB and after method performDeletion().


cleanup

public void cleanup()

bind

public void bind(java.lang.Object object,
                 java.lang.String name)
          throws ObjectNameNotUniqueException
Throws:
ObjectNameNotUniqueException


(C) 2002 - 2006 Apache Software Foundation
All rights reserved. Published under the Apache License 2.0.
http://db.apache.org/ojb
Version: 1.0.4, 2005-12-30