Tabnine Logo
EISOrderedCollectionChangeRecord.getMoves
Code IndexAdd Tabnine to your IDE (free)

How to use
getMoves
method
in
org.eclipse.persistence.eis.EISOrderedCollectionChangeRecord

Best Java code snippets using org.eclipse.persistence.eis.EISOrderedCollectionChangeRecord.getMoves (Showing top 9 results out of 315)

origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

/**
 * Return the specified move.
 */
private Object getMove(int index) {
  return this.getMoves().get(index);
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

/**
 * 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.
 */
private boolean removeMovedChangeSet(Object changeSet) {
  int changeSetIndex = this.getMovesIndexOf(changeSet);
  if (changeSetIndex == -1) {
    return false;
  }
  this.getMoves().remove(changeSetIndex);
  int beforeMoveIndex = this.getBeforeMoveIndex(changeSetIndex);
  this.setMoveIndexPairs(this.removeFrom(changeSetIndex, this.getMoveIndexPairs()));
  // now move the change set over to the collection of removes
  this.addRemovedChangeSet(changeSet, beforeMoveIndex);
  return true;
}
origin: com.haulmont.thirdparty/eclipselink

/**
 * 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.
 */
private boolean removeMovedChangeSet(Object changeSet) {
  int changeSetIndex = this.getMovesIndexOf(changeSet);
  if (changeSetIndex == -1) {
    return false;
  }
  this.getMoves().remove(changeSetIndex);
  int beforeMoveIndex = this.getBeforeMoveIndex(changeSetIndex);
  this.setMoveIndexPairs(this.removeFrom(changeSetIndex, this.getMoveIndexPairs()));
  // now move the change set over to the collection of removes
  this.addRemovedChangeSet(changeSet, beforeMoveIndex);
  return true;
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

/**
 * Return the specified move.
 */
private Object getMove(int index) {
  return this.getMoves().get(index);
}
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

/**
 * 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.
 */
private boolean removeMovedChangeSet(Object changeSet) {
  int changeSetIndex = this.getMovesIndexOf(changeSet);
  if (changeSetIndex == -1) {
    return false;
  }
  this.getMoves().remove(changeSetIndex);
  int beforeMoveIndex = this.getBeforeMoveIndex(changeSetIndex);
  this.setMoveIndexPairs(this.removeFrom(changeSetIndex, this.getMoveIndexPairs()));
  // now move the change set over to the collection of removes
  this.addRemovedChangeSet(changeSet, beforeMoveIndex);
  return true;
}
origin: com.haulmont.thirdparty/eclipselink

/**
 * Return the specified move.
 */
private Object getMove(int index) {
  return this.getMoves().get(index);
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

/**
 * Add an moved change set.
 */
public void addMovedChangeSet(Object changeSet, int oldIndex, int newIndex) {
  getMoves().add(changeSet);
  int[] pair = new int[2];
  pair[0] = oldIndex;
  pair[1] = newIndex;
  setMoveIndexPairs(this.addTo(pair, getMoveIndexPairs()));
}
origin: com.haulmont.thirdparty/eclipselink

/**
 * Add an moved change set.
 */
public void addMovedChangeSet(Object changeSet, int oldIndex, int newIndex) {
  getMoves().add(changeSet);
  int[] pair = new int[2];
  pair[0] = oldIndex;
  pair[1] = newIndex;
  setMoveIndexPairs(this.addTo(pair, getMoveIndexPairs()));
}
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

/**
 * Add an moved change set.
 */
public void addMovedChangeSet(Object changeSet, int oldIndex, int newIndex) {
  this.getMoves().addElement(changeSet);
  int[] pair = new int[2];
  pair[0] = oldIndex;
  pair[1] = newIndex;
  this.setMoveIndexPairs(this.addTo(pair, this.getMoveIndexPairs()));
}
org.eclipse.persistence.eisEISOrderedCollectionChangeRecordgetMoves

Javadoc

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

Popular methods of EISOrderedCollectionChangeRecord

  • <init>
    Construct a ChangeRecord that can be used to represent the changes to an ordered collection.
  • addAddedChangeSet
    Add an added change set.
  • addMovedChangeSet
    Add an moved change set.
  • addRemovedChangeSet
    Add an removed change set.
  • addTo
    Add the int[] to the end of the array. Return the new array.
  • cancelAddedChangeSet
    The specified change set was added earlier; cancel it out.
  • getAdd
    Return the specified add.
  • getAddIndexes
    ADVANCED: Return the indexes into the new collection of the elements that were added.
  • getAdds
    ADVANCED: Return the entries for all the elements added to the new collection. The contents of this
  • getAddsIndexOf
    Return the index in the adds of the specified change set, without triggering the instantiation of th
  • getAddsSize
    Return the number of adds, without triggering the instantiation of the collection.
  • getBeforeMoveIndex
    Return the specified "before" move index.
  • getAddsSize,
  • getBeforeMoveIndex,
  • getMove,
  • getMoveIndexPairs,
  • getMovesIndexOf,
  • getMovesSize,
  • getNewCollection,
  • getNewCollectionSize,
  • getOwner

Popular in Java

  • Reading from database using SQL prepared statement
  • setContentView (Activity)
  • getSharedPreferences (Context)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • JList (javax.swing)
  • From CI to AI: The AI layer in your organization
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now