|
EclipseLink 1.1.0_ 1.1.0.r3634 API Reference | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.persistence.internal.sessions.ChangeRecord
org.eclipse.persistence.internal.sessions.DeferrableChangeRecord
org.eclipse.persistence.internal.sessions.CollectionChangeRecord
org.eclipse.persistence.eis.EISOrderedCollectionChangeRecord
public class EISOrderedCollectionChangeRecord
INTERNAL: Capture the changes for an ordered collection where the entire collection is simply replaced if it has changed.
| Field Summary |
|---|
| Fields inherited from class org.eclipse.persistence.internal.sessions.CollectionChangeRecord |
|---|
addObjectList, addOverFlow, orderedAddObjectIndices, orderedAddObjects, orderedChangeObjectList, orderedRemoveObjectIndices, orderedRemoveObjects, removeObjectList |
| Fields inherited from class org.eclipse.persistence.internal.sessions.DeferrableChangeRecord |
|---|
isDeferred, latestCollection, originalCollection |
| Fields inherited from class org.eclipse.persistence.internal.sessions.ChangeRecord |
|---|
attribute, mapping, owner |
| Constructor Summary | |
|---|---|
EISOrderedCollectionChangeRecord(org.eclipse.persistence.internal.sessions.ObjectChangeSet owner,
java.lang.String attributeName,
DatabaseMapping mapping)
Construct a ChangeRecord that can be used to represent the changes to an ordered collection. |
|
| Method Summary | |
|---|---|
void |
addAddedChangeSet(java.lang.Object changeSet,
int index)
Add an added change set. |
void |
addMovedChangeSet(java.lang.Object changeSet,
int oldIndex,
int newIndex)
Add an moved change set. |
void |
addRemovedChangeSet(java.lang.Object changeSet,
int index)
Add an removed change set. |
int[] |
getAddIndexes()
ADVANCED: Return the indexes into the new collection of the elements that were added. |
java.util.Vector |
getAdds()
ADVANCED: Return the entries for all the elements added to the new collection. |
int[][] |
getMoveIndexPairs()
ADVANCED: Return the indexes of the elements that were simply moved within the collection. |
java.util.Vector |
getMoves()
ADVANCED: Return the entries for all the elements that were simply shuffled within the collection. |
java.util.Vector |
getNewCollection()
ADVANCED: Return the entries for all the elements in the new collection. |
int[] |
getRemoveIndexes()
ADVANCED: Return the indexes into the old collection of the elements that were removed. |
java.util.Vector |
getRemoves()
ADVANCED: Return the entries for all the elements removed from the old collection. |
boolean |
hasChanges()
Return whether any changes have been recorded with the change record. |
void |
simpleAddChangeSet(java.lang.Object changeSet)
Add a change set after it has been applied. |
void |
simpleRemoveChangeSet(java.lang.Object changeSet)
Remove a change set after it has been applied. |
| Methods inherited from class org.eclipse.persistence.internal.sessions.CollectionChangeRecord |
|---|
addAdditionChange, addOrderedAdditionChange, addOrderedRemoveChange, addRemoveChange, getAddObjectList, getAddOverFlow, getOrderedAddObjectIndex, getOrderedAddObjectIndices, getOrderedAddObjects, getOrderedChangeObjectList, getOrderedRemoveObject, getOrderedRemoveObjectIndices, getOrderedRemoveObjects, getRemoveObjectList, mergeRecord, prepareForSynchronization, setAddObjectList, setOrderedAddObjectIndices, setOrderedAddObjects, setOrderedChangeObjectList, setOrderedRemoveObjects, setRemoveObjectList, updateReferences |
| Methods inherited from class org.eclipse.persistence.internal.sessions.DeferrableChangeRecord |
|---|
getLatestCollection, getOriginalCollection, isDeferred, setIsDeferred, setLatestCollection, setOriginalCollection |
| Methods inherited from class org.eclipse.persistence.internal.sessions.ChangeRecord |
|---|
getAttribute, getMapping, getOwner, setAttribute, setMapping, setOwner, toString, updateChangeRecordWithNewValue |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.eclipse.persistence.sessions.changesets.ChangeRecord |
|---|
getAttribute, getOwner |
| Constructor Detail |
|---|
public EISOrderedCollectionChangeRecord(org.eclipse.persistence.internal.sessions.ObjectChangeSet owner,
java.lang.String attributeName,
DatabaseMapping mapping)
| Method Detail |
|---|
public void addAddedChangeSet(java.lang.Object changeSet,
int index)
public void addMovedChangeSet(java.lang.Object changeSet,
int oldIndex,
int newIndex)
public void addRemovedChangeSet(java.lang.Object changeSet,
int index)
public int[] getAddIndexes()
getAddIndexes in interface EISOrderedCollectionChangeRecordpublic java.util.Vector getAdds()
getAdds in interface EISOrderedCollectionChangeRecordpublic int[][] getMoveIndexPairs()
getMoveIndexPairs in interface EISOrderedCollectionChangeRecordpublic java.util.Vector getMoves()
getMoves in interface EISOrderedCollectionChangeRecordpublic java.util.Vector getNewCollection()
getNewCollection in interface EISOrderedCollectionChangeRecordpublic int[] getRemoveIndexes()
getRemoveIndexes in interface EISOrderedCollectionChangeRecordpublic java.util.Vector getRemoves()
getRemoves in interface EISOrderedCollectionChangeRecordpublic boolean hasChanges()
hasChanges in interface CollectionChangeRecordhasChanges in interface EISOrderedCollectionChangeRecordhasChanges in class org.eclipse.persistence.internal.sessions.CollectionChangeRecordpublic void simpleAddChangeSet(java.lang.Object changeSet)
public void simpleRemoveChangeSet(java.lang.Object changeSet)
|
EclipseLink 1.1.0_ 1.1.0.r3634 API Reference | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||