com.beasys.commerce.foundation
Interface SmartCollectionReference
- All Known Implementing Classes:
- PersistenceHelper.DefaultSmartCollectionReference
- public interface SmartCollectionReference
An interface for classes that wrap a collection, and handle intelligent
persistence of the Collection's contents; i.e., only making database
calls when necessary rather than updating the entire collection when
only a subset of it has changed, etc.
Method Summary |
java.util.Iterator |
cursor()
Get an iterator over the collection's contents |
java.util.Collection |
getCollection()
Get the entire collection |
void |
setCollection(java.util.Collection collection)
Set the entire collection |
setCollection
public void setCollection(java.util.Collection collection)
- Set the entire collection
- Parameters:
the
- collection to set
getCollection
public java.util.Collection getCollection()
- Get the entire collection
- Returns:
- the wrapped Collection
cursor
public java.util.Iterator cursor()
- Get an iterator over the collection's contents
- Returns:
- an iterator over the collection's contents
Copyright © 2001 BEA Systems, Inc. All Rights Reserved