Tabnine Logo
OptimisticLockingPolicy.isCascaded
Code IndexAdd Tabnine 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)

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
  • requestLocationUpdates (LocationManager)
  • onRequestPermissionsResult (Fragment)
  • startActivity (Activity)
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • FileWriter (java.io)
    A specialized Writer that writes to a file in the file system. All write requests made by calling me
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • CodeWhisperer alternatives
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