|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface CloseableWrappedIterable<T>
Extension to CloseableIterable which defines a class which has an iterator() method that returns a
CloseableIterator but also can be closed itself. This allows us to do something like this pattern:
CloseableWrappedIterablewrapperIterable = fooDao.getCloseableIterable(); try { for (Foo foo : wrapperIterable) { ... } } finally { wrapperIterable.close(); }
| Method Summary | |
|---|---|
void |
close()
This will close the last iterator returned by the Iterable.iterator() method. |
| Methods inherited from interface com.j256.ormlite.dao.CloseableIterable |
|---|
closeableIterator |
| Methods inherited from interface java.lang.Iterable |
|---|
iterator |
| Method Detail |
|---|
void close()
throws SQLException
Iterable.iterator() method.
SQLException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||