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

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

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

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

/**
 * 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: org.eclipse.persistence/com.springsource.org.eclipse.persistence

/**
 * INTERNAL:
 * Update the reference objects.
 */
public void postUpdate(WriteObjectQuery query) throws DatabaseException, OptimisticLockException {
  if (isForeignKeyRelationship()) {
    return;
  }
  if (!this.shouldObjectModifyCascadeToParts(query)) {
    return;
  }
  // if the target objects are not instantiated, they could not have been changed....
  if (!this.isAttributeValueInstantiatedOrChanged(query.getObject())) {
    return;
  }
  // manage objects added and removed from the collection
  Object objectsInMemory = this.getRealCollectionAttributeValueFromObject(query.getObject(), query.getSession());
  Object objectsInDB = this.readPrivateOwnedForObject(query);
  this.compareObjectsAndWrite(objectsInDB, objectsInMemory, query);
}
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

/**
 * INTERNAL:
 * Update the privately owned parts.
 */
public void preUpdate(WriteObjectQuery query) throws DatabaseException, OptimisticLockException {
  if (!this.isForeignKeyRelationship()) {
    return;
  }
  if (!this.shouldObjectModifyCascadeToParts(query)) {
    return;
  }
  // if the target objects are not instantiated, they could not have been changed....
  if (!this.isAttributeValueInstantiatedOrChanged(query.getObject())) {
    return;
  }
  // manage objects added and removed from the collection
  Object objectsInMemory = this.getRealCollectionAttributeValueFromObject(query.getObject(), query.getSession());
  Object objectsInDB = this.readPrivateOwnedForObject(query);
  this.compareObjectsAndWrite(objectsInDB, objectsInMemory, query);
}
org.eclipse.persistence.eis.mappingsEISOneToManyMappingreadPrivateOwnedForObject

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,
  • getContainerPolicy,
  • getDeleteAllQuery,
  • getDescriptor,
  • getForeignKeyGroupingElement,
  • getForeignKeyRows

Popular in Java

  • Updating database using SQL prepared statement
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getApplicationContext (Context)
  • compareTo (BigDecimal)
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • ConcurrentHashMap (java.util.concurrent)
    A plug-in replacement for JDK1.5 java.util.concurrent.ConcurrentHashMap. This version is based on or
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • Table (org.hibernate.mapping)
    A relational table
  • Top 17 Free Sublime Text Plugins
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