© 2005 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
 Iterator cursor()
          Get an iterator of the Map's keys
 Map getMap()
          Get the wrapped map
 void setMap(Map collection)
          Set the entire map
 

Method Detail

cursor

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

Returns:
an iterator of the Map's keys

getMap

public Map getMap()
Get the wrapped map

Returns:
the Map contained in the wrapper

setMap

public void setMap(Map collection)
Set the entire map

Parameters:
collection - the Map to wrap

© 2005 BEA Systems, Inc.

Copyright © 2005 BEA Systems, Inc. All Rights Reserved