com.alexkasko.springjdbc.iterable
Interface CloseableIterator<T>

All Superinterfaces:
Closeable, Iterator<T>

public interface CloseableIterator<T>
extends Iterator<T>, Closeable

Iterator, that must be closed after use

Author:
alexkasko Date: 11/7/12

Method Summary
 void close()
          Closes this iterator and releases JDBC resources associated with it.
 boolean isClosed()
           
 
Methods inherited from interface java.util.Iterator
hasNext, next, remove
 

Method Detail

close

void close()
Closes this iterator and releases JDBC resources associated with it. If the iterator is already closed then invoking this method has no effect.

Specified by:
close in interface Closeable

isClosed

boolean isClosed()
Returns:
whether iterator was closed


Copyright © 2013. All Rights Reserved.