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

boli
08.19.2006 bd6628bda9f2f7979e60120b57579366bc56b0a7
refs
author boli <boli@localhost>
Wednesday, November 8, 2006 21:19 +0100
committer boli <boli@localhost>
Wednesday, November 8, 2006 21:19 +0100
commitbd6628bda9f2f7979e60120b57579366bc56b0a7
tree 2c2cf8568152a1c2bcb4f3996991125c0d8d5ee3 tree | zip | gz
parent 1bd48428cafa9dff8922485c0367813ef01a2eec view | diff
This fix removes the static nextId property as well as the getters and setters for it out of the EntryID class. The nextId property is now a non static property in the RootContainer class. Each RootContainer is responsible for keeping track of the next ID and assigning new entry IDs to all entries in its EntryContainers. 

The constructor for IndexIteratorAllIds now requires a RootContainer parameter.

The getIterator method in EntryIDSet class is also modified so it will no longer return a IndexIteratorAllIds object if no values are added to the set.

This fix also fixes the issue where performing a replaceEntryTransaction or renameEntryTransaction throws a NPE if a ModifyOperation is not specified. The backends API states that backend implementation should allow nulls for internal operations.

Thanks Neil for the code review.

Fix for issue 802 and issue 803
8 files modified
249 ■■■■■ changed files
opendj-sdk/opends/src/server/org/opends/server/backends/jeb/BackendImpl.java 43 ●●●●● diff | view | raw | blame | history
opendj-sdk/opends/src/server/org/opends/server/backends/jeb/EntryContainer.java 62 ●●●● diff | view | raw | blame | history
opendj-sdk/opends/src/server/org/opends/server/backends/jeb/EntryID.java 43 ●●●●● diff | view | raw | blame | history
opendj-sdk/opends/src/server/org/opends/server/backends/jeb/EntryIDSet.java 4 ●●●● diff | view | raw | blame | history
opendj-sdk/opends/src/server/org/opends/server/backends/jeb/ImportJob.java 13 ●●●●● diff | view | raw | blame | history
opendj-sdk/opends/src/server/org/opends/server/backends/jeb/IndexIteratorAllIds.java 7 ●●●● diff | view | raw | blame | history
opendj-sdk/opends/src/server/org/opends/server/backends/jeb/RootContainer.java 67 ●●●●● diff | view | raw | blame | history
opendj-sdk/opends/src/server/org/opends/server/messages/JebMessages.java 10 ●●●●● diff | view | raw | blame | history