| Modifier and Type | Field and Description |
|---|---|
| private int[] | addIndexes
The indexes into the new collection of the elements that were added. |
| private List | adds
The added stuff. |
| private int[][] | moveIndexPairs
The index pairs of the elements that were moved (before and after indexes). |
| private List | moves
The moved stuff. |
| private int[] | removeIndexes
The indexes into the old collection of the elements that were removed. |
| private List | removes
The removed stuff. |
| Access | Constructor and Description |
|---|---|
| public | EISOrderedCollectionChangeRecord(ObjectChangeSet owner, String attributeName, DatabaseMapping mapping)
Construct a ChangeRecord that can be used to represent the changes to an ordered collection. |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| public void | |
| private int[] | |
| private int[][] | |
| private void | |
| private Object | |
| public int[] | getAddIndexes()
Implements org. |
| public List | getAdds()
Implements org. |
| private int | getAddsIndexOf(Object changeSet)
Return the index in the adds of the specified change set, without triggering the instantiation of the collection. |
| private int | |
| private int | |
| private Object | |
| public int[][] | getMoveIndexPairs()
Implements org. |
| public List | getMoves()
Implements org. |
| private int | getMovesIndexOf(Object changeSet)
Return the index in the moves of the specified change set, without triggering the instantiation of the collection. |
| private int | |
| public List | getNewCollection()
Implements org. |
| private int | getNewCollectionSize()
Return the number of elements in the new collection, without triggering the instantiation of the collections. |
| private int | |
| public int[] | getRemoveIndexes()
Implements org. |
| public List | getRemoves()
Implements org. |
| private int | getRemovesIndexOf(Object changeSet)
Return the index in the removes of the specified change set, without triggering the instantiation of the collection. |
| private boolean | |
| public boolean | hasChanges()
Overrides org. Implements org. |
| private boolean | |
| private boolean | |
| private int[] | |
| private int[][] | |
| private boolean | removeMovedChangeSet(Object changeSet)
Attempt to remove the specified change set from the collection of moved change sets. |
| private boolean | |
| private void | setAddIndexes(int[] addIndexes)
Set the indexes into the new collection of the elements that were added. |
| private void | |
| private void | setRemoveIndexes(int[] removeIndexes)
Set the indexes into the old collection of the elements that were removed. |
| public void | |
| public void |
| addIndexes | back to summary |
|---|---|
| private int[] addIndexes The indexes into the new collection of the elements that were added. | |
| adds | back to summary |
|---|---|
| private List<E> adds The added stuff. | |
| moveIndexPairs | back to summary |
|---|---|
| private int[][] moveIndexPairs The index pairs of the elements that were moved (before and after indexes). | |
| moves | back to summary |
|---|---|
| private List<E> moves The moved stuff. | |
| removeIndexes | back to summary |
|---|---|
| private int[] removeIndexes The indexes into the old collection of the elements that were removed. | |
| removes | back to summary |
|---|---|
| private List<E> removes The removed stuff. | |
| EISOrderedCollectionChangeRecord | back to summary |
|---|---|
| public EISOrderedCollectionChangeRecord(ObjectChangeSet owner, String attributeName, DatabaseMapping mapping) Construct a ChangeRecord that can be used to represent the changes to an ordered collection. | |
| addAddedChangeSet | back to summary |
|---|---|
| public void addAddedChangeSet(Object changeSet, int index) Add an added change set. | |
| addMovedChangeSet | back to summary |
|---|---|
| public void addMovedChangeSet(Object changeSet, int oldIndex, int newIndex) Add an moved change set. | |
| addRemovedChangeSet | back to summary |
|---|---|
| public void addRemovedChangeSet(Object changeSet, int index) Add an removed change set. | |
| addTo | back to summary |
|---|---|
| private int[] addTo(int newInt, int[] oldArray) Add the int to the end of the array. Return the new array. | |
| addTo | back to summary |
|---|---|
| private int[][] addTo(int[] newInts, int[][] oldArray) Add the int[] to the end of the array. Return the new array. | |
| cancelAddedChangeSet | back to summary |
|---|---|
| private void cancelAddedChangeSet(Object changeSet) The specified change set was added earlier; cancel it out. | |
| getAdd | back to summary |
|---|---|
| private Object getAdd(int index) Return the specified add. | |
| getAddIndexes | back to summary |
|---|---|
| public int[] getAddIndexes() Implements org. ADVANCED: Return the indexes into the new collection of the elements that were added.
| |
| getAdds | back to summary |
|---|---|
| public List Implements org. ADVANCED: Return the entries for all the elements added to the new collection. The contents of this collection is determined by the mapping that populated it
| |
| getAddsIndexOf | back to summary |
|---|---|
| private int getAddsIndexOf(Object changeSet) Return the index in the adds of the specified change set, without triggering the instantiation of the collection. | |
| getAddsSize | back to summary |
|---|---|
| private int getAddsSize() Return the number of adds, without triggering the instantiation of the collection. | |
| getBeforeMoveIndex | back to summary |
|---|---|
| private int getBeforeMoveIndex(int index) Return the specified "before" move index. | |
| getMove | back to summary |
|---|---|
| private Object getMove(int index) Return the specified move. | |
| getMoveIndexPairs | back to summary |
|---|---|
| public int[][] getMoveIndexPairs() Implements org. ADVANCED: Return the indexes of the elements that were simply moved within the collection. Each element in the outer array is another two-element array where the first entry [0] is the index of the object in the old collection and the second entry [1] is the index of the object in the new collection. These two indexes can be equal.
| |
| getMoves | back to summary |
|---|---|
| public List Implements org. ADVANCED: Return the entries for all the elements that were simply shuffled within the collection. The contents of this collection is determined by the mapping that populated it
| |
| getMovesIndexOf | back to summary |
|---|---|
| private int getMovesIndexOf(Object changeSet) Return the index in the moves of the specified change set, without triggering the instantiation of the collection. | |
| getMovesSize | back to summary |
|---|---|
| private int getMovesSize() Return the number of moves, without triggering the instantiation of the collection. | |
| getNewCollection | back to summary |
|---|---|
| public List Implements org. ADVANCED: Return the entries for all the elements in the new collection. The contents of this collection is determined by the mapping that populated it
| |
| getNewCollectionSize | back to summary |
|---|---|
| private int getNewCollectionSize() Return the number of elements in the new collection, without triggering the instantiation of the collections. | |
| getRemoveIndex | back to summary |
|---|---|
| private int getRemoveIndex(int index) Return the specified remove index. | |
| getRemoveIndexes | back to summary |
|---|---|
| public int[] getRemoveIndexes() Implements org. ADVANCED: Return the indexes into the old collection of the elements that were removed.
| |
| getRemoves | back to summary |
|---|---|
| public List Implements org. ADVANCED: Return the entries for all the elements removed from the old collection. The contents of this collection is determined by the mapping that populated it
| |
| getRemovesIndexOf | back to summary |
|---|---|
| private int getRemovesIndexOf(Object changeSet) Return the index in the removes of the specified change set, without triggering the instantiation of the collection. | |
| hasAdds | back to summary |
|---|---|
| private boolean hasAdds() Return whether any adds have been recorded with the change record. Directly reference the instance variable, so as to not trigger the lazy instantiation. | |
| hasChanges | back to summary |
|---|---|
| public boolean hasChanges() Overrides org. Implements org. Return whether any changes have been recorded with the change record.
| |
| hasMoves | back to summary |
|---|---|
| private boolean hasMoves() Return whether any moves have been recorded with the change record. Directly reference the instance variable, so as to not trigger the lazy instantiation. | |
| hasRemoves | back to summary |
|---|---|
| private boolean hasRemoves() Return whether any removes have been recorded with the change record. Directly reference the instance variable, so as to not trigger the lazy instantiation. | |
| removeFrom | back to summary |
|---|---|
| private int[] removeFrom(int removeIndex, int[] oldArray) Remove the specified slot from the array. Return the new array. | |
| removeFrom | back to summary |
|---|---|
| private int[][] removeFrom(int removeIndex, int[][] oldArray) Remove the specified slot from the array. Return the new array. | |
| removeMovedChangeSet | back to summary |
|---|---|
| private boolean removeMovedChangeSet(Object changeSet) Attempt to remove the specified change set from the collection of moved change sets. Return true if the change set was moved earlier and was successfully removed. | |
| restoreRemovedChangeSet | back to summary |
|---|---|
| private boolean restoreRemovedChangeSet(Object changeSet) Attempt to restore the specified change set. Return true if the change set was removed earlier and was successfully restored to the end of the collection. | |
| setAddIndexes | back to summary |
|---|---|
| private void setAddIndexes(int[] addIndexes) Set the indexes into the new collection of the elements that were added. | |
| setMoveIndexPairs | back to summary |
|---|---|
| private void setMoveIndexPairs(int[][] moveIndexPairs) Set the indexes of the elements that were moved. | |
| setRemoveIndexes | back to summary |
|---|---|
| private void setRemoveIndexes(int[] removeIndexes) Set the indexes into the old collection of the elements that were removed. | |
| simpleAddChangeSet | back to summary |
|---|---|
| public void simpleAddChangeSet(Object changeSet) Add a change set after it has been applied. | |
| simpleRemoveChangeSet | back to summary |
|---|---|
| public void simpleRemoveChangeSet(Object changeSet) Remove a change set after it has been applied. | |