public interface EngineCollection
extends java.io.Serializable
A collection can be one of three types: a set, a list, or a row set.
A set is a collection of independent objects, the elements of which are
unordered and unique. Functionality common only to sets
is defined in the EngineSet
interface. Sets can be
iterated a page at a time (instead of one object or one row at a time), and
may not be directly updated. A list is a collection of
dependent objects, the elements of which are ordered and need not be unique.
A row set is a collection of rows (such as the result
set returned from a query) and has the characteristics of a set-type collection.
The name of a collection identifies its type. For example, a DocumentSet
is a
collection of Document
objects, which are independent objects.
A DependentObjectList
is a collection of dependent objects. A
RepositoryRowSet
is a row set.
This interface provides standard collection methods.
PageIterator
boolean isEmpty()
IndependentObjectSet
and RepositoryRowSet
).true
if the collection has no elements; otherwise,
returns false
.java.util.Iterator iterator()
Iterator
object for iterating
the items in the collection. In the case of sets, paging is
performed transparently.
The returned Iterator
object's remove()
method throws an
UnsupportedOperationException
.
Iterator
object.© Copyright IBM Corporation 2006, 2015. All rights reserved.