congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
EISCollectionChangeRecord
Code IndexAdd Tabnine to your IDE (free)

How to use
EISCollectionChangeRecord
in
org.eclipse.persistence.eis

Best Java code snippets using org.eclipse.persistence.eis.EISCollectionChangeRecord (Showing top 20 results out of 315)

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

/**
 * Add a change set after it has been applied.
 */
public void simpleAddChangeSet(Object changeSet) {
  // check whether the change set was removed earlier
  if (!this.removeRemovedChangeSet(changeSet)) {
    this.addAddedChangeSet(changeSet);
  }
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

  /**
   * Remove a change set after it has been applied.
   */
  public void simpleRemoveChangeSet(Object changeSet) {
    // check whether the change set was added earlier
    if (!removeAddedChangeSet(changeSet)) {
      addRemovedChangeSet(changeSet);
    }
  }
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

/**
 * Add an added change set.
 */
public void addAddedChangeSet(Object changeSet) {
  getAdds().add(changeSet);
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

/**
 * Return whether any changes have been recorded with the change record.
 */
public boolean hasChanges() {
  return hasAdds() || hasRemoves() || hasChangedMapKeys() || getOwner().isNew();
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

EISCollectionChangeRecord changeRecord = new EISCollectionChangeRecord(owner, getAttributeName(), this.getDatabaseMapping());
for (Object cloneIter = cp.iteratorFor(cloneCollection); cp.hasNext(cloneIter);) {
  Object cloneElement = cp.next(cloneIter, session);
        changeRecord.addChangedMapKeyChangeSet(this.buildChangeSet(cloneElement, owner, session));
    changeRecord.addAddedChangeSet(this.buildChangeSet(cloneElement, owner, session));
  if (backupElement != XXX) {
    changeRecord.addRemovedChangeSet(this.buildChangeSet(backupElement, owner, session));
if (changeRecord.hasChanges()) {
  return changeRecord;
} else {
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

if (sdkChangeRecord.getOwner().isNew()) {
  targetCollection = cp.containerInstance(sdkChangeRecord.getAdds().size());
} else {
  targetCollection = this.getRealCollectionAttributeValueFromObject(target, session);
Vector removes = sdkChangeRecord.getRemoves();
Vector adds = sdkChangeRecord.getAdds();
Vector changedMapKeys = sdkChangeRecord.getChangedMapKeys();
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

  /**
   * Remove stuff from an unordered collection.
   */
  private void simpleRemoveFromCollectionChangeRecordWithoutOrder(Object referenceKey, Object changeSetToRemove, ObjectChangeSet changeSet, AbstractSession session) {
    EISCollectionChangeRecord changeRecord = (EISCollectionChangeRecord)changeSet.getChangesForAttributeNamed(this.getAttributeName());
    if (changeRecord == null) {
      changeRecord = new EISCollectionChangeRecord(changeSet, this.getAttributeName(), this.getDatabaseMapping());
      changeSet.addChange(changeRecord);
    }
    changeRecord.simpleRemoveChangeSet(changeSetToRemove);
  }
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

/**
 * Add stuff to an unordered collection.
 */
private void simpleAddToCollectionChangeRecordWithoutOrder(Object referenceKey, Object changeSetToAdd, ObjectChangeSet changeSet, AbstractSession session) {
  EISCollectionChangeRecord changeRecord = (EISCollectionChangeRecord)changeSet.getChangesForAttributeNamed(getAttributeName());
  if (changeRecord == null) {
    changeRecord = new EISCollectionChangeRecord(changeSet, getAttributeName(), getDatabaseMapping());
    changeSet.addChange(changeRecord);
  }
  changeRecord.simpleAddChangeSet(changeSetToAdd);
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

/**
 * Add an changed key change set.
 */
public void addChangedMapKeyChangeSet(Object changeSet) {
  getChangedMapKeys().add(changeSet);
}
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

/**
 * Add an removed change set.
 */
public void addRemovedChangeSet(Object changeSet) {
  this.getRemoves().addElement(changeSet);
}
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

EISCollectionChangeRecord changeRecord = new EISCollectionChangeRecord(owner, this.getAttributeName(), this.getDatabaseMapping());
for (Object cloneIter = cp.iteratorFor(cloneCollection); cp.hasNext(cloneIter);) {
  Object cloneElement = cp.next(cloneIter, session);
        changeRecord.addChangedMapKeyChangeSet(this.buildChangeSet(cloneElement, owner, session));
    changeRecord.addAddedChangeSet(this.buildChangeSet(cloneElement, owner, session));
  if (backupElement != XXX) {
    changeRecord.addRemovedChangeSet(this.buildChangeSet(backupElement, owner, session));
if (changeRecord.hasChanges()) {
  return changeRecord;
} else {
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

if (sdkChangeRecord.getOwner().isNew()) {
  targetCollection = cp.containerInstance(sdkChangeRecord.getAdds().size());
} else {
  targetCollection = this.getRealCollectionAttributeValueFromObject(target, session);
Vector removes = sdkChangeRecord.getRemoves();
Vector adds = sdkChangeRecord.getAdds();
Vector changedMapKeys = sdkChangeRecord.getChangedMapKeys();
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

/**
 * Return whether any changes have been recorded with the change record.
 */
public boolean hasChanges() {
  return this.hasAdds() || this.hasRemoves() || this.hasChangedMapKeys() || this.getOwner().isNew();
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

  /**
   * Remove stuff from an unordered collection.
   */
  private void simpleRemoveFromCollectionChangeRecordWithoutOrder(Object referenceKey, Object changeSetToRemove, ObjectChangeSet changeSet, AbstractSession session) {
    EISCollectionChangeRecord changeRecord = (EISCollectionChangeRecord)changeSet.getChangesForAttributeNamed(this.getAttributeName());
    if (changeRecord == null) {
      changeRecord = new EISCollectionChangeRecord(changeSet, this.getAttributeName(), this.getDatabaseMapping());
      changeSet.addChange(changeRecord);
    }
    changeRecord.simpleRemoveChangeSet(changeSetToRemove);
  }
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

/**
 * Add stuff to an unordered collection.
 */
private void simpleAddToCollectionChangeRecordWithoutOrder(Object referenceKey, Object changeSetToAdd, ObjectChangeSet changeSet, AbstractSession session) {
  EISCollectionChangeRecord changeRecord = (EISCollectionChangeRecord)changeSet.getChangesForAttributeNamed(this.getAttributeName());
  if (changeRecord == null) {
    changeRecord = new EISCollectionChangeRecord(changeSet, this.getAttributeName(), this.getDatabaseMapping());
    changeSet.addChange(changeRecord);
  }
  changeRecord.simpleAddChangeSet(changeSetToAdd);
}
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

/**
 * Add an changed key change set.
 */
public void addChangedMapKeyChangeSet(Object changeSet) {
  this.getChangedMapKeys().addElement(changeSet);
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

/**
 * Add an removed change set.
 */
public void addRemovedChangeSet(Object changeSet) {
  getRemoves().add(changeSet);
}
origin: com.haulmont.thirdparty/eclipselink

EISCollectionChangeRecord changeRecord = new EISCollectionChangeRecord(owner, getAttributeName(), this.getDatabaseMapping());
for (Object cloneIter = cp.iteratorFor(cloneCollection); cp.hasNext(cloneIter);) {
  Object cloneElement = cp.next(cloneIter, session);
        changeRecord.addChangedMapKeyChangeSet(this.buildChangeSet(cloneElement, owner, session));
    changeRecord.addAddedChangeSet(this.buildChangeSet(cloneElement, owner, session));
  if (backupElement != XXX) {
    changeRecord.addRemovedChangeSet(this.buildChangeSet(backupElement, owner, session));
if (changeRecord.hasChanges()) {
  return changeRecord;
} else {
origin: com.haulmont.thirdparty/eclipselink

if (sdkChangeRecord.getOwner().isNew()) {
  targetCollection = cp.containerInstance(sdkChangeRecord.getAdds().size());
} else {
  targetCollection = getRealCollectionAttributeValueFromObject(target, session);
List removes = sdkChangeRecord.getRemoves();
List adds = sdkChangeRecord.getAdds();
List changedMapKeys = sdkChangeRecord.getChangedMapKeys();
origin: com.haulmont.thirdparty/eclipselink

/**
 * Return whether any changes have been recorded with the change record.
 */
public boolean hasChanges() {
  return hasAdds() || hasRemoves() || hasChangedMapKeys() || getOwner().isNew();
}
org.eclipse.persistence.eisEISCollectionChangeRecord

Javadoc

INTERNAL: Capture the changes for an unordered collection as collections of adds and removes.

Most used methods

  • <init>
    Construct a ChangeRecord that can be used to represent the changes to an unordered collection.
  • addAddedChangeSet
    Add an added change set.
  • addChangedMapKeyChangeSet
    Add an changed key change set.
  • addRemovedChangeSet
    Add an removed change set.
  • getAdds
    ADVANCED: Return the added stuff. The contents of this collection is determined by the mapping that
  • getChangedMapKeys
    ADVANCED: Return the stuff whose Map keys have changed. The contents of this collection is determine
  • getOwner
  • getRemoves
    ADVANCED: Return the removed stuff. The contents of this collection is determined by the mapping tha
  • hasAdds
    Return whether any adds have been recorded with the change record. Directly reference the instance v
  • hasChangedMapKeys
    Return whether any changed map keys have been recorded with the change record. Directly reference th
  • hasChanges
    Return whether any changes have been recorded with the change record.
  • hasRemoves
    Return whether any removes have been recorded with the change record. Directly reference the instanc
  • hasChanges,
  • hasRemoves,
  • removeAddedChangeSet,
  • removeRemovedChangeSet,
  • simpleAddChangeSet,
  • simpleRemoveChangeSet

Popular in Java

  • Start an intent from android
  • startActivity (Activity)
  • getResourceAsStream (ClassLoader)
  • requestLocationUpdates (LocationManager)
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • BigInteger (java.math)
    An immutable arbitrary-precision signed integer.FAST CRYPTOGRAPHY This implementation is efficient f
  • Stack (java.util)
    Stack is a Last-In/First-Out(LIFO) data structure which represents a stack of objects. It enables u
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registry of org.quartz.Job
  • 21 Best IntelliJ Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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