Tabnine Logo
SelectedFieldsLockingPolicy.setLockFieldNames
Code IndexAdd Tabnine to your IDE (free)

How to use
setLockFieldNames
method
in
org.eclipse.persistence.descriptors.SelectedFieldsLockingPolicy

Best Java code snippets using org.eclipse.persistence.descriptors.SelectedFieldsLockingPolicy.setLockFieldNames (Showing top 3 results out of 315)

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

/**
 * PUBLIC:
 * Set the locking policy a selected fields locking policy.
 * A field locking policy is base on locking on the specified fields by comparing with their previous values to detect field-level collisions.
 * Note: the unit of work must be used for all updates when using field locking.
 * @see SelectedFieldsLockingPolicy
 */
public void useSelectedFieldsLocking(Vector fieldNames) {
  SelectedFieldsLockingPolicy policy = new SelectedFieldsLockingPolicy();
  policy.setLockFieldNames(fieldNames);
  setOptimisticLockingPolicy(policy);
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

/**
 * PUBLIC:
 * Set the locking policy a selected fields locking policy.
 * A field locking policy is base on locking on the specified fields by comparing with their previous values to detect field-level collisions.
 * Note: the unit of work must be used for all updates when using field locking.
 * @see SelectedFieldsLockingPolicy
 */
public void useSelectedFieldsLocking(Vector fieldNames) {
  SelectedFieldsLockingPolicy policy = new SelectedFieldsLockingPolicy();
  policy.setLockFieldNames(fieldNames);
  setOptimisticLockingPolicy(policy);
}
origin: com.haulmont.thirdparty/eclipselink

/**
 * PUBLIC:
 * Set the locking policy a selected fields locking policy.
 * A field locking policy is base on locking on the specified fields by comparing with their previous values to detect field-level collisions.
 * Note: the unit of work must be used for all updates when using field locking.
 * @see SelectedFieldsLockingPolicy
 */
public void useSelectedFieldsLocking(Vector fieldNames) {
  SelectedFieldsLockingPolicy policy = new SelectedFieldsLockingPolicy();
  policy.setLockFieldNames(fieldNames);
  setOptimisticLockingPolicy(policy);
}
org.eclipse.persistence.descriptorsSelectedFieldsLockingPolicysetLockFieldNames

Javadoc

PUBLIC: Set the field names to lock on. All fields in this list will be compared when Updating. If the value of any of the fields does not match the value in memory, an OptimisticLockException will be thrown. Note: An Automatic update will not be done on this field, only a comparison occurs.

Popular methods of SelectedFieldsLockingPolicy

  • <init>
    PUBLIC: Create a new selected fields locking policy. A field locking policy is based on locking on t
  • addLockFieldName
    PUBLIC: Add a fieldname to lock on. All fields in this list will be compared when Updating if the va
  • getLockFields
    INTERNAL: returns the lock fields based on the passed in table
  • getLockFieldsByTable
    INTERNAL: returns the lock fields
  • verifyUsage

Popular in Java

  • Reading from database using SQL prepared statement
  • scheduleAtFixedRate (Timer)
  • putExtra (Intent)
  • setScale (BigDecimal)
  • ArrayList (java.util)
    ArrayList is an implementation of List, backed by an array. All optional operations including adding
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • PriorityQueue (java.util)
    A PriorityQueue holds elements on a priority heap, which orders the elements according to their natu
  • JTable (javax.swing)
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • From CI to AI: The AI layer in your organization
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