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

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

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

origin: org.eclipse.persistence/org.eclipse.persistence.core

/**
 * Return the specified "before" move index.
 */
private int getBeforeMoveIndex(int index) {
  int[][] pairs = getMoveIndexPairs();
  return pairs[index][0];
}
origin: com.haulmont.thirdparty/eclipselink

/**
 * Return the specified "before" move index.
 */
private int getBeforeMoveIndex(int index) {
  int[][] pairs = getMoveIndexPairs();
  return pairs[index][0];
}
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

/**
 * Return the specified "before" move index.
 */
private int getBeforeMoveIndex(int index) {
  int[][] pairs = getMoveIndexPairs();
  return pairs[index][0];
}
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/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: 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()));
}
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

/**
 * 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/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;
}
org.eclipse.persistence.eisEISOrderedCollectionChangeRecordgetMoveIndexPairs

Javadoc

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.

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,
  • getMoves,
  • getMovesIndexOf,
  • getMovesSize,
  • getNewCollection,
  • getNewCollectionSize,
  • getOwner

Popular in Java

  • Making http requests using okhttp
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getExternalFilesDir (Context)
  • getSystemService (Context)
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • ResourceBundle (java.util)
    ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
  • JCheckBox (javax.swing)
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
  • Best plugins for Eclipse
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