Codota Logo
OptimisticLockingPolicy.isCascaded
Code IndexAdd Codota to your IDE (free)

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

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

  • Common ways to obtain OptimisticLockingPolicy
private void myMethod () {
OptimisticLockingPolicy o =
  • Codota IconClassDescriptor descriptor;descriptor.getOptimisticLockingPolicy()
  • Codota IconUnidirectionalOneToManyMapping unidirectionalOneToManyMapping;unidirectionalOneToManyMapping.getReferenceDescriptor().getOptimisticLockingPolicy()
  • Codota IconExpressionQueryMechanism expressionQueryMechanism;expressionQueryMechanism.getDescriptor().getOptimisticLockingPolicy()
  • Smart code suggestions by Codota
}
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

/**
 * INTERNAL:
 * Add the cascade locking policy to all children that have a relationship to this descriptor
 * either by inheritance or by encapsulation/aggregation.
 * @param policy - the CascadeLockingPolicy
 */
public void addCascadeLockingPolicy(CascadeLockingPolicy policy) {
  cascadeLockingPolicies.add(policy);
  // 232608: propagate later version changes up to the locking policy on a parent branch by setting the policy on all children here            
  if(this.hasInheritance()) {
    // InOrder traverse the entire [deep] tree, not just the next level
    Iterator<ClassDescriptor> anIterator = getInheritancePolicy().getAllChildDescriptors().iterator();
    while(anIterator.hasNext()) {
      // Set the same cascade locking policy on all descriptors that inherit from this descriptor.
      anIterator.next().addCascadeLockingPolicy(policy);
    }
  }
  // do not propagate an extra locking policy to other mappings, if this descriptor already
  // has a cascaded optimistic locking policy that will be cascaded
  if (!(usesOptimisticLocking() && getOptimisticLockingPolicy().isCascaded()) && isInitialized(INITIALIZED)) {
    // Set cascade locking policies on privately owned children mappings.
    for (Enumeration mappings = getMappings().elements(); mappings.hasMoreElements();) {
      prepareCascadeLockingPolicy((DatabaseMapping)mappings.nextElement());
    }
  }
}
 
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

    ((CascadeLockingPolicy)policies.nextElement()).lockNotifyParent(object, changeSet, this);
} else if (descriptor.usesOptimisticLocking() && descriptor.getOptimisticLockingPolicy().isCascaded()) {
  changes.setHasForcedChangesFromCascadeLocking(true);
origin: org.eclipse.persistence/org.eclipse.persistence.core

    policy.lockNotifyParent(object, changeSet, this);
} else if (descriptor.usesOptimisticLocking() && descriptor.getOptimisticLockingPolicy().isCascaded()) {
  changes.setHasForcedChangesFromCascadeLocking(true);
origin: com.haulmont.thirdparty/eclipselink

    policy.lockNotifyParent(object, changeSet, this);
} else if (descriptor.usesOptimisticLocking() && descriptor.getOptimisticLockingPolicy().isCascaded()) {
  changes.setHasForcedChangesFromCascadeLocking(true);
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

if (realParentDescriptor.usesOptimisticLocking() && realParentDescriptor.getOptimisticLockingPolicy().isCascaded()) {
  ObjectChangeSet ocs = realParentDescriptor.getObjectBuilder().createObjectChangeSet(parentObj, changeSet, uow);
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

if ((usesOptimisticLocking() && getOptimisticLockingPolicy().isCascaded()) || hasCascadeLockingPolicies()) {
  prepareCascadeLockingPolicy(mapping);
origin: com.haulmont.thirdparty/eclipselink

boolean initializeCascadeLocking = (usesOptimisticLocking() && getOptimisticLockingPolicy().isCascaded()) || hasCascadeLockingPolicies();
for (DatabaseMapping mapping : getMappings()) {
  validateMappingType(mapping);
origin: org.eclipse.persistence/org.eclipse.persistence.core

boolean initializeCascadeLocking = (usesOptimisticLocking() && getOptimisticLockingPolicy().isCascaded()) || hasCascadeLockingPolicies();
for (DatabaseMapping mapping : getMappings()) {
  validateMappingType(mapping);
origin: org.eclipse.persistence/org.eclipse.persistence.core

if (realParentDescriptor.usesOptimisticLocking() && realParentDescriptor.getOptimisticLockingPolicy().isCascaded()) {
  ObjectChangeSet ocs = realParentDescriptor.getObjectBuilder().createObjectChangeSet(parentObj, changeSet, uow);
origin: com.haulmont.thirdparty/eclipselink

if (realParentDescriptor.usesOptimisticLocking() && realParentDescriptor.getOptimisticLockingPolicy().isCascaded()) {
  ObjectChangeSet ocs = realParentDescriptor.getObjectBuilder().createObjectChangeSet(parentObj, changeSet, uow);
org.eclipse.persistence.internal.descriptorsOptimisticLockingPolicyisCascaded

Javadoc

INTERNAL: Specify if the policy cascade locks.

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,
  • isNewerVersion,
  • isStoredInCache,
  • mergeIntoParentCache,
  • setDescriptor,
  • setupWriteFieldsForInsert

Popular in Java

  • Making http post requests using okhttp
  • getApplicationContext (Context)
  • requestLocationUpdates (LocationManager)
  • setContentView (Activity)
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • Timer (java.util)
    A facility for threads to schedule tasks for future execution in a background thread. Tasks may be s
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
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