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

Nicolas Capponi
18.00.2014 0058d859298112444011a1630d48bcfd9dd3ee95
refs
author Nicolas Capponi <nicolas.capponi@forgerock.com>
Monday, August 18, 2014 13:00 +0200
committer Nicolas Capponi <nicolas.capponi@forgerock.com>
Monday, August 18, 2014 13:00 +0200
commit0058d859298112444011a1630d48bcfd9dd3ee95
tree d0f93766274039356962f17a495bf0563ca5da19 tree | zip | gz
parent 41896878922ca0c33e717f7e40be1e339964a848 view | diff
Forward port of checkpoint commit for OPENDJ-1471 File based changelog : improve cursor behavior

All cursors related to ReplicaDB now behave like java.sql.ResultSet API in JE implementation

(File based changelog implementation will be ported later)

* JEChangelogDB#getCursorFrom(DN, int, CSN) now returns a java.sql.ResultSet style cursor

* ChangeNumberIndex : advance cursor to first record to keep current behavior

* Update Javadoc in several classes : DBCursor, ReplicationDomainDB, JEReplicaDB,
JEReplicaDBCursor

* SequentialDBCursor (used in tests only) now behaves like java.sql.ResultSet API

* ChangeNumberIndexerTest : adapt to changes of SequentialDBCursor

* CompositeDBCursorTest : add more tests

* ReplicaOfflineCursorTest : adapt to changes of SequentialDBCursor
8 files modified
164 ■■■■ changed files
opendj-sdk/opendj3-server-dev/src/server/org/opends/server/replication/server/changelog/api/DBCursor.java 26 ●●●●● diff | view | raw | blame | history
opendj-sdk/opendj3-server-dev/src/server/org/opends/server/replication/server/changelog/api/ReplicationDomainDB.java 4 ●●●● diff | view | raw | blame | history
opendj-sdk/opendj3-server-dev/src/server/org/opends/server/replication/server/changelog/je/ChangeNumberIndexer.java 1 ●●●● diff | view | raw | blame | history
opendj-sdk/opendj3-server-dev/src/server/org/opends/server/replication/server/changelog/je/JEChangelogDB.java 5 ●●●●● diff | view | raw | blame | history
opendj-sdk/opendj3-server-dev/tests/unit-tests-testng/src/server/org/opends/server/replication/server/changelog/je/ChangeNumberIndexerTest.java 4 ●●● diff | view | raw | blame | history
opendj-sdk/opendj3-server-dev/tests/unit-tests-testng/src/server/org/opends/server/replication/server/changelog/je/CompositeDBCursorTest.java 110 ●●●●● diff | view | raw | blame | history
opendj-sdk/opendj3-server-dev/tests/unit-tests-testng/src/server/org/opends/server/replication/server/changelog/je/ReplicaOfflineCursorTest.java 6 ●●●● diff | view | raw | blame | history
opendj-sdk/opendj3-server-dev/tests/unit-tests-testng/src/server/org/opends/server/replication/server/changelog/je/SequentialDBCursor.java 8 ●●●● diff | view | raw | blame | history