org.nakedobjects.runtime.persistence.adaptermanager.internal
Class OidAdapterHashMap

java.lang.Object
  extended by org.nakedobjects.runtime.persistence.adaptermanager.internal.OidAdapterHashMap
All Implemented Interfaces:
java.lang.Iterable<Oid>, Component, Resettable, SessionScopedComponent, DebugInfo, OidAdapterMap

public class OidAdapterHashMap
extends java.lang.Object
implements OidAdapterMap


Constructor Summary
OidAdapterHashMap()
           
OidAdapterHashMap(int capacity)
           
 
Method Summary
 void add(Oid oid, NakedObject adapter)
          Add an adapter for a given oid
 void close()
           
 void debugData(DebugString debug)
           
 java.lang.String debugTitle()
           
 NakedObject getAdapter(Oid oid)
          Get the adapter identified by the specified OID.
 java.util.Iterator<Oid> iterator()
           
 void open()
           
 boolean remove(Oid oid)
          Remove the adapter for the given oid
 void reset()
          Removes all non-service adapters.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OidAdapterHashMap

public OidAdapterHashMap()

OidAdapterHashMap

public OidAdapterHashMap(int capacity)
Method Detail

open

public void open()
Specified by:
open in interface SessionScopedComponent

close

public void close()
Specified by:
close in interface SessionScopedComponent

reset

public void reset()
Removes all non-service adapters.

Specified by:
reset in interface Resettable

add

public void add(Oid oid,
                NakedObject adapter)
Description copied from interface: OidAdapterMap
Add an adapter for a given oid

Specified by:
add in interface OidAdapterMap

remove

public boolean remove(Oid oid)
Description copied from interface: OidAdapterMap
Remove the adapter for the given oid

Specified by:
remove in interface OidAdapterMap
Returns:
true if an adapter was removed.

getAdapter

public NakedObject getAdapter(Oid oid)
Description copied from interface: OidAdapterMap
Get the adapter identified by the specified OID.

Specified by:
getAdapter in interface OidAdapterMap

iterator

public java.util.Iterator<Oid> iterator()
Specified by:
iterator in interface java.lang.Iterable<Oid>

debugTitle

public java.lang.String debugTitle()
Specified by:
debugTitle in interface DebugInfo

debugData

public void debugData(DebugString debug)
Specified by:
debugData in interface DebugInfo


Copyright © 2001-2009 Naked Objects Group Ltd.. All Rights Reserved.