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

How to use
setCurrentMapping
method
in
org.eclipse.persistence.internal.descriptors.DescriptorIterator

Best Java code snippets using org.eclipse.persistence.internal.descriptors.DescriptorIterator.setCurrentMapping (Showing top 18 results out of 315)

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

/**
 * Iterate on the primitive value for its mapping.
 */
public void iteratePrimitiveForMapping(Object primitiveValue, DatabaseMapping mapping) {
  if (primitiveValue == null) {
    return;
  }
  setCurrentMapping(mapping);
  setCurrentDescriptor(null);
  if (shouldIterateOnPrimitives()) {// false by default
    internalIteratePrimitive(primitiveValue);
  }
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

/**
 * Iterate on the primitive value for its mapping.
 */
public void iteratePrimitiveForMapping(Object primitiveValue, DatabaseMapping mapping) {
  if (primitiveValue == null) {
    return;
  }
  setCurrentMapping(mapping);
  setCurrentDescriptor(null);
  if (shouldIterateOnPrimitives()) {// false by default
    AttributeGroup currentGroupOriginal = null;
    AttributeItem currentItemOriginal = null;
    if(this.usesGroup) {
      currentGroupOriginal = this.currentGroup;
      currentItemOriginal = this.currentItem;
      this.currentGroup = this.currentItem.getGroup();
    }
    internalIteratePrimitive(primitiveValue);
    if(this.usesGroup) {
      this.currentGroup = currentGroupOriginal;
      this.currentItem = currentItemOriginal;
    }
  }
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

setCurrentMapping(null);
setCurrentDescriptor(getSession().getDescriptor(sourceObject));
setCurrentItem(null);
origin: com.haulmont.thirdparty/eclipselink

/**
 * Iterate on the primitive value for its mapping.
 */
public void iteratePrimitiveForMapping(Object primitiveValue, DatabaseMapping mapping) {
  if (primitiveValue == null) {
    return;
  }
  setCurrentMapping(mapping);
  setCurrentDescriptor(null);
  if (shouldIterateOnPrimitives()) {// false by default
    AttributeGroup currentGroupOriginal = null;
    AttributeItem currentItemOriginal = null;
    if(this.usesGroup) {
      currentGroupOriginal = this.currentGroup;
      currentItemOriginal = this.currentItem;
      this.currentGroup = this.currentItem.getGroup();
    }
    internalIteratePrimitive(primitiveValue);
    
    if(this.usesGroup) {
      this.currentGroup = currentGroupOriginal;
      this.currentItem = currentItemOriginal;
    }
  }
}
origin: com.haulmont.thirdparty/eclipselink

setCurrentMapping(null);
setCurrentDescriptor(getSession().getDescriptor(sourceObject));
setCurrentItem(null);
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

/**
 * This is the root method called to start the iteration.
 */
public void startIterationOn(Object sourceObject) {
  if (getVisitedObjects().containsKey(sourceObject)) {
    return;
  }
  getVisitedObjects().put(sourceObject, sourceObject);
  setCurrentMapping(null);
  setCurrentDescriptor(getSession().getDescriptor(sourceObject));
  iterate(sourceObject);
  // start the recursion
  if ((getCurrentDescriptor() != null) && (!shouldCascadeNoParts())  && !this.shouldBreak()) {
    iterateReferenceObjects(sourceObject);
  }
}
 
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

/**
 * Iterate on the mapping's reference object and
 * recursively iterate on the reference object's
 * reference objects.
 * This is used for aggregate and aggregate collection mappings, which are not iterated on by default.
 */
public void iterateForAggregateMapping(Object aggregateObject, DatabaseMapping mapping, ClassDescriptor descriptor) {
  if (aggregateObject == null) {
    return;
  }
  setCurrentMapping(mapping);
  // aggregate descriptors are passed in because they could be part of an inheritance tree
  setCurrentDescriptor(descriptor);
  if (shouldIterateOnAggregates()) {// false by default
    internalIterateAggregateObject(aggregateObject);
    if (shouldBreak()) {
      setShouldBreak(false);
      return;
    }
  }
  iterateReferenceObjects(aggregateObject);
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

/**
 * Iterate on the value holder for its mapping.
 */
public void iterateValueHolderForMapping(ValueHolderInterface valueHolder, DatabaseMapping mapping) {
  setCurrentMapping(mapping);
  setCurrentDescriptor(null);
  if (shouldIterateOnIndirectionObjects()) {// false by default
    internalIterateValueHolder(valueHolder);
  }
  if (shouldIterateOverUninstantiatedIndirectionObjects() || (shouldIterateOverIndirectionObjects() && valueHolder.isInstantiated())) {
    // force instantiation only if specified
    mapping.iterateOnRealAttributeValue(this, valueHolder.getValue());
  }
}
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

/**
 * Iterate on the value holder for its mapping.
 */
public void iterateValueHolderForMapping(ValueHolderInterface valueHolder, DatabaseMapping mapping) {
  setCurrentMapping(mapping);
  setCurrentDescriptor(null);
  if (shouldIterateOnIndirectionObjects()) {// false by default
    internalIterateValueHolder(valueHolder);
  }
  if (shouldIterateOverUninstantiatedIndirectionObjects() || (shouldIterateOverIndirectionObjects() && valueHolder.isInstantiated())) {
    // force instantiation only if specified
    mapping.iterateOnRealAttributeValue(this, valueHolder.getValue());
  }
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

setCurrentMapping(mapping);
setCurrentDescriptor(getDescriptorFor(referenceObject));
origin: com.haulmont.thirdparty/eclipselink

setCurrentMapping(mapping);
setCurrentDescriptor(getDescriptorFor(referenceObject));
origin: com.haulmont.thirdparty/eclipselink

/**
 * Iterate on the value holder for its mapping.
 */
public void iterateValueHolderForMapping(ValueHolderInterface valueHolder, DatabaseMapping mapping) {
  setCurrentMapping(mapping);
  setCurrentDescriptor(null);
  if (shouldIterateOnIndirectionObjects()) {// false by default
    internalIterateValueHolder(valueHolder);
  }
  if (shouldIterateOverUninstantiatedIndirectionObjects() || (shouldIterateOverIndirectionObjects() && valueHolder.isInstantiated())) {
    // force instantiation only if specified
    mapping.iterateOnRealAttributeValue(this, valueHolder.getValue());
  }
}
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

setCurrentMapping(mapping);
setCurrentDescriptor(getDescriptorFor(referenceObject));
origin: org.eclipse.persistence/org.eclipse.persistence.core

  return;
setCurrentMapping(mapping);
origin: com.haulmont.thirdparty/eclipselink

  return;
setCurrentMapping(mapping);
origin: org.eclipse.persistence/org.eclipse.persistence.core

/**
 * Iterate on the indirection object for its mapping.
 */
public void iterateIndirectContainerForMapping(IndirectContainer container, DatabaseMapping mapping) {
  setCurrentMapping(mapping);
  setCurrentDescriptor(null);
  if (shouldIterateOnIndirectionObjects()) {// false by default
    internalIterateIndirectContainer(container);
  }
  if (shouldIterateOverUninstantiatedIndirectionObjects() || (shouldIterateOverIndirectionObjects() && container.isInstantiated())) {
    // force instantiation only if specified
    mapping.iterateOnRealAttributeValue(this, container);
  } else if (shouldIterateOverIndirectionObjects()) {
    // PERF: Allow the indirect container to iterate any cached elements.
    if (container instanceof IndirectCollection)  {
      mapping.iterateOnRealAttributeValue(this, ((IndirectCollection)container).getAddedElements());
    }
  }
}
origin: com.haulmont.thirdparty/eclipselink

/**
 * Iterate on the indirection object for its mapping.
 */
public void iterateIndirectContainerForMapping(IndirectContainer container, DatabaseMapping mapping) {
  setCurrentMapping(mapping);
  setCurrentDescriptor(null);
  if (shouldIterateOnIndirectionObjects()) {// false by default
    internalIterateIndirectContainer(container);
  }
  if (shouldIterateOverUninstantiatedIndirectionObjects() || (shouldIterateOverIndirectionObjects() && container.isInstantiated())) {
    // force instantiation only if specified
    mapping.iterateOnRealAttributeValue(this, container);
  } else if (shouldIterateOverIndirectionObjects()) {
    // PERF: Allow the indirect container to iterate any cached elements.
    if (container instanceof IndirectCollection)  {
      mapping.iterateOnRealAttributeValue(this, ((IndirectCollection)container).getAddedElements());
    }
  }
}
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

/**
 * Iterate on the indirection object for its mapping.
 */
public void iterateIndirectContainerForMapping(IndirectContainer container, DatabaseMapping mapping) {
  setCurrentMapping(mapping);
  setCurrentDescriptor(null);
  if (shouldIterateOnIndirectionObjects()) {// false by default
    internalIterateIndirectContainer(container);
  }
  if (shouldIterateOverUninstantiatedIndirectionObjects() || (shouldIterateOverIndirectionObjects() && container.isInstantiated())) {
    // force instantiation only if specified
    mapping.iterateOnRealAttributeValue(this, container);
  } else if (shouldIterateOverIndirectionObjects()) {
    // PERF: Allow the indirect container to iterate any cached elements.
    if (container instanceof IndirectCollection)  {
      mapping.iterateOnRealAttributeValue(this, ((IndirectCollection)container).getAddedElements());
    }
  }
}
org.eclipse.persistence.internal.descriptorsDescriptorIteratorsetCurrentMapping

Popular methods of DescriptorIterator

  • getCascadeDepth
  • getCurrentDescriptor
  • getDescriptorFor
    Fetch and return the descriptor for the specified object.
  • getSession
  • getVisitedObjects
  • getVisitedParent
    Return the last object visited.
  • getVisitedStack
  • internalIterateAggregateObject
    Iterate an aggregate object (i.e. an object that is the target of an AggregateMapping). Override thi
  • internalIterateIndirectContainer
    Iterate an indirect container (IndirectList or IndirectMap). Override this method if appropriate.
  • internalIteratePrimitive
    Iterate a primitive object (String, Date, Integer, etc.). Override this method if appropriate.
  • internalIterateReferenceObject
    Iterate a (a non-Aggregate) reference object. Override this method if appropriate.
  • internalIterateValueHolder
    Iterate a value holder. Override this method if appropriate.
  • internalIterateReferenceObject,
  • internalIterateValueHolder,
  • iterate,
  • iterateForAggregateMapping,
  • iterateIndirectContainerForMapping,
  • iteratePrimitiveForMapping,
  • iterateReferenceObjectForMapping,
  • iterateReferenceObjects,
  • iterateValueHolderForMapping,
  • setCascadeCondition

Popular in Java

  • Updating database using SQL prepared statement
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • notifyDataSetChanged (ArrayAdapter)
  • findViewById (Activity)
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • PrintWriter (java.io)
    Wraps either an existing OutputStream or an existing Writerand provides convenience methods for prin
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • ImageIO (javax.imageio)
  • JOptionPane (javax.swing)
  • PhpStorm for WordPress
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