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

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

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

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

/**
 * INTERNAL:
 * Update the privately owned parts.
 */
@Override
public void preUpdate(WriteObjectQuery query) throws DatabaseException, OptimisticLockException {
  if (!isForeignKeyRelationship()) {
    return;
  }
  if (!shouldObjectModifyCascadeToParts(query)) {
    return;
  }
  // if the target objects are not instantiated, they could not have been changed....
  if (!isAttributeValueInstantiatedOrChanged(query.getObject())) {
    return;
  }
  if (query.getObjectChangeSet() != null) {
    // UnitOfWork
    writeChanges(query.getObjectChangeSet(), query);
  } else {
    // OLD COMMIT
    compareObjectsAndWrite(query);
  }
}
origin: com.haulmont.thirdparty/eclipselink

/**
 * INTERNAL:
 * Update the privately owned parts.
 */
@Override
public void preUpdate(WriteObjectQuery query) throws DatabaseException, OptimisticLockException {
  if (!isForeignKeyRelationship()) {
    return;
  }
  if (!shouldObjectModifyCascadeToParts(query)) {
    return;
  }
  // if the target objects are not instantiated, they could not have been changed....
  if (!isAttributeValueInstantiatedOrChanged(query.getObject())) {
    return;
  }
  if (query.getObjectChangeSet() != null) {
    // UnitOfWork
    writeChanges(query.getObjectChangeSet(), query);
  } else {
    // OLD COMMIT    
    compareObjectsAndWrite(query);
  }
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

/**
 * INTERNAL:
 * Update the reference objects.
 */
@Override
public void postUpdate(WriteObjectQuery query) throws DatabaseException, OptimisticLockException {
  if (isForeignKeyRelationship()) {
    return;
  }
  if (!shouldObjectModifyCascadeToParts(query)) {
    return;
  }
  // if the target objects are not instantiated, they could not have been changed....
  if (!isAttributeValueInstantiatedOrChanged(query.getObject())) {
    return;
  }
  if (query.getObjectChangeSet() != null) {
    // UnitOfWork
    writeChanges(query.getObjectChangeSet(), query);
  } else {
    // OLD COMMIT
    compareObjectsAndWrite(query);
  }
}
origin: com.haulmont.thirdparty/eclipselink

/**
 * INTERNAL:
 * Update the reference objects.
 */
@Override
public void postUpdate(WriteObjectQuery query) throws DatabaseException, OptimisticLockException {
  if (isForeignKeyRelationship()) {
    return;
  }
  if (!shouldObjectModifyCascadeToParts(query)) {
    return;
  }
  // if the target objects are not instantiated, they could not have been changed....
  if (!isAttributeValueInstantiatedOrChanged(query.getObject())) {
    return;
  }
  if (query.getObjectChangeSet() != null) {
    // UnitOfWork
    writeChanges(query.getObjectChangeSet(), query);
  } else {
    // OLD COMMIT    
    compareObjectsAndWrite(query);
  }
}
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);
}
origin: com.haulmont.thirdparty/eclipselink

if (!this.shouldObjectModifyCascadeToParts(query)) {
  return;
origin: com.haulmont.thirdparty/eclipselink

if (!this.shouldObjectModifyCascadeToParts(query)) {
  return;
origin: org.eclipse.persistence/org.eclipse.persistence.core

if (!this.shouldObjectModifyCascadeToParts(query)) {
  return;
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

if (!this.shouldObjectModifyCascadeToParts(query)) {
  return;
origin: org.eclipse.persistence/org.eclipse.persistence.core

if (!this.shouldObjectModifyCascadeToParts(query)) {
  return;
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

if (!this.shouldObjectModifyCascadeToParts(query)) {
  return;
origin: org.eclipse.persistence/org.eclipse.persistence.core

if (!this.shouldObjectModifyCascadeToParts(query)) {
  return;
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

if (!this.shouldObjectModifyCascadeToParts(query)) {
  return;
origin: com.haulmont.thirdparty/eclipselink

if (!this.shouldObjectModifyCascadeToParts(query)) {
  return;
origin: com.haulmont.thirdparty/eclipselink

if (!this.shouldObjectModifyCascadeToParts(query)) {
  return;
origin: org.eclipse.persistence/org.eclipse.persistence.core

if (!this.shouldObjectModifyCascadeToParts(query)) {
  return;
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

if (!this.shouldObjectModifyCascadeToParts(query)) {
  return;
org.eclipse.persistence.eis.mappingsEISOneToManyMappingshouldObjectModifyCascadeToParts

Javadoc

Return whether any process leading to object modification should also affect its parts. Used by write, insert, update, and delete.

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

  • Making http requests using okhttp
  • getContentResolver (Context)
  • notifyDataSetChanged (ArrayAdapter)
  • getSharedPreferences (Context)
  • Kernel (java.awt.image)
  • FileInputStream (java.io)
    An input stream that reads bytes from a file. File file = ...finally if (in != null) in.clos
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • StringTokenizer (java.util)
    Breaks a string into tokens; new code should probably use String#split.> // Legacy code: StringTo
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • From CI to AI: The AI layer in your organization
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