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

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

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

origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

/**
 * INTERNAL:
 * This method should ONLY be used to set the initial writeLock value for
 * an ObjectChangeSet when it is first built.
 */
public void setOptimisticLockingPolicyAndInitialWriteLockValue(OptimisticLockingPolicy optimisticLockingPolicy, AbstractSession session) {
  // ignore optimistic locking policy if it can't compare lock values (like FieldsLockingPolicy).
  if(optimisticLockingPolicy.supportsWriteLockValuesComparison()) {
    this.optimisticLockingPolicy = optimisticLockingPolicy;
    this.initialWriteLockValue = optimisticLockingPolicy.getWriteLockValue(cloneObject, getPrimaryKeys(), session);
  }
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

/**
 * INTERNAL:
 * This method should ONLY be used to set the initial writeLock value for
 * an ObjectChangeSet when it is first built.
 */
public void setOptimisticLockingPolicyAndInitialWriteLockValue(OptimisticLockingPolicy optimisticLockingPolicy, AbstractSession session) {
  // ignore optimistic locking policy if it can't compare lock values (like FieldsLockingPolicy).
  if(optimisticLockingPolicy.supportsWriteLockValuesComparison()) {
    this.optimisticLockingPolicy = optimisticLockingPolicy;
    this.initialWriteLockValue = optimisticLockingPolicy.getWriteLockValue(cloneObject, getId(), session);
  }
}
origin: com.haulmont.thirdparty/eclipselink

/**
 * INTERNAL:
 * This method should ONLY be used to set the initial writeLock value for
 * an ObjectChangeSet when it is first built.
 */
public void setOptimisticLockingPolicyAndInitialWriteLockValue(OptimisticLockingPolicy optimisticLockingPolicy, AbstractSession session) {
  // ignore optimistic locking policy if it can't compare lock values (like FieldsLockingPolicy).
  if(optimisticLockingPolicy.supportsWriteLockValuesComparison()) {
    this.optimisticLockingPolicy = optimisticLockingPolicy;
    this.initialWriteLockValue = optimisticLockingPolicy.getWriteLockValue(cloneObject, getId(), session);
  }
}
origin: com.haulmont.thirdparty/eclipselink

if (descriptor.usesOptimisticLocking() && descriptor.usesVersionLocking()) {
  Object writeLockValue = descriptor.getOptimisticLockingPolicy().getWriteLockValue(object, key, session);
  String version = (String) session.getPlatform().convertObject(writeLockValue, String.class);
  writer.write(LoggingLocalization.buildMessage("key_version_identity_hash_code_object", new Object[] { cr, key, "\t", hashCode, object, version }));
origin: org.eclipse.persistence/org.eclipse.persistence.core

if (descriptor.usesOptimisticLocking() && descriptor.usesVersionLocking()) {
  Object writeLockValue = descriptor.getOptimisticLockingPolicy().getWriteLockValue(object, key, session);
  String version = (String) session.getPlatform().convertObject(writeLockValue, String.class);
  writer.write(LoggingLocalization.buildMessage("key_version_identity_hash_code_object", new Object[] { cr, key, "\t", hashCode, object, version }));
origin: com.haulmont.thirdparty/eclipselink

Object originalWriteLockValue = optimisticLockingPolicy.getWriteLockValue(original, getId(), session);
origin: org.eclipse.persistence/org.eclipse.persistence.core

Object originalWriteLockValue = optimisticLockingPolicy.getWriteLockValue(original, getId(), session);
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

Object originalWriteLockValue = optimisticLockingPolicy.getWriteLockValue(original, getPrimaryKeys(), session);
org.eclipse.persistence.internal.descriptorsOptimisticLockingPolicygetWriteLockValue

Javadoc

INTERNAL: This method will return the optimistic lock value for the object #see this method in VersionLockingPolicy

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
  • initialize
    INTERNAL: It is responsible for initializing the policy. #see this method in VersionLockingPolicy
  • getWriteLockUpdateExpression,
  • initialize,
  • initializeProperties,
  • isCascaded,
  • isNewerVersion,
  • isStoredInCache,
  • mergeIntoParentCache,
  • setDescriptor,
  • setupWriteFieldsForInsert

Popular in Java

  • Reactive rest calls using spring rest template
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • setContentView (Activity)
  • putExtra (Intent)
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • Notification (javax.management)
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
  • Best plugins for Eclipse
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