Tabnine Logo
OptimisticLockingPolicy.setDescriptor
Code IndexAdd Tabnine to your IDE (free)

How to use
setDescriptor
method
in
org.eclipse.persistence.internal.descriptors.OptimisticLockingPolicy

Best Java code snippets using org.eclipse.persistence.internal.descriptors.OptimisticLockingPolicy.setDescriptor (Showing top 6 results out of 315)

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

/**
 * PUBLIC:
 * Set the OptimisticLockingPolicy.
 * This can be one of the provided locking policies or a user defined policy.
 * @see VersionLockingPolicy
 * @see TimestampLockingPolicy
 * @see FieldsLockingPolicy
 */
public void setOptimisticLockingPolicy(OptimisticLockingPolicy optimisticLockingPolicy) {
  this.optimisticLockingPolicy = optimisticLockingPolicy;
  if (optimisticLockingPolicy != null) {
    optimisticLockingPolicy.setDescriptor(this);
  }
}
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

/**
 * PUBLIC:
 * Set the OptimisticLockingPolicy.
 * This can be one of the provided locking policies or a user defined policy.
 * @see VersionLockingPolicy
 * @see TimestampLockingPolicy
 * @see FieldsLockingPolicy
 */
public void setOptimisticLockingPolicy(OptimisticLockingPolicy optimisticLockingPolicy) {
  this.optimisticLockingPolicy = optimisticLockingPolicy;
  if (optimisticLockingPolicy != null) {
    optimisticLockingPolicy.setDescriptor(this);
  }
}
origin: com.haulmont.thirdparty/eclipselink

/**
 * PUBLIC:
 * Set the OptimisticLockingPolicy.
 * This can be one of the provided locking policies or a user defined policy.
 * @see VersionLockingPolicy
 * @see TimestampLockingPolicy
 * @see FieldsLockingPolicy
 */
public void setOptimisticLockingPolicy(OptimisticLockingPolicy optimisticLockingPolicy) {
  this.optimisticLockingPolicy = optimisticLockingPolicy;
  if (optimisticLockingPolicy != null) {
    optimisticLockingPolicy.setDescriptor(this);
  }
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

/**
 * INTERNAL:
 * Potentially override the optimistic locking behavior
 */
protected void initializeOptimisticLocking(){
  // CR#3214106, do not override if specified in subclass.
  if (!getDescriptor().usesOptimisticLocking() && getParentDescriptor().usesOptimisticLocking()) {
    getDescriptor().setOptimisticLockingPolicy((OptimisticLockingPolicy)getParentDescriptor().getOptimisticLockingPolicy().clone());
    getDescriptor().getOptimisticLockingPolicy().setDescriptor(getDescriptor());
  }
}
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

/**
 * INTERNAL:
 * Potentially override the optimistic locking behavior
 */
protected void initializeOptimisticLocking(){
  // CR#3214106, do not override if specified in subclass.
  if (!getDescriptor().usesOptimisticLocking() && getParentDescriptor().usesOptimisticLocking()) {
    getDescriptor().setOptimisticLockingPolicy((OptimisticLockingPolicy)getParentDescriptor().getOptimisticLockingPolicy().clone());
    getDescriptor().getOptimisticLockingPolicy().setDescriptor(getDescriptor());
  }
}
 
origin: com.haulmont.thirdparty/eclipselink

/**
 * INTERNAL:
 * Potentially override the optimistic locking behavior
 */
protected void initializeOptimisticLocking(){
  // CR#3214106, do not override if specified in subclass.
  if (!getDescriptor().usesOptimisticLocking() && getParentDescriptor().usesOptimisticLocking()) {
    getDescriptor().setOptimisticLockingPolicy((OptimisticLockingPolicy)getParentDescriptor().getOptimisticLockingPolicy().clone());
    getDescriptor().getOptimisticLockingPolicy().setDescriptor(getDescriptor());
  }
}
 
org.eclipse.persistence.internal.descriptorsOptimisticLockingPolicysetDescriptor

Javadoc

INTERNAL: provide a way to set the descriptor for this policy

Popular methods of OptimisticLockingPolicy

  • addLockFieldsToUpdateRow
    INTERNAL: Add update fields for template row. These are any unmapped fields required to write in an
  • addLockValuesToTranslationRow
    INTERNAL: The method should update the translation row with the correct write lock values. This meth
  • buildDeleteExpression
    INTERNAL: When given an expression, this method will return a new expression with the optimistic loc
  • buildUpdateExpression
    INTERNAL: When given an expression, this method will return a new expression with the optimistic loc
  • clone
  • compareWriteLockValues
    INTERNAL: This method shouldn't be called if supportsWriteLockValuesComparison() returns false. This
  • getBaseValue
    INTERNAL: This is the base value that is older than all other values, it is used in the place of nul
  • getValueToPutInCache
    INTERNAL: Return the value that should be stored in the identity map. If the value is not stored in
  • getVersionDifference
    PUBLIC: Return the number of versions different between these objects.
  • getWriteLockField
    INTERNAL: Return the write lock field. #see this method in VersionLockingPolicy
  • getWriteLockUpdateExpression
    INTERNAL: This method will return an expression that is used to update its optimistic locking field
  • getWriteLockValue
    INTERNAL: This method will return the optimistic lock value for the object #see this method in Versi
  • getWriteLockUpdateExpression,
  • getWriteLockValue,
  • initialize,
  • initializeProperties,
  • isCascaded,
  • isNewerVersion,
  • isStoredInCache,
  • mergeIntoParentCache,
  • setupWriteFieldsForInsert

Popular in Java

  • Reading from database using SQL prepared statement
  • requestLocationUpdates (LocationManager)
  • getContentResolver (Context)
  • putExtra (Intent)
  • ObjectMapper (com.fasterxml.jackson.databind)
    ObjectMapper provides functionality for reading and writing JSON, either to and from basic POJOs (Pl
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • Properties (java.util)
    A Properties object is a Hashtable where the keys and values must be Strings. Each property can have
  • JTable (javax.swing)
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • Top 12 Jupyter Notebook extensions
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