mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Jean-Noel Rouvignac
10.32.2013 b4a1565a2ab3cd0192a1b17c026f16e151fd04ca
opends/src/server/org/opends/server/replication/server/changelog/api/DBCursor.java
File was renamed from opends/src/server/org/opends/server/replication/server/changelog/api/ChangeNumberIndexDBCursor.java
@@ -29,19 +29,22 @@
import java.io.Closeable;
/**
 * Iterator into the changelog database. Once it is not used anymore, a
 * ChangelogDBIterator must be closed to release all the resources into the
 * Generic cursor interface into the changelog database. Once it is not used
 * anymore, a cursor must be closed to release all the resources into the
 * database.
 *
 * @param <T>
 *          type of the record being returned
 */
public interface ChangeNumberIndexDBCursor extends Closeable
public interface DBCursor<T> extends Closeable
{
  /**
   * Getter for the record.
   * Getter for the current record.
   *
   * @return The current {@link CNIndexRecord}.
   * @return The current record.
   */
  CNIndexRecord getRecord();
  T getRecord();
  /**
   * Skip to the next record of the database.