congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
DescriptorIterator.getSession
Code IndexAdd Tabnine to your IDE (free)

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

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

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

/**
 * Fetch and return the descriptor for the specified object.
 */
protected ClassDescriptor getDescriptorFor(Object object) {
  ClassDescriptor result = getSession().getDescriptor(object);
  if (result == null) {
    throw DescriptorException.missingDescriptor(object.getClass().getName());
  }
  return result;
}
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

/**
 * Fetch and return the descriptor for the specified object.
 */
protected ClassDescriptor getDescriptorFor(Object object) {
  ClassDescriptor result = getSession().getDescriptor(object);
  if (result == null) {
    throw DescriptorException.missingDescriptor(object.getClass().getName());
  }
  return result;
}
origin: com.haulmont.thirdparty/eclipselink

/**
 * Fetch and return the descriptor for the specified object.
 */
protected ClassDescriptor getDescriptorFor(Object object) {
  ClassDescriptor result = getSession().getDescriptor(object);
  if (result == null) {
    throw DescriptorException.missingDescriptor(object.getClass().getName());
  }
  return result;
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

/**
 * INTERNAL:
 * Iterate on the specified element.
 */
@Override
public void iterateOnElement(DescriptorIterator iterator, Object element) {
  // CR#... Aggregate collections must iterate as aggregates, not regular mappings.
  // For some reason the element can be null, this makes absolutely no sense, but we have a test case for it...
  if (element != null) {
    iterator.iterateForAggregateMapping(element, this, getReferenceDescriptor(element.getClass(), iterator.getSession()));
  }
}
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

/**
 * INTERNAL:
 * Iterate on the specified element.
 */
public void iterateOnElement(DescriptorIterator iterator, Object element) {
  // CR#... Aggregate collections must iterate as aggregates, not regular mappings.
  // For some reason the element can be null, this makes absolutely no sense, but we have a test case for it...
  if (element != null) {
    iterator.iterateForAggregateMapping(element, this, getReferenceDescriptor(element.getClass(), iterator.getSession()));
  }
}
origin: com.haulmont.thirdparty/eclipselink

/**
 * INTERNAL:
 * Iterate on the specified element.
 */
@Override
public void iterateOnElement(DescriptorIterator iterator, Object element) {
  // CR#... Aggregate collections must iterate as aggregates, not regular mappings.
  // For some reason the element can be null, this makes absolutely no sense, but we have a test case for it...
  if (element != null) {
    iterator.iterateForAggregateMapping(element, this, getReferenceDescriptor(element.getClass(), iterator.getSession()));
  }
}
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

/**
 * Iterate on the specified attribute value.
 */
protected void iterateOnAttributeValue(DescriptorIterator iterator, Object attributeValue) {
  iterator.iterateForAggregateMapping(attributeValue, this, getReferenceDescriptor(attributeValue, iterator.getSession()));
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

/**
 * Iterate on the specified attribute value.
 */
protected void iterateOnAttributeValue(DescriptorIterator iterator, Object attributeValue) {
  iterator.iterateForAggregateMapping(attributeValue, this, getReferenceDescriptor(attributeValue, iterator.getSession()));
}
origin: com.haulmont.thirdparty/eclipselink

/**
 * Iterate on the specified attribute value.
 */
protected void iterateOnAttributeValue(DescriptorIterator iterator, Object attributeValue) {
  iterator.iterateForAggregateMapping(attributeValue, this, getReferenceDescriptor(attributeValue, iterator.getSession()));
}
 
origin: org.eclipse.persistence/org.eclipse.persistence.core

/**
 * INTERNAL:
 * Iterate on the attribute value.
 * The value holder has already been processed.
 */
@Override
public void iterateOnRealAttributeValue(DescriptorIterator iterator, Object realAttributeValue) {
  // This may be wrapped as the caller in iterate on foreign reference does not unwrap as the type is generic.
  Object unwrappedAttributeValue = getReferenceDescriptor().getObjectBuilder().unwrapObject(realAttributeValue, iterator.getSession());
  iterator.iterateReferenceObjectForMapping(unwrappedAttributeValue, this);
}
origin: com.haulmont.thirdparty/eclipselink

/**
 * INTERNAL:
 * Iterate on the attribute value.
 * The value holder has already been processed.
 */
@Override
public void iterateOnRealAttributeValue(DescriptorIterator iterator, Object realAttributeValue) {
  // This may be wrapped as the caller in iterate on foreign reference does not unwrap as the type is generic.
  Object unwrappedAttributeValue = getReferenceDescriptor().getObjectBuilder().unwrapObject(realAttributeValue, iterator.getSession());
  iterator.iterateReferenceObjectForMapping(unwrappedAttributeValue, this);
}
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

/**
 * INTERNAL:
 * Iterate on the attribute value.
 * The value holder has already been processed.
 */
public void iterateOnRealAttributeValue(DescriptorIterator iterator, Object realAttributeValue) {
  // This may be wrapped as the caller in iterate on foreign reference does not unwrap as the type is generic.
  Object unwrappedAttributeValue = getReferenceDescriptor().getObjectBuilder().unwrapObject(realAttributeValue, iterator.getSession());
  iterator.iterateReferenceObjectForMapping(unwrappedAttributeValue, this);
}
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

/**
 * Iterate on the specified attribute value.
 */
protected void iterateOnAttributeValue(DescriptorIterator descriptorIterator, Object attributeValue) {
  if (attributeValue == null) {
    return;
  }
  ContainerPolicy cp = this.getContainerPolicy();
  for (Object iter = cp.iteratorFor(attributeValue); cp.hasNext(iter);) {
    super.iterateOnAttributeValue(descriptorIterator, cp.next(iter, descriptorIterator.getSession()));
  }
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

/**
 * Iterate on the specified attribute value.
 */
@Override
protected void iterateOnAttributeValue(DescriptorIterator descriptorIterator, Object attributeValue) {
  if (attributeValue == null) {
    return;
  }
  ContainerPolicy cp = this.getContainerPolicy();
  for (Object iter = cp.iteratorFor(attributeValue); cp.hasNext(iter);) {
    super.iterateOnAttributeValue(descriptorIterator, cp.next(iter, descriptorIterator.getSession()));
  }
}
origin: com.haulmont.thirdparty/eclipselink

/**
 * Iterate on the specified attribute value.
 */
@Override
protected void iterateOnAttributeValue(DescriptorIterator descriptorIterator, Object attributeValue) {
  if (attributeValue == null) {
    return;
  }
  ContainerPolicy cp = this.getContainerPolicy();
  for (Object iter = cp.iteratorFor(attributeValue); cp.hasNext(iter);) {
    super.iterateOnAttributeValue(descriptorIterator, cp.next(iter, descriptorIterator.getSession()));
  }
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

/**
 * INTERNAL:
 * Iterate on the specified element.
 */
@Override
public void iterateOnElement(DescriptorIterator iterator, Object element) {
  super.iterateOnElement(iterator, element);
  ContainerPolicy cp = getContainerPolicy();
  for (Object iter = cp.iteratorFor(element); cp.hasNext(iter);) {
    Object wrappedObject = cp.nextEntry(iter, iterator.getSession());
    cp.iterateOnMapKey(iterator, wrappedObject);
  }
}
origin: com.haulmont.thirdparty/eclipselink

/**
 * INTERNAL:
 * Iterate on the specified element.
 */
@Override
public void iterateOnElement(DescriptorIterator iterator, Object element) {
  super.iterateOnElement(iterator, element);
  ContainerPolicy cp = getContainerPolicy();
  for (Object iter = cp.iteratorFor(element); cp.hasNext(iter);) {
    Object wrappedObject = cp.nextEntry(iter, iterator.getSession());
    cp.iterateOnMapKey(iterator, wrappedObject);
  }
}
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

/**
 * INTERNAL:
 * Iterate on the specified element.
 */
public void iterateOnElement(DescriptorIterator iterator, Object element) {
  super.iterateOnElement(iterator, element);
  ContainerPolicy cp = getContainerPolicy();
  for (Object iter = cp.iteratorFor(element); cp.hasNext(iter);) {
    Object wrappedObject = cp.nextEntry(iter, iterator.getSession());
    Object object = cp.unwrapIteratorResult(wrappedObject);
    cp.iterateOnMapKey(iterator, wrappedObject);
  }
}
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

/**
 * INTERNAL:
 * Iterate on the attribute value.
 * The value holder has already been processed.
 * PERF: Avoid iteration if not required.
 */
public void iterateOnRealAttributeValue(DescriptorIterator iterator, Object realAttributeValue) {
  super.iterateOnRealAttributeValue(iterator, realAttributeValue);
  ContainerPolicy cp = getContainerPolicy();
  if (realAttributeValue != null && !iterator.shouldIterateOnPrimitives()) {
    for (Object iter = cp.iteratorFor(realAttributeValue); cp.hasNext(iter);) {
      Object wrappedObject = cp.nextEntry(iter, iterator.getSession());
      cp.iterateOnMapKey(iterator, wrappedObject);
    }
  }
}
 
org.eclipse.persistence.internal.descriptorsDescriptorIteratorgetSession

Popular methods of DescriptorIterator

  • getCascadeDepth
  • getCurrentDescriptor
  • getDescriptorFor
    Fetch and return the descriptor for the specified object.
  • 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.
  • iterate
    To define a new iterator create a subclass and define at least this method. Given an object or set o
  • internalIterateValueHolder,
  • iterate,
  • iterateForAggregateMapping,
  • iterateIndirectContainerForMapping,
  • iteratePrimitiveForMapping,
  • iterateReferenceObjectForMapping,
  • iterateReferenceObjects,
  • iterateValueHolderForMapping,
  • setCascadeCondition

Popular in Java

  • Finding current android device location
  • getExternalFilesDir (Context)
  • getSharedPreferences (Context)
  • getSystemService (Context)
  • Permission (java.security)
    Legacy security code; do not use.
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • Hashtable (java.util)
    A plug-in replacement for JDK1.5 java.util.Hashtable. This version is based on org.cliffc.high_scale
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • Properties (java.util)
    A Properties object is a Hashtable where the keys and values must be Strings. Each property can have
  • Cipher (javax.crypto)
    This class provides access to implementations of cryptographic ciphers for encryption and decryption
  • Top PhpStorm plugins
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