Modifier and Type | Method and Description |
---|---|
default Iterator<E> |
iterator()
|
forEach, spliterator
default Iterator<E> iterator()
Executes
the query and returns the matching objects as Iterator
. This method may be
overridden for database technology implementations that have native support for Iterator
(unlike JPA). In
such case this method is way more efficient if you only need to iterate the results to a specific point without the
need to know the number of matches
. If possible you shall prefer this method over
Query.execute()
.Copyright © 2001–2016 mmm-Team. All rights reserved.