| | |
| | | public class DraftCNDbIterator |
| | | { |
| | | private static final DebugTracer TRACER = getTracer(); |
| | | private DraftCNDBCursor draftCNDbCursor = null; |
| | | private DraftCNDBCursor draftCNDbCursor; |
| | | |
| | | /** |
| | | * Creates a new ReplicationIterator. |
| | |
| | | { |
| | | try |
| | | { |
| | | ChangeNumber cn = this.draftCNDbCursor.currentChangeNumber(); |
| | | return cn; |
| | | return this.draftCNDbCursor.currentChangeNumber(); |
| | | } |
| | | catch(Exception e) |
| | | { |
| | |
| | | /** |
| | | * Skip to the next record of the database. |
| | | * @return true if has next, false elsewhere |
| | | * @throws Exception When exception raised. |
| | | * @throws DatabaseException When database exception raised. |
| | | */ |
| | | public boolean next() |
| | | throws Exception, DatabaseException |
| | | public boolean next() throws DatabaseException |
| | | { |
| | | if (draftCNDbCursor != null) |
| | | { |
| | | return draftCNDbCursor.next(); |
| | | } |
| | | return false; |
| | | } |
| | | |
| | | /** |
| | | * Release the resources and locks used by this Iterator. |