SmartCollectionReference Interface
- 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.
-
All Known Implementing Classes
-
BMPBelongingSmartCollectionReference
, PersistenceHelper.DefaultSmartCollectionReference
cursor() Method
public Iterator
cursor()
Get an iterator over the collection's contents
Returns
- an iterator over the collection's contents
getCollection() Method
public Collection
getCollection()
Get the entire collection
Returns
- the wrapped Collection
setCollection(Collection) Method
public void setCollection(Collection
collection)
Set the entire collection
Parameters
-
collection
- collection to set