Codota Logo
ObjectChangePolicy.buildBackupClone
Code IndexAdd Codota to your IDE (free)

How to use
buildBackupClone
method
in
org.eclipse.persistence.descriptors.changetracking.ObjectChangePolicy

Best Java code snippets using org.eclipse.persistence.descriptors.changetracking.ObjectChangePolicy.buildBackupClone (Showing top 12 results out of 315)

  • Common ways to obtain ObjectChangePolicy
private void myMethod () {
ObjectChangePolicy o =
  • Codota IconClassDescriptor descriptor;descriptor.getObjectChangePolicy()
  • Smart code suggestions by Codota
}
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

Object backupClone = descriptor.getObjectChangePolicy().buildBackupClone(clone, builder, this);
origin: org.eclipse.persistence/org.eclipse.persistence.core

Object backupClone = descriptor.getObjectChangePolicy().buildBackupClone(clone, builder, this);
origin: com.haulmont.thirdparty/eclipselink

Object backupClone = descriptor.getObjectChangePolicy().buildBackupClone(clone, builder, this);
origin: org.eclipse.persistence/org.eclipse.persistence.core

Object backupClone = descriptor.getObjectChangePolicy().buildBackupClone(clone, builder, this);
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

Object backupClone = descriptor.getObjectChangePolicy().buildBackupClone(clone, builder, this);
origin: com.haulmont.thirdparty/eclipselink

Object backupClone = descriptor.getObjectChangePolicy().buildBackupClone(clone, builder, this);
origin: com.haulmont.thirdparty/eclipselink

/**
 * INTERNAL:
 * This method is called from clone and register.  It includes the processing
 * required to clone an object, including populating attributes, putting in
 * UOW identitymap and building a backupclone
 */
protected void populateAndRegisterObject(Object original, Object workingClone, CacheKey unitOfWorkCacheKey, CacheKey parentCacheKey, ClassDescriptor descriptor) {
  // This must be registered before it is built to avoid cycles.
  unitOfWorkCacheKey.setObject(workingClone);
  unitOfWorkCacheKey.setReadTime(parentCacheKey.getReadTime());
  unitOfWorkCacheKey.setWriteLockValue(parentCacheKey.getWriteLockValue());
  //Set ChangeListener for ObjectChangeTrackingPolicy and AttributeChangeTrackingPolicy,
  //but not DeferredChangeDetectionPolicy.  Build backup clone for DeferredChangeDetectionPolicy 
  //or ObjectChangeTrackingPolicy, but not for AttributeChangeTrackingPolicy.  
  // - Set listener before populating attributes so aggregates can find the parent's listener
  ObjectChangePolicy changePolicy = descriptor.getObjectChangePolicy();
  changePolicy.setChangeListener(workingClone, this, descriptor);
  changePolicy.dissableEventProcessing(workingClone);
  ObjectBuilder builder = descriptor.getObjectBuilder();
  builder.populateAttributesForClone(original, parentCacheKey, workingClone, null, this);
  Object backupClone = changePolicy.buildBackupClone(workingClone, builder, this);
  // PERF: Avoid put if no backup clone.
  if (workingClone != backupClone) {
    getCloneMapping().put(workingClone, backupClone);
  }
  changePolicy.enableEventProcessing(workingClone);
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

/**
 * INTERNAL:
 * This method is called from clone and register.  It includes the processing
 * required to clone an object, including populating attributes, putting in
 * UOW identitymap and building a backupclone
 */
protected void populateAndRegisterObject(Object original, Object workingClone, CacheKey unitOfWorkCacheKey, CacheKey parentCacheKey, ClassDescriptor descriptor) {
  // This must be registered before it is built to avoid cycles.
  unitOfWorkCacheKey.setObject(workingClone);
  unitOfWorkCacheKey.setReadTime(parentCacheKey.getReadTime());
  unitOfWorkCacheKey.setWriteLockValue(parentCacheKey.getWriteLockValue());
  //Set ChangeListener for ObjectChangeTrackingPolicy and AttributeChangeTrackingPolicy,
  //but not DeferredChangeDetectionPolicy.  Build backup clone for DeferredChangeDetectionPolicy
  //or ObjectChangeTrackingPolicy, but not for AttributeChangeTrackingPolicy.
  // - Set listener before populating attributes so aggregates can find the parent's listener
  ObjectChangePolicy changePolicy = descriptor.getObjectChangePolicy();
  changePolicy.setChangeListener(workingClone, this, descriptor);
  changePolicy.dissableEventProcessing(workingClone);
  ObjectBuilder builder = descriptor.getObjectBuilder();
  builder.populateAttributesForClone(original, parentCacheKey, workingClone, null, this);
  Object backupClone = changePolicy.buildBackupClone(workingClone, builder, this);
  // PERF: Avoid put if no backup clone.
  if (workingClone != backupClone) {
    getCloneMapping().put(workingClone, backupClone);
  }
  changePolicy.enableEventProcessing(workingClone);
}
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

/**
 * INTERNAL:
 * This method is called from clone and register.  It includes the processing
 * required to clone an object, including populating attributes, putting in
 * UOW identitymap and building a backupclone
 */
protected void populateAndRegisterObject(Object original, Object workingClone, CacheKey unitOfWorkCacheKey, CacheKey parentCacheKey, ClassDescriptor descriptor) {
  // This must be registered before it is built to avoid cycles.
  unitOfWorkCacheKey.setObject(workingClone);
  unitOfWorkCacheKey.setReadTime(parentCacheKey.getReadTime());
  unitOfWorkCacheKey.setWriteLockValue(parentCacheKey.getWriteLockValue());
  //Set ChangeListener for ObjectChangeTrackingPolicy and AttributeChangeTrackingPolicy,
  //but not DeferredChangeDetectionPolicy.  Build backup clone for DeferredChangeDetectionPolicy 
  //or ObjectChangeTrackingPolicy, but not for AttributeChangeTrackingPolicy.  
  // - Set listener before populating attributes so aggregates can find the parent's listener
  descriptor.getObjectChangePolicy().setChangeListener(workingClone, this, descriptor);
  descriptor.getObjectChangePolicy().dissableEventProcessing(workingClone);
  ObjectBuilder builder = descriptor.getObjectBuilder();
  builder.populateAttributesForClone(original, workingClone, this);
  Object backupClone = descriptor.getObjectChangePolicy().buildBackupClone(workingClone, builder, this);
  // PERF: Avoid put is no backup clone.
  if (workingClone != backupClone) {
    getCloneMapping().put(workingClone, backupClone);
  }
  descriptor.getObjectChangePolicy().enableEventProcessing(workingClone);
}
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

  this.descriptor.getFetchGroupManager().setObjectFetchGroup(workingClone, query.getFetchGroup(), unitOfWork);
Object backupClone = policy.buildBackupClone(workingClone, this, unitOfWork);
origin: org.eclipse.persistence/org.eclipse.persistence.core

Object backupClone = policy.buildBackupClone(workingClone, this, unitOfWork);
origin: com.haulmont.thirdparty/eclipselink

  fetchGroupManager.setObjectFetchGroup(workingClone, query.getExecutionFetchGroup(this.descriptor), unitOfWork);
Object backupClone = policy.buildBackupClone(workingClone, this, unitOfWork);
org.eclipse.persistence.descriptors.changetrackingObjectChangePolicybuildBackupClone

Javadoc

INTERNAL: Build back up clone.

Popular methods of ObjectChangePolicy

  • calculateChanges
    INTERNAL: CalculateChanges creates a change set for an existing object.
  • calculateChangesForExistingObject
    INTERNAL: CalculateChanges creates a change set for an existing object.
  • calculateChangesForNewObject
    INTERNAL: CalculateChanges creates a change set for a new object.
  • clearChanges
    INTERNAL: This is a place holder for reseting the listener on one of the subclasses
  • createObjectChangeSetThroughComparison
    INTERNAL: Create ObjectChangeSet through comparison. Used in cases where we need to force change cal
  • dissableEventProcessing
    INTERNAL: This method is used to disable changetracking temporarily
  • enableEventProcessing
    INTERNAL: This method is used to enable changetracking temporarily
  • initialize
    INTERNAL: initialize the Policy
  • isAttributeChangeTrackingPolicy
    Used to track instances of the change policies without doing an instance of check
  • isObjectChangeTrackingPolicy
    Used to track instances of the change policies without doing an instance of check
  • raiseInternalPropertyChangeEvent
    INTERNAL: This may cause a property change event to be raised to a listener in the case that a liste
  • revertChanges
    INTERNAL: This method is used to revert an object within the unit of work
  • raiseInternalPropertyChangeEvent,
  • revertChanges,
  • setAggregateChangeListener,
  • setChangeListener,
  • setChangeSetOnListener,
  • shouldCompareExistingObjectForChange,
  • updateWithChanges,
  • updateListenerForSelfMerge,
  • isDeferredChangeDetectionPolicy

Popular in Java

  • Reactive rest calls using spring rest template
  • getExternalFilesDir (Context)
  • compareTo (BigDecimal)
  • onCreateOptionsMenu (Activity)
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • BitSet (java.util)
    This class implements a vector of bits that grows as needed. Each component of the bit set has a boo
  • Properties (java.util)
    The Properties class represents a persistent set of properties. The Properties can be saved to a st
  • Notification (javax.management)
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now