© 2002 BEA Systems, Inc.


com.beasys.commerce.foundation
Interface SmartMapReference

All Known Implementing Classes:
com.beasys.commerce.foundation.plugin.bmp.BMPBelongingSmartMapReference, PersistenceHelper.DefaultSmartMapReference

public interface SmartMapReference

An interface for classes that wrap a Map, and handle intelligent persistence of the Map's contents; i.e., only making database calls when necessary rather than updating the entire Map when only a subset of it has changed, etc.


Method Summary
 java.util.Iterator cursor()
          Get an iterator of the Map's keys
 java.util.Map getMap()
          Get the wrapped map
 void setMap(java.util.Map collection)
          Set the entire map
 

Method Detail

setMap

public void setMap(java.util.Map collection)
Set the entire map

Parameters:
collection - the Map to wrap

getMap

public java.util.Map getMap()
Get the wrapped map

Returns:
the Map contained in the wrapper

cursor

public java.util.Iterator cursor()
Get an iterator of the Map's keys

Returns:
an iterator of the Map's keys

© 2002 BEA Systems, Inc.

Copyright © 2002 BEA Systems, Inc. All Rights Reserved