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

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

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

origin: com.haulmont.thirdparty/eclipselink

/**
 * INTERNAL:
 * If any of the references objects has changed, write out
 * all the keys.
 */
@Override
public void writeFromObjectIntoRowForUpdate(WriteObjectQuery writeQuery, AbstractRecord row) throws DescriptorException {
  if (!this.isAttributeValueInstantiatedOrChanged(writeQuery.getObject())) {
    return;
  }
  AbstractSession session = writeQuery.getSession();
  if (session.isUnitOfWork()) {
    // PRS2074 fix for "traditional" Indirection
    Object collection1 = this.getRealCollectionAttributeValueFromObject(writeQuery.getObject(), session);
    Object collection2 = this.getRealCollectionAttributeValueFromObject(writeQuery.getBackupClone(), session);
    if (this.compareObjectsWithoutPrivateOwned(collection1, collection2, session)) {
      return;// nothing has changed - don't put anything in the row
    }
  }
  this.writeFromObjectIntoRow(writeQuery.getObject(), row, session, WriteType.UPDATE);
}
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

/**
 * INTERNAL:
 * If any of the references objects has changed, write out
 * all the keys.
 */
public void writeFromObjectIntoRowForUpdate(WriteObjectQuery writeQuery, AbstractRecord row) throws DescriptorException {
  if (!this.isAttributeValueInstantiatedOrChanged(writeQuery.getObject())) {
    return;
  }
  AbstractSession session = writeQuery.getSession();
  if (session.isUnitOfWork()) {
    // PRS2074 fix for "traditional" Indirection
    Object collection1 = this.getRealCollectionAttributeValueFromObject(writeQuery.getObject(), session);
    Object collection2 = this.getRealCollectionAttributeValueFromObject(writeQuery.getBackupClone(), session);
    if (this.compareObjectsWithoutPrivateOwned(collection1, collection2, session)) {
      return;// nothing has changed - don't put anything in the row
    }
  }
  this.writeFromObjectIntoRow(writeQuery.getObject(), row, session);
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

/**
 * INTERNAL:
 * If any of the references objects has changed, write out
 * all the keys.
 */
@Override
public void writeFromObjectIntoRowForUpdate(WriteObjectQuery writeQuery, AbstractRecord row) throws DescriptorException {
  if (!this.isAttributeValueInstantiatedOrChanged(writeQuery.getObject())) {
    return;
  }
  AbstractSession session = writeQuery.getSession();
  if (session.isUnitOfWork()) {
    // PRS2074 fix for "traditional" Indirection
    Object collection1 = this.getRealCollectionAttributeValueFromObject(writeQuery.getObject(), session);
    Object collection2 = this.getRealCollectionAttributeValueFromObject(writeQuery.getBackupClone(), session);
    if (this.compareObjectsWithoutPrivateOwned(collection1, collection2, session)) {
      return;// nothing has changed - don't put anything in the row
    }
  }
  this.writeFromObjectIntoRow(writeQuery.getObject(), row, session, WriteType.UPDATE);
}
org.eclipse.persistence.eis.mappingsEISOneToManyMappingcompareObjectsWithoutPrivateOwned

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
  • deleteAll
    Delete all the reference objects.
  • deleteReferenceObjectsLeftOnDatabase
    This method will make sure that all the records privately owned by this mapping are actually removed
  • extractKeyRowFromReferenceObject
    Build and return a database row that contains a foreign key for the specified reference object. This
  • deleteReferenceObjectsLeftOnDatabase,
  • extractKeyRowFromReferenceObject,
  • getAttributeName,
  • getAttributeValueFromObject,
  • getContainerPolicy,
  • getDeleteAllQuery,
  • getDescriptor,
  • getForeignKeyGroupingElement,
  • getForeignKeyRows

Popular in Java

  • Updating database using SQL prepared statement
  • setScale (BigDecimal)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • scheduleAtFixedRate (ScheduledExecutorService)
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • BitSet (java.util)
    The BitSet class implements abit array [http://en.wikipedia.org/wiki/Bit_array]. Each element is eit
  • ResourceBundle (java.util)
    ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • JPanel (javax.swing)
  • 14 Best Plugins for Eclipse
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