Codota Logo
SelectedFieldsLockingPolicy.<init>
Code IndexAdd Codota to your IDE (free)

How to use
org.eclipse.persistence.descriptors.SelectedFieldsLockingPolicy
constructor

Best Java code snippets using org.eclipse.persistence.descriptors.SelectedFieldsLockingPolicy.<init> (Showing top 4 results out of 315)

  • Common ways to obtain SelectedFieldsLockingPolicy
private void myMethod () {
SelectedFieldsLockingPolicy s =
  • Codota Iconnew SelectedFieldsLockingPolicy()
  • Smart code suggestions by Codota
}
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: 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);
}
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

  throw ValidationException.optimisticLockingSelectedColumnNamesNotSpecified(descriptor.getJavaClass());
} else {
  SelectedFieldsLockingPolicy policy = new SelectedFieldsLockingPolicy();
org.eclipse.persistence.descriptorsSelectedFieldsLockingPolicy<init>

Javadoc

PUBLIC: Create a new selected fields locking policy. A field locking policy is based 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.

Popular methods of SelectedFieldsLockingPolicy

  • 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
  • setLockFieldNames
    PUBLIC: Set the field names to lock on. All fields in this list will be compared when Updating. If t
  • verifyUsage

Popular in Java

  • Making http post requests using okhttp
  • findViewById (Activity)
  • orElseThrow (Optional)
  • addToBackStack (FragmentTransaction)
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • URI (java.net)
    Represents a Uniform Resource Identifier (URI) reference. Aside from some minor deviations noted bel
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • BoxLayout (javax.swing)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now