Tabnine Logo
CacheInvalidationPolicy.setShouldRefreshInvalidObjectsOnClone
Code IndexAdd Tabnine to your IDE (free)

How to use
setShouldRefreshInvalidObjectsOnClone
method
in
org.eclipse.persistence.descriptors.invalidation.CacheInvalidationPolicy

Best Java code snippets using org.eclipse.persistence.descriptors.invalidation.CacheInvalidationPolicy.setShouldRefreshInvalidObjectsOnClone (Showing top 2 results out of 315)

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

  public Object clone() {
    CacheInvalidationPolicy clone = null;

    try {
      clone = (CacheInvalidationPolicy)super.clone();
      clone.setShouldUpdateReadTimeOnUpdate(this.shouldUpdateReadTimeOnUpdate);
      clone.setShouldRefreshInvalidObjectsOnClone(this.shouldRefreshInvalidObjectsOnClone);
      clone.setIsInvalidationRandomized(this.isInvalidationRandomized);
    } catch (Exception exception) {
      throw new InternalError("clone failed");
    }

    return clone;
  }
}
origin: com.haulmont.thirdparty/eclipselink

  public Object clone() {
    CacheInvalidationPolicy clone = null;
    
    try {
      clone = (CacheInvalidationPolicy)super.clone();
      clone.setShouldUpdateReadTimeOnUpdate(this.shouldUpdateReadTimeOnUpdate);
      clone.setShouldRefreshInvalidObjectsOnClone(this.shouldRefreshInvalidObjectsOnClone);
      clone.setIsInvalidationRandomized(this.isInvalidationRandomized);            
    } catch (Exception exception) {
      throw new InternalError("clone failed");
    }
    
    return clone;
  }
}
org.eclipse.persistence.descriptors.invalidationCacheInvalidationPolicysetShouldRefreshInvalidObjectsOnClone

Javadoc

PUBLIC: Set if expired object should be refreshed prior to cloning, default is true. Applies to Protected Entities and UnitOfWork registration.

Popular methods of CacheInvalidationPolicy

  • getExpiryTimeInMillis
    INTERNAL: Get the next time when this object will become invalid
  • getRemainingValidTime
    INTERNAL: Return the remaining life of this object
  • isInvalidated
  • shouldUpdateReadTimeOnUpdate
    PUBLIC: Return whether objects affected by this CacheInvalidationPolicy should have the read time on
  • clone
  • setIsInvalidationRandomized
    PUBLIC: Allows the timeToLive to be randomized to avoid bottlenecks.
  • setShouldUpdateReadTimeOnUpdate
    PUBLIC: Set whether to update the stored time an object was read when an object is updated. When the
  • shouldRefreshInvalidObjectsOnClone
    PUBLIC: Return if expired object should be refreshed prior to cloning. Applies to Protected Entities
  • shouldRefreshInvalidObjectsInUnitOfWork
    PUBLIC: Return if expired object registered in the unit of work should be refreshed.

Popular in Java

  • Updating database using SQL prepared statement
  • getContentResolver (Context)
  • notifyDataSetChanged (ArrayAdapter)
  • requestLocationUpdates (LocationManager)
  • FileWriter (java.io)
    A specialized Writer that writes to a file in the file system. All write requests made by calling me
  • KeyStore (java.security)
    KeyStore is responsible for maintaining cryptographic keys and their owners. The type of the syste
  • DecimalFormat (java.text)
    A concrete subclass of NumberFormat that formats decimal numbers. It has a variety of features desig
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • JLabel (javax.swing)
  • Top Vim plugins
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