org.apache.ojb.odmg
Class NamedRootsMap

java.lang.Object
  extended byorg.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,v 1.12.2.1 2005/04/03 02:38:45 arminw Exp $
Author:
Thomas Mahler

Nested Class Summary
static class NamedRootsMap.NamedEntry
          represents an entry to the named roots table.
 
Method Summary
 void afterWriteCleanup()
           
 void bind(java.lang.Object object, java.lang.String name)
           
 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().


afterWriteCleanup

public void afterWriteCleanup()

bind

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


(C) 2002 - 2004 Apache Software Foundation
All rights reserved. Published under the Apache License 2.0.
http://db.apache.org/ojb
Version: 1.0.3, 2005-04-2