Tabnine Logo
FieldsLockingPolicy.buildExpression
Code IndexAdd Tabnine to your IDE (free)

How to use
buildExpression
method
in
org.eclipse.persistence.descriptors.FieldsLockingPolicy

Best Java code snippets using org.eclipse.persistence.descriptors.FieldsLockingPolicy.buildExpression (Showing top 6 results out of 315)

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

/**
 * INTERNAL:
 * When given an expression, this method will return a new expression with the optimistic
 * locking values included.  The values are taken from the passed in database row.
 * This expression will be used in a delete call.
 */
public Expression buildDeleteExpression(DatabaseTable table, Expression mainExpression, AbstractRecord row) {
  return mainExpression.and(buildExpression(table, row, null, mainExpression.getBuilder()));
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

/**
 * INTERNAL:
 * This method must be included in any locking policy.  When given an
 * expression, this method will return a new expression with the optimistic
 * locking values included.  The values are taken from the passed in database row.
 * This expression will be used in a delete call.
 */
public Expression buildUpdateExpression(DatabaseTable table, Expression mainExpression, AbstractRecord transRow, AbstractRecord modifyRow) {
  return mainExpression.and(buildExpression(table, transRow, modifyRow, mainExpression.getBuilder()));
}
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

/**
 * INTERNAL:
 * This method must be included in any locking policy.  When given an
 * expression, this method will return a new expression with the optimistic
 * locking values included.  The values are taken from the passed in database row.
 * This expression will be used in a delete call.
 */
public Expression buildUpdateExpression(DatabaseTable table, Expression mainExpression, AbstractRecord transRow, AbstractRecord modifyRow) {
  return mainExpression.and(buildExpression(table, transRow, modifyRow, mainExpression.getBuilder()));
}
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

/**
 * INTERNAL:
 * When given an expression, this method will return a new expression with the optimistic
 * locking values included.  The values are taken from the passed in database row.
 * This expression will be used in a delete call.
 */
public Expression buildDeleteExpression(DatabaseTable table, Expression mainExpression, AbstractRecord row) {
  return mainExpression.and(buildExpression(table, row, null, mainExpression.getBuilder()));
}
origin: com.haulmont.thirdparty/eclipselink

/**
 * INTERNAL:
 * When given an expression, this method will return a new expression with the optimistic
 * locking values included.  The values are taken from the passed in database row.
 * This expression will be used in a delete call.
 */
public Expression buildDeleteExpression(DatabaseTable table, Expression mainExpression, AbstractRecord row) {
  return mainExpression.and(buildExpression(table, row, null, mainExpression.getBuilder()));
}
origin: com.haulmont.thirdparty/eclipselink

/**
 * INTERNAL:
 * This method must be included in any locking policy.  When given an
 * expression, this method will return a new expression with the optimistic
 * locking values included.  The values are taken from the passed in database row.
 * This expression will be used in a delete call.
 */
public Expression buildUpdateExpression(DatabaseTable table, Expression mainExpression, AbstractRecord transRow, AbstractRecord modifyRow) {
  return mainExpression.and(buildExpression(table, transRow, modifyRow, mainExpression.getBuilder()));
}
org.eclipse.persistence.descriptorsFieldsLockingPolicybuildExpression

Javadoc

INTERNAL: returns the expression to be used in both the delete and update where clause.

Popular methods of FieldsLockingPolicy

  • buildAllNonPrimaryKeyFields
    INTERNAL: Returns the fields that should be compared in the where clause. In this case, it is all th
  • getAllNonPrimaryKeyFields
    INTERNAL: filter the fields based on the passed in table. Only return fields of this table.
  • getFieldsToCompare
    INTERNAL: Returns the fields that should be compared in the where clause. This method must be implem
  • initialize
    INTERNAL: It is responsible for initializing the policy;
  • isPrimaryKey
    INTERNAL: Returns whether or not this field is a primary key. This method will also return true for

Popular in Java

  • Reading from database using SQL prepared statement
  • getExternalFilesDir (Context)
  • getSystemService (Context)
  • getApplicationContext (Context)
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • Dictionary (java.util)
    Note: Do not use this class since it is obsolete. Please use the Map interface for new implementatio
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • JOptionPane (javax.swing)
  • Github Copilot 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