Tabnine Logo
EISOneToManyMappingHelper.getRealCollectionAttributeValueFromObject
Code IndexAdd Tabnine to your IDE (free)

How to use
getRealCollectionAttributeValueFromObject
method
in
org.eclipse.persistence.eis.mappings.EISOneToManyMappingHelper

Best Java code snippets using org.eclipse.persistence.eis.mappings.EISOneToManyMappingHelper.getRealCollectionAttributeValueFromObject (Showing top 12 results out of 315)

origin: com.haulmont.thirdparty/eclipselink

/**
 * INTERNAL:
 * Compare the attributes belonging to this mapping for the objects.
 */
public boolean compareObjects(Object object1, Object object2, AbstractSession session) {
  return this.compareAttributeValues(this.getRealCollectionAttributeValueFromObject(object1, session), this.getRealCollectionAttributeValueFromObject(object2, session), session);
}
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

/**
 * INTERNAL:
 * Compare the attributes belonging to this mapping for the objects.
 */
public boolean compareObjects(Object object1, Object object2, AbstractSession session) {
  return this.compareAttributeValues(this.getRealCollectionAttributeValueFromObject(object1, session), this.getRealCollectionAttributeValueFromObject(object2, session), session);
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

/**
 * INTERNAL:
 * Compare the attributes belonging to this mapping for the objects.
 */
public boolean compareObjects(Object object1, Object object2, AbstractSession session) {
  return this.compareAttributeValues(this.getRealCollectionAttributeValueFromObject(object1, session), this.getRealCollectionAttributeValueFromObject(object2, session), session);
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

/**
 * INTERNAL:
 * Build and return the change record that results
 * from comparing the two collection attributes.
 */
public ChangeRecord compareForChange(Object clone, Object backup, ObjectChangeSet owner, AbstractSession session) {
  ContainerPolicy cp = this.getContainerPolicy();
  Object cloneCollection = this.getRealCollectionAttributeValueFromObject(clone, session);
  Object backupCollection = null;
  if (owner.isNew()) {
    backupCollection = cp.containerInstance(1);
  } else {
    backupCollection = this.getRealCollectionAttributeValueFromObject(backup, session);
  }
  if (cp.hasOrder()) {
    return this.compareAttributeValuesForChangeWithOrder(cloneCollection, backupCollection, owner, session);
  } else {
    return this.compareAttributeValuesForChangeWithoutOrder(cloneCollection, backupCollection, owner, session);
  }
}
origin: com.haulmont.thirdparty/eclipselink

/**
 * INTERNAL:
 * Build and return the change record that results
 * from comparing the two collection attributes.
 */
public ChangeRecord compareForChange(Object clone, Object backup, ObjectChangeSet owner, AbstractSession session) {
  ContainerPolicy cp = this.getContainerPolicy();
  Object cloneCollection = this.getRealCollectionAttributeValueFromObject(clone, session);
  Object backupCollection = null;
  if (owner.isNew()) {
    backupCollection = cp.containerInstance(1);
  } else {
    backupCollection = this.getRealCollectionAttributeValueFromObject(backup, session);
  }
  if (cp.hasOrder()) {
    return this.compareAttributeValuesForChangeWithOrder(cloneCollection, backupCollection, owner, session);
  } else {
    return this.compareAttributeValuesForChangeWithoutOrder(cloneCollection, backupCollection, owner, session);
  }
}
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

/**
 * INTERNAL:
 * Build and return the change record that results
 * from comparing the two collection attributes.
 */
public ChangeRecord compareForChange(Object clone, Object backup, ObjectChangeSet owner, AbstractSession session) {
  ContainerPolicy cp = this.getContainerPolicy();
  Object cloneCollection = this.getRealCollectionAttributeValueFromObject(clone, session);
  Object backupCollection = null;
  if (owner.isNew()) {
    backupCollection = cp.containerInstance(1);
  } else {
    backupCollection = this.getRealCollectionAttributeValueFromObject(backup, session);
  }
  if (cp.hasOrder()) {
    return this.compareAttributeValuesForChangeWithOrder(cloneCollection, backupCollection, owner, session);
  } else {
    return this.compareAttributeValuesForChangeWithoutOrder(cloneCollection, backupCollection, owner, session);
  }
}
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

  targetCollection = cp.containerInstance(sdkChangeRecord.getAdds().size());
} else {
  targetCollection = this.getRealCollectionAttributeValueFromObject(target, session);
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

/**
 * INTERNAL:
 * Merge changes from the source to the target object.
 * Simply replace the entire target collection.
 */
public void mergeIntoObject(Object target, boolean isTargetUnInitialized, Object source, MergeManager mergeManager) {
  ContainerPolicy cp = this.getContainerPolicy();
  AbstractSession session = mergeManager.getSession();
  Object sourceCollection = this.getRealCollectionAttributeValueFromObject(source, session);
  Object targetCollection = cp.containerInstance(cp.sizeFor(sourceCollection));
  for (Object iter = cp.iteratorFor(sourceCollection); cp.hasNext(iter);) {
    Object targetElement = this.buildElementFromElement(cp.next(iter, session), mergeManager);
    cp.addInto(targetElement, targetCollection, session);
  }
  // reset the attribute to allow for set method to re-morph changes if the collection is not being stored directly
  this.setRealAttributeValueInObject(target, targetCollection);
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

/**
 * INTERNAL:
 * Merge changes from the source to the target object.
 * Simply replace the entire target collection.
 */
public void mergeIntoObject(Object target, boolean isTargetUnInitialized, Object source, MergeManager mergeManager, AbstractSession targetSession) {
  ContainerPolicy cp = this.getContainerPolicy();
  AbstractSession session = mergeManager.getSession();
  Object sourceCollection = this.getRealCollectionAttributeValueFromObject(source, session);
  Object targetCollection = cp.containerInstance(cp.sizeFor(sourceCollection));
  for (Object iter = cp.iteratorFor(sourceCollection); cp.hasNext(iter);) {
    Object targetElement = this.buildElementFromElement(cp.next(iter, session), mergeManager, targetSession);
    cp.addInto(targetElement, targetCollection, session);
  }
  // reset the attribute to allow for set method to re-morph changes if the collection is not being stored directly
  setRealAttributeValueInObject(target, targetCollection);
}
origin: com.haulmont.thirdparty/eclipselink

/**
 * INTERNAL:
 * Merge changes from the source to the target object.
 * Simply replace the entire target collection.
 */
public void mergeIntoObject(Object target, boolean isTargetUnInitialized, Object source, MergeManager mergeManager, AbstractSession targetSession) {
  ContainerPolicy cp = this.getContainerPolicy();
  AbstractSession session = mergeManager.getSession();
  Object sourceCollection = this.getRealCollectionAttributeValueFromObject(source, session);
  Object targetCollection = cp.containerInstance(cp.sizeFor(sourceCollection));
  for (Object iter = cp.iteratorFor(sourceCollection); cp.hasNext(iter);) {
    Object targetElement = this.buildElementFromElement(cp.next(iter, session), mergeManager, targetSession);
    cp.addInto(targetElement, targetCollection, session);
  }
  // reset the attribute to allow for set method to re-morph changes if the collection is not being stored directly
  setRealAttributeValueInObject(target, targetCollection);
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

  targetCollection = cp.containerInstance(sdkChangeRecord.getAdds().size());
} else {
  targetCollection = this.getRealCollectionAttributeValueFromObject(target, session);
origin: com.haulmont.thirdparty/eclipselink

  targetCollection = cp.containerInstance(sdkChangeRecord.getAdds().size());
} else {
  targetCollection = this.getRealCollectionAttributeValueFromObject(target, session);
org.eclipse.persistence.eis.mappingsEISOneToManyMappingHelpergetRealCollectionAttributeValueFromObject

Javadoc

Convenience method.

Popular methods of EISOneToManyMappingHelper

  • <init>
    Constructor.
  • buildAddedElementFromChangeSet
    Convenience method.
  • buildChangeSet
    Convenience method.
  • buildElementFromElement
    Convenience method.
  • buildRemovedElementFromChangeSet
    Convenience method.
  • compareAttributeValues
    Compare the attributes. Return true if they are alike. Assume the passed-in attributes are non-null.
  • compareAttributeValuesForChangeWithOrder
    Build and return the change record that results from comparing the two collection attributes. The or
  • compareAttributeValuesForChangeWithoutOrder
    Build and return the change record that results from comparing the two collection attributes. Ignore
  • compareAttributeValuesWithOrder
    Compare the attributes. Return true if they are alike. The order of the elements is significant.
  • compareAttributeValuesWithoutOrder
    Compare the attributes. Return true if they are alike. Ignore the order of the elements.
  • compareElements
    Convenience method. Check for null values before delegating to the mapping.
  • compareElementsForChange
    Convenience method. Check for null values before delegating to the mapping.
  • compareElements,
  • compareElementsForChange,
  • compareForChange,
  • compareObjects,
  • getAttributeName,
  • getContainerPolicy,
  • getDatabaseMapping,
  • getMapping,
  • mapKeyHasChanged

Popular in Java

  • Running tasks concurrently on multiple threads
  • scheduleAtFixedRate (ScheduledExecutorService)
  • addToBackStack (FragmentTransaction)
  • getContentResolver (Context)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • FileOutputStream (java.io)
    An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • 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