congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
OptimisticLockingPolicy.buildDeleteExpression
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: org.eclipse.persistence/org.eclipse.persistence.core

/**
 * Build and return the expression to use as the where clause to delete an object.
 * The row is passed to allow the version number to be extracted from it.
 * If called with usesOptimisticLocking==true the caller should make sure that descriptor uses optimistic locking policy.
 */
public Expression buildDeleteExpression(DatabaseTable table, AbstractRecord row, boolean usesOptimisticLocking) {
  if (usesOptimisticLocking && (this.descriptor.getTables().firstElement().equals(table))) {
    return this.descriptor.getOptimisticLockingPolicy().buildDeleteExpression(table, primaryKeyExpression, row);
  } else {
    return buildPrimaryKeyExpression(table);
  }
}
origin: com.haulmont.thirdparty/eclipselink

/**
 * Build and return the expression to use as the where clause to delete an object.
 * The row is passed to allow the version number to be extracted from it.
 * If called with usesOptimisticLocking==true the caller should make sure that descriptor uses optimistic locking policy.
 */
public Expression buildDeleteExpression(DatabaseTable table, AbstractRecord row, boolean usesOptimisticLocking) {
  if (usesOptimisticLocking && (this.descriptor.getTables().firstElement().equals(table))) {
    return this.descriptor.getOptimisticLockingPolicy().buildDeleteExpression(table, primaryKeyExpression, row);
  } else {
    return buildPrimaryKeyExpression(table);
  }
}
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

/**
 * Build and return the expression to use as the where clause to delete an object.
 * The row is passed to allow the version number to be extracted from it.
 */
public Expression buildDeleteExpression(DatabaseTable table, AbstractRecord row) {
  if (this.descriptor.usesOptimisticLocking() && (this.descriptor.getTables().firstElement().equals(table))) {
    return this.descriptor.getOptimisticLockingPolicy().buildDeleteExpression(table, primaryKeyExpression, row);
  } else {
    return buildPrimaryKeyExpression(table);
  }
}
org.eclipse.persistence.internal.descriptorsOptimisticLockingPolicybuildDeleteExpression

Javadoc

INTERNAL: When given an expression, this method will return a new expression with the optimistic locking values included. This expression will be used in a delete call. #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
  • 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
  • initialize
    INTERNAL: It is responsible for initializing the policy. #see this method in VersionLockingPolicy
  • getWriteLockValue,
  • initialize,
  • initializeProperties,
  • isCascaded,
  • isNewerVersion,
  • isStoredInCache,
  • mergeIntoParentCache,
  • setDescriptor,
  • setupWriteFieldsForInsert

Popular in Java

  • Creating JSON documents from java classes using gson
  • scheduleAtFixedRate (ScheduledExecutorService)
  • onRequestPermissionsResult (Fragment)
  • scheduleAtFixedRate (Timer)
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • Dictionary (java.util)
    Note: Do not use this class since it is obsolete. Please use the Map interface for new implementatio
  • Properties (java.util)
    A Properties object is a Hashtable where the keys and values must be Strings. Each property can have
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
  • 14 Best Plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now