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

boli
08.19.2006 5c3196a7dc35588f22aa086e4e5cf6a563ec0de0
refs
author boli <boli@localhost>
Wednesday, November 8, 2006 21:19 +0100
committer boli <boli@localhost>
Wednesday, November 8, 2006 21:19 +0100
commit5c3196a7dc35588f22aa086e4e5cf6a563ec0de0
tree 20e781a5ab259f743ca174b756921fb9fb433d88 tree | zip | gz
parent f3693fe7922554a35aae467f403b119c0c11677d 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
opends/src/server/org/opends/server/backends/jeb/BackendImpl.java 43 ●●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/backends/jeb/EntryContainer.java 62 ●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/backends/jeb/EntryID.java 43 ●●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/backends/jeb/EntryIDSet.java 4 ●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/backends/jeb/ImportJob.java 13 ●●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/backends/jeb/IndexIteratorAllIds.java 7 ●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/backends/jeb/RootContainer.java 67 ●●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/messages/JebMessages.java 10 ●●●●● diff | view | raw | blame | history