congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
ObjectChangePolicy.isDeferredChangeDetectionPolicy
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: com.haulmont.thirdparty/eclipselink

/**
 * Check to ensure the class meets all the conditions necessary to enable change tracking
 * This could occur either if the class already has change tracking implemented or if the
 * class is capable of having change tracking woven based on the descriptor.
 */
protected boolean canChangeTrackingBeEnabled(ClassDescriptor descriptor, MetadataClass clz, boolean globalWeaveChangeTracking) {
  if (!globalWeaveChangeTracking) {
   return false;
  }
  // If the descriptor was configured to not use change tracking then disable it, also enable if configure explictly.
  if (descriptor.getObjectChangePolicyInternal() != null) {
    if (descriptor.getObjectChangePolicyInternal().isDeferredChangeDetectionPolicy()) {
      return false;
    } else if (descriptor.getObjectChangePolicyInternal().isObjectChangeTrackingPolicy()) {
      // Include object and attribute.
      return true;
    }
  }
  boolean canWeaveChangeTracking = descriptor.supportsChangeTracking(session.getProject());
  if (!canWeaveChangeTracking) {
    log(SessionLog.CONFIG, CANNOT_WEAVE_CHANGETRACKING, new Object[]{descriptor.getJavaClassName()});
  }
  return canWeaveChangeTracking;
}
org.eclipse.persistence.descriptors.changetrackingObjectChangePolicyisDeferredChangeDetectionPolicy

Javadoc

Used to track instances of the change policies without doing an instance of check

Popular methods of ObjectChangePolicy

  • buildBackupClone
    INTERNAL: Build back up clone.
  • 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
  • isObjectChangeTrackingPolicy,
  • raiseInternalPropertyChangeEvent,
  • revertChanges,
  • setAggregateChangeListener,
  • setChangeListener,
  • setChangeSetOnListener,
  • shouldCompareExistingObjectForChange,
  • updateWithChanges,
  • updateListenerForSelfMerge

Popular in Java

  • Updating database using SQL prepared statement
  • getResourceAsStream (ClassLoader)
  • onRequestPermissionsResult (Fragment)
  • getSystemService (Context)
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • DataSource (javax.sql)
    An interface for the creation of Connection objects which represent a connection to a database. This
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • Github Copilot alternatives
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