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

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

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

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

/**
 * Merge changes from the source to the target object.
 * Simply replace the entire target collection.
 */
private void mergeChangesIntoObjectWithOrder(Object target, ChangeRecord changeRecord, Object source, MergeManager mergeManager) {
  ContainerPolicy cp = this.getContainerPolicy();
  AbstractSession session = mergeManager.getSession();
  Vector changes = ((EISOrderedCollectionChangeRecord)changeRecord).getNewCollection();
  Object targetCollection = cp.containerInstance(changes.size());
  for (Enumeration stream = changes.elements(); stream.hasMoreElements();) {
    Object targetElement = this.buildAddedElementFromChangeSet(stream.nextElement(), 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

/**
 * Merge changes from the source to the target object.
 * Simply replace the entire target collection.
 */
private void mergeChangesIntoObjectWithOrder(Object target, ChangeRecord changeRecord, Object source, MergeManager mergeManager, AbstractSession targetSession) {
  ContainerPolicy cp = this.getContainerPolicy();
  AbstractSession session = mergeManager.getSession();
  List changes = ((EISOrderedCollectionChangeRecord)changeRecord).getNewCollection();
  Object targetCollection = cp.containerInstance(changes.size());
  for (Object changed : changes) {
    Object targetElement = buildAddedElementFromChangeSet(changed, 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
  this.setRealAttributeValueInObject(target, targetCollection);
}
origin: com.haulmont.thirdparty/eclipselink

/**
 * Merge changes from the source to the target object.
 * Simply replace the entire target collection.
 */
private void mergeChangesIntoObjectWithOrder(Object target, ChangeRecord changeRecord, Object source, MergeManager mergeManager, AbstractSession targetSession) {
  ContainerPolicy cp = this.getContainerPolicy();
  AbstractSession session = mergeManager.getSession();
  List changes = ((EISOrderedCollectionChangeRecord)changeRecord).getNewCollection();
  Object targetCollection = cp.containerInstance(changes.size());
  for (Object changed : changes) {
    Object targetElement = buildAddedElementFromChangeSet(changed, 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
  this.setRealAttributeValueInObject(target, targetCollection);
}
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

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/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

setRealAttributeValueInObject(target, targetCollection);
origin: com.haulmont.thirdparty/eclipselink

setRealAttributeValueInObject(target, targetCollection);
org.eclipse.persistence.eis.mappingsEISOneToManyMappingHelpersetRealAttributeValueInObject

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,
  • getRealCollectionAttributeValueFromObject,
  • mapKeyHasChanged

Popular in Java

  • Finding current android device location
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getApplicationContext (Context)
  • setRequestProperty (URLConnection)
  • DecimalFormat (java.text)
    A concrete subclass of NumberFormat that formats decimal numbers. It has a variety of features desig
  • Iterator (java.util)
    An iterator over a sequence of objects, such as a collection.If a collection has been changed since
  • LinkedHashMap (java.util)
    LinkedHashMap is an implementation of Map that guarantees iteration order. All optional operations a
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • 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