# com.beasys.commerce.util
PersistenceHelper.DefaultSmartCollectionReference Class

public static class PersistenceHelper.DefaultSmartCollectionReference
extends `Object`
implements `Serializable`, `SmartCollectionReference`

Hierarchy
  `Object`
  `PersistenceHelper.DefaultSmartCollectionReference`

All Implemented Interfaces
  `Serializable`, `SmartCollectionReference`

Enclosing class
  `PersistenceHelper`

## Constructor Summary

PersistenceHelper.DefaultSmartCollectionReference()

## Method Summary

`public `Iterator`` | `cursor`() Get an iterator over the collection's contents
`public `Collection`` | `getCollection`() Get the entire collection
`public void` | `setCollection`(`Collection` collection) Set the entire collection

Methods from class `java.lang.`Object``
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Methods from interface `com.beasys.commerce.foundation.`SmartCollectionReference``
``cursor`, `getCollection`, `setCollection``

## Constructor Detail

### PersistenceHelper.DefaultSmartCollectionReference

    public PersistenceHelper.DefaultSmartCollectionReference()

## Method Detail

### cursor() Method

    public Iterator cursor()

Description copied from `SmartCollectionReference.cursor()`
Get an iterator over the collection's contents

#### Returns

an iterator over the collection's contents

### getCollection() Method

    public Collection getCollection()

Description copied from `SmartCollectionReference.getCollection()`
Get the entire collection

#### Returns

the wrapped Collection

### setCollection(Collection) Method

    public void setCollection(Collection collection)

Description copied from `SmartCollectionReference.setCollection(Collection)`
Set the entire collection

#### Parameters

collection
  collection to set