Tabnine Logo
SelectedFieldsLockingPolicy.verifyUsage
Code IndexAdd Tabnine to your IDE (free)

How to use
verifyUsage
method
in
org.eclipse.persistence.descriptors.SelectedFieldsLockingPolicy

Best Java code snippets using org.eclipse.persistence.descriptors.SelectedFieldsLockingPolicy.verifyUsage (Showing top 3 results out of 315)

origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

/**
 * INTERNAL:
 * Values to be included in the locking mechanism are added to the translation row.
 * For changed fields the normal build row is ok as only changed fields matter.
 */
public void addLockValuesToTranslationRow(ObjectLevelModifyQuery query) throws DatabaseException{
  Object object;
  verifyUsage(query.getSession());
  if (query.isDeleteObjectQuery()) {
    object = query.getObject();
  } else {
    object = query.getBackupClone();
  }
  for (Iterator vectors = getLockFieldsByTable().values().iterator(); vectors.hasNext();) {
    for (Enumeration fields = ((Vector)vectors.next()).elements();
         fields.hasMoreElements();) {
      DatabaseField field = (DatabaseField)fields.nextElement();
      DatabaseMapping mapping = descriptor.getObjectBuilder().getMappingForField(field);
      //Bug5892889, Exception will be thrown if no matched database field found
      if(mapping == null ){
        throw DatabaseException.specifiedLockingFieldsNotFoundInDatabase(field.getQualifiedName());
      }else{
        mapping.writeFromObjectIntoRow(object, query.getTranslationRow(), query.getSession());
      }
    }
  }
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

public void addLockValuesToTranslationRow(ObjectLevelModifyQuery query) throws DatabaseException {
  Object object;
  verifyUsage(query.getSession());
  if (query.isDeleteObjectQuery()) {
    object = query.getObject();
origin: com.haulmont.thirdparty/eclipselink

public void addLockValuesToTranslationRow(ObjectLevelModifyQuery query) throws DatabaseException {
  Object object;
  verifyUsage(query.getSession());
  if (query.isDeleteObjectQuery()) {
    object = query.getObject();
org.eclipse.persistence.descriptorsSelectedFieldsLockingPolicyverifyUsage

Popular methods of SelectedFieldsLockingPolicy

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

Popular in Java

  • Making http post requests using okhttp
  • getResourceAsStream (ClassLoader)
  • setContentView (Activity)
  • requestLocationUpdates (LocationManager)
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • BitSet (java.util)
    The BitSet class implements abit array [http://en.wikipedia.org/wiki/Bit_array]. Each element is eit
  • Set (java.util)
    A Set is a data structure which does not allow duplicate elements.
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registry of org.quartz.Job
  • Top 12 Jupyter Notebook extensions
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