Tabnine Logo
EISOneToManyMapping.getContainerPolicy
Code IndexAdd Tabnine to your IDE (free)

How to use
getContainerPolicy
method
in
org.eclipse.persistence.eis.mappings.EISOneToManyMapping

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

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

/**
 * Convenience method.
 */
private ContainerPolicy getContainerPolicy() {
  return this.getMapping().getContainerPolicy();
}
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

/**
 * Convenience method.
 */
private ContainerPolicy getContainerPolicy() {
  return this.getMapping().getContainerPolicy();
}
origin: com.haulmont.thirdparty/eclipselink

/**
 * INTERNAL:
 * Return whether the element's user-defined Map key has changed
 * since it was cloned from the original version.
 * Object elements can change their keys without detection.
 * Get the original object and compare keys.
 */
public boolean mapKeyHasChanged(Object element, AbstractSession session) {
  //CR 4172 compare keys will now get backup if required
  return !this.getContainerPolicy().compareKeys(element, session);
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

/**
 * INTERNAL:
 * Return whether the element's user-defined Map key has changed
 * since it was cloned from the original version.
 * Object elements can change their keys without detection.
 * Get the original object and compare keys.
 */
public boolean mapKeyHasChanged(Object element, AbstractSession session) {
  //CR 4172 compare keys will now get backup if required
  return !this.getContainerPolicy().compareKeys(element, session);
}
origin: com.haulmont.thirdparty/eclipselink

/**
 * Convenience method.
 */
private ContainerPolicy getContainerPolicy() {
  return this.getMapping().getContainerPolicy();
}
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

/**
 * INTERNAL:
 * Return whether the element's user-defined Map key has changed
 * since it was cloned from the original version.
 * Object elements can change their keys without detection.
 * Get the original object and compare keys.
 */
public boolean mapKeyHasChanged(Object element, AbstractSession session) {
  //CR 4172 compare keys will now get backup if required
  return !this.getContainerPolicy().compareKeys(element, session);
}
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

/**
 * INTERNAL:
 * Used to verify whether the specified object is deleted or not.
 */
public boolean verifyDelete(Object object, AbstractSession session) throws DatabaseException {
  if (this.isPrivateOwned()) {
    Object objects = this.getRealCollectionAttributeValueFromObject(object, session);
    ContainerPolicy containerPolicy = getContainerPolicy();
    for (Object iter = containerPolicy.iteratorFor(objects); containerPolicy.hasNext(iter);) {
      if (!session.verifyDelete(containerPolicy.next(iter, session))) {
        return false;
      }
    }
  }
  return true;
}
origin: com.haulmont.thirdparty/eclipselink

/**
 * This method will make sure that all the records privately owned by this mapping are
 * actually removed. If such records are found then those are all read and removed one
 * by one along with their privately owned parts.
 */
protected void deleteReferenceObjectsLeftOnDatabase(DeleteObjectQuery query) throws DatabaseException, OptimisticLockException {
  Object objects = this.readPrivateOwnedForObject(query);
  // delete all these objects one by one
  ContainerPolicy cp = this.getContainerPolicy();
  for (Object iter = cp.iteratorFor(objects); cp.hasNext(iter);) {
    query.getSession().deleteObject(cp.next(iter, query.getSession()));
  }
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

/**
 * INTERNAL:
 * Used to verify whether the specified object is deleted or not.
 */
@Override
public boolean verifyDelete(Object object, AbstractSession session) throws DatabaseException {
  if (this.isPrivateOwned()) {
    Object objects = this.getRealCollectionAttributeValueFromObject(object, session);
    ContainerPolicy containerPolicy = getContainerPolicy();
    for (Object iter = containerPolicy.iteratorFor(objects); containerPolicy.hasNext(iter);) {
      if (!session.verifyDelete(containerPolicy.next(iter, session))) {
        return false;
      }
    }
  }
  return true;
}
origin: com.haulmont.thirdparty/eclipselink

/**
 * INTERNAL:
 * Used to verify whether the specified object is deleted or not.
 */
@Override
public boolean verifyDelete(Object object, AbstractSession session) throws DatabaseException {
  if (this.isPrivateOwned()) {
    Object objects = this.getRealCollectionAttributeValueFromObject(object, session);
    ContainerPolicy containerPolicy = getContainerPolicy();
    for (Object iter = containerPolicy.iteratorFor(objects); containerPolicy.hasNext(iter);) {
      if (!session.verifyDelete(containerPolicy.next(iter, session))) {
        return false;
      }
    }
  }
  return true;
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

/**
 * This method will make sure that all the records privately owned by this mapping are
 * actually removed. If such records are found then those are all read and removed one
 * by one along with their privately owned parts.
 */
protected void deleteReferenceObjectsLeftOnDatabase(DeleteObjectQuery query) throws DatabaseException, OptimisticLockException {
  Object objects = this.readPrivateOwnedForObject(query);
  // delete all these objects one by one
  ContainerPolicy cp = this.getContainerPolicy();
  for (Object iter = cp.iteratorFor(objects); cp.hasNext(iter);) {
    query.getSession().deleteObject(cp.next(iter, query.getSession()));
  }
}
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

/**
 *    This method will make sure that all the records privately owned by this mapping are
 * actually removed. If such records are found then those are all read and removed one
 * by one along with their privately owned parts.
 */
protected void deleteReferenceObjectsLeftOnDatabase(DeleteObjectQuery query) throws DatabaseException, OptimisticLockException {
  Object objects = this.readPrivateOwnedForObject(query);
  // delete all these objects one by one
  ContainerPolicy cp = this.getContainerPolicy();
  for (Object iter = cp.iteratorFor(objects); cp.hasNext(iter);) {
    query.getSession().deleteObject(cp.next(iter, query.getSession()));
  }
}
origin: com.haulmont.thirdparty/eclipselink

/**
 * Delete all the reference objects.
 */
protected void deleteAll(DeleteObjectQuery query, Object referenceObjects) throws DatabaseException {
  ((DeleteAllQuery)this.getDeleteAllQuery()).executeDeleteAll(query.getSession().getSessionForClass(this.getReferenceClass()), query.getTranslationRow(), this.getContainerPolicy().vectorFor(referenceObjects, query.getSession()));
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

/**
 * Delete all the reference objects.
 */
protected void deleteAll(DeleteObjectQuery query, Object referenceObjects) throws DatabaseException {
  ((DeleteAllQuery)this.getDeleteAllQuery()).executeDeleteAll(query.getSession().getSessionForClass(this.getReferenceClass()), query.getTranslationRow(), this.getContainerPolicy().vectorFor(referenceObjects, query.getSession()));
}
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

/**
 * Delete all the reference objects.
 */
protected void deleteAll(DeleteObjectQuery query, Object referenceObjects) throws DatabaseException {
  ((DeleteAllQuery)this.getDeleteAllQuery()).executeDeleteAll(query.getSession().getSessionForClass(this.getReferenceClass()), query.getTranslationRow(), this.getContainerPolicy().vectorFor(referenceObjects, query.getSession()));
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

ContainerPolicy cp = this.getContainerPolicy();
origin: com.haulmont.thirdparty/eclipselink

  this.deleteAll(query, referenceObjects);
} else {
  ContainerPolicy cp = this.getContainerPolicy();
  for (Object iter = cp.iteratorFor(referenceObjects); cp.hasNext(iter);) {
    DeleteObjectQuery deleteQuery = new DeleteObjectQuery();
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

  this.deleteAll(query, referenceObjects);
} else {
  ContainerPolicy cp = this.getContainerPolicy();
  for (Object iter = cp.iteratorFor(referenceObjects); cp.hasNext(iter);) {
    DeleteObjectQuery deleteQuery = new DeleteObjectQuery();
origin: org.eclipse.persistence/org.eclipse.persistence.core

  this.deleteAll(query, referenceObjects);
} else {
  ContainerPolicy cp = this.getContainerPolicy();
  for (Object iter = cp.iteratorFor(referenceObjects); cp.hasNext(iter);) {
    DeleteObjectQuery deleteQuery = new DeleteObjectQuery();
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

ContainerPolicy cp = this.getContainerPolicy();
org.eclipse.persistence.eis.mappingsEISOneToManyMappinggetContainerPolicy

Popular methods of EISOneToManyMapping

  • addForeignKeyField
    PUBLIC: Define the source foreign key relationship in the one-to-many mapping. This method is used f
  • buildAddedElementFromChangeSet
    INTERNAL: Build and return a new element based on the change set.
  • buildChangeSet
    INTERNAL: Build and return a change set for the specified element.
  • buildElementFromChangeSet
    Build and return a new element based on the change set.
  • buildElementFromElement
    INTERNAL: Build and return a new element based on the specified element.
  • buildRemovedElementFromChangeSet
    INTERNAL: Build and return a new element based on the change set.
  • compareElements
    INTERNAL: Compare the non-null elements and return true if they are alike.
  • compareElementsForChange
    INTERNAL: Compare the non-null elements and return true if they are alike. Here we use object identi
  • compareObjectsAndWrite
  • compareObjectsWithoutPrivateOwned
  • deleteAll
    Delete all the reference objects.
  • deleteReferenceObjectsLeftOnDatabase
    This method will make sure that all the records privately owned by this mapping are actually removed
  • deleteAll,
  • deleteReferenceObjectsLeftOnDatabase,
  • extractKeyRowFromReferenceObject,
  • getAttributeName,
  • getAttributeValueFromObject,
  • getDeleteAllQuery,
  • getDescriptor,
  • getForeignKeyGroupingElement,
  • getForeignKeyRows

Popular in Java

  • Reactive rest calls using spring rest template
  • notifyDataSetChanged (ArrayAdapter)
  • getContentResolver (Context)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • BitSet (java.util)
    The BitSet class implements abit array [http://en.wikipedia.org/wiki/Bit_array]. Each element is eit
  • PriorityQueue (java.util)
    A PriorityQueue holds elements on a priority heap, which orders the elements according to their natu
  • ResourceBundle (java.util)
    ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
  • 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