org.nakedobjects.runtime.persistence.adaptermanager.internal
Interface OidAdapterMap

All Superinterfaces:
Component, DebugInfo, java.lang.Iterable<Oid>, Resettable, SessionScopedComponent
All Known Implementing Classes:
OidAdapterHashMap

public interface OidAdapterMap
extends DebugInfo, java.lang.Iterable<Oid>, SessionScopedComponent, Resettable

A map of the objects' identities and the adapters' of the objects.


Method Summary
 void add(Oid oid, NakedObject adapter)
          Add an adapter for a given oid
 NakedObject getAdapter(Oid oid)
          Get the adapter identified by the specified OID.
 boolean remove(Oid oid)
          Remove the adapter for the given oid
 
Methods inherited from interface org.nakedobjects.metamodel.commons.debug.DebugInfo
debugData, debugTitle
 
Methods inherited from interface java.lang.Iterable
iterator
 
Methods inherited from interface org.nakedobjects.metamodel.commons.component.SessionScopedComponent
close, open
 
Methods inherited from interface org.nakedobjects.metamodel.commons.component.Resettable
reset
 

Method Detail

add

void add(Oid oid,
         NakedObject adapter)
Add an adapter for a given oid


remove

boolean remove(Oid oid)
Remove the adapter for the given oid

Returns:
true if an adapter was removed.

getAdapter

NakedObject getAdapter(Oid oid)
Get the adapter identified by the specified OID.



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