Tabnine Logo
OptimisticLockException.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
org.eclipse.persistence.exceptions.OptimisticLockException
constructor

Best Java code snippets using org.eclipse.persistence.exceptions.OptimisticLockException.<init> (Showing top 20 results out of 315)

origin: com.haulmont.thirdparty/eclipselink

public static OptimisticLockException objectChangedSinceLastMerge(Object object) {        
  Object[] args = { object, object.getClass().getName(), CR };
  OptimisticLockException optimisticLockException = new OptimisticLockException(ExceptionMessageGenerator.buildMessage(OptimisticLockException.class, OBJECT_CHANGED_SINCE_LAST_MERGE, args));
  optimisticLockException.setErrorCode(OBJECT_CHANGED_SINCE_LAST_MERGE);
  return optimisticLockException;
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

public static OptimisticLockException unwrappingObjectDeletedSinceLastRead(Vector pkVector, String className) {
  Object[] args = { pkVector, className };
  OptimisticLockException optimisticLockException = new OptimisticLockException(ExceptionMessageGenerator.buildMessage(OptimisticLockException.class, UNWRAPPING_OBJECT_DELETED_SINCE_LAST_READ, args));
  optimisticLockException.setErrorCode(UNWRAPPING_OBJECT_DELETED_SINCE_LAST_READ);
  return optimisticLockException;
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

public static OptimisticLockException mustHaveMappingWhenStoredInObject(Class aClass) {
  Object[] args = { aClass };
  OptimisticLockException optimisticLockException = new OptimisticLockException(ExceptionMessageGenerator.buildMessage(OptimisticLockException.class, MUST_HAVE_MAPPING_WHEN_IN_OBJECT, args));
  optimisticLockException.setErrorCode(MUST_HAVE_MAPPING_WHEN_IN_OBJECT);
  return optimisticLockException;
}
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

public static OptimisticLockException mustHaveMappingWhenStoredInObject(Class aClass) {
  Object[] args = { aClass };
  OptimisticLockException optimisticLockException = new OptimisticLockException(ExceptionMessageGenerator.buildMessage(OptimisticLockException.class, MUST_HAVE_MAPPING_WHEN_IN_OBJECT, args));
  optimisticLockException.setErrorCode(MUST_HAVE_MAPPING_WHEN_IN_OBJECT);
  return optimisticLockException;
}
origin: com.haulmont.thirdparty/eclipselink

public static OptimisticLockException needToMapJavaSqlTimestampWhenStoredInObject() {
  Object[] args = {  };
  OptimisticLockException optimisticLockException = new OptimisticLockException(ExceptionMessageGenerator.buildMessage(OptimisticLockException.class, NEED_TO_MAP_JAVA_SQL_TIMESTAMP, args));
  optimisticLockException.setErrorCode(NEED_TO_MAP_JAVA_SQL_TIMESTAMP);
  return optimisticLockException;
}
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

public static OptimisticLockException unwrappingObjectDeletedSinceLastRead(Vector pkVector, String className) {
  Object[] args = { pkVector, className };
  OptimisticLockException optimisticLockException = new OptimisticLockException(ExceptionMessageGenerator.buildMessage(OptimisticLockException.class, UNWRAPPING_OBJECT_DELETED_SINCE_LAST_READ, args));
  optimisticLockException.setErrorCode(UNWRAPPING_OBJECT_DELETED_SINCE_LAST_READ);
  return optimisticLockException;
}
origin: com.haulmont.thirdparty/eclipselink

public static OptimisticLockException mustHaveMappingWhenStoredInObject(Class aClass) {
  Object[] args = { aClass };
  OptimisticLockException optimisticLockException = new OptimisticLockException(ExceptionMessageGenerator.buildMessage(OptimisticLockException.class, MUST_HAVE_MAPPING_WHEN_IN_OBJECT, args));
  optimisticLockException.setErrorCode(MUST_HAVE_MAPPING_WHEN_IN_OBJECT);
  return optimisticLockException;
}
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

public static OptimisticLockException batchStatementExecutionFailure(){
  Object[] args = { };
  OptimisticLockException optimisticLockException = new OptimisticLockException(ExceptionMessageGenerator.buildMessage(OptimisticLockException.class, STATEMENT_NOT_EXECUTED_IN_BATCH, args));
  optimisticLockException.setErrorCode(STATEMENT_NOT_EXECUTED_IN_BATCH);
  return optimisticLockException;

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

public static OptimisticLockException needToMapJavaSqlTimestampWhenStoredInObject() {
  Object[] args = {  };
  OptimisticLockException optimisticLockException = new OptimisticLockException(ExceptionMessageGenerator.buildMessage(OptimisticLockException.class, NEED_TO_MAP_JAVA_SQL_TIMESTAMP, args));
  optimisticLockException.setErrorCode(NEED_TO_MAP_JAVA_SQL_TIMESTAMP);
  return optimisticLockException;
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

public static OptimisticLockException batchStatementExecutionFailure(){
  Object[] args = { };
  OptimisticLockException optimisticLockException = new OptimisticLockException(ExceptionMessageGenerator.buildMessage(OptimisticLockException.class, STATEMENT_NOT_EXECUTED_IN_BATCH, args));
  optimisticLockException.setErrorCode(STATEMENT_NOT_EXECUTED_IN_BATCH);
  return optimisticLockException;
}
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

public static OptimisticLockException noVersionNumberWhenDeleting(Object object, ObjectLevelModifyQuery query) {
  Vector key = new Vector();
  if (query.getSession() != null) {
    key = query.getSession().keyFromObject(object);
  }
  Object[] args = { object, object.getClass().getName(), key, CR };
  OptimisticLockException optimisticLockException = new OptimisticLockException(ExceptionMessageGenerator.buildMessage(OptimisticLockException.class, NO_VERSION_NUMBER_WHEN_DELETING, args), query);
  optimisticLockException.setErrorCode(NO_VERSION_NUMBER_WHEN_DELETING);
  return optimisticLockException;
}
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

public static OptimisticLockException objectChangedSinceLastReadWhenDeleting(Object object, ObjectLevelModifyQuery query) {
  Vector key = new Vector();
  if (query.getSession() != null) {
    key = query.getSession().keyFromObject(object);
  }
  Object[] args = { object, object.getClass().getName(), key, CR };
  OptimisticLockException optimisticLockException = new OptimisticLockException(ExceptionMessageGenerator.buildMessage(OptimisticLockException.class, OBJECT_CHANGED_SINCE_LAST_READ_WHEN_DELETING, args), query);
  optimisticLockException.setErrorCode(OBJECT_CHANGED_SINCE_LAST_READ_WHEN_DELETING);
  return optimisticLockException;
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

public static OptimisticLockException objectChangedSinceLastReadWhenDeleting(Object object, ObjectLevelModifyQuery query) {
  Object key = null;
  if (query.getSession() != null) {
    key = query.getSession().getId(object);
  }
  Object[] args = { object, object.getClass().getName(), key, CR };
  OptimisticLockException optimisticLockException = new OptimisticLockException(ExceptionMessageGenerator.buildMessage(OptimisticLockException.class, OBJECT_CHANGED_SINCE_LAST_READ_WHEN_DELETING, args), query);
  optimisticLockException.setErrorCode(OBJECT_CHANGED_SINCE_LAST_READ_WHEN_DELETING);
  return optimisticLockException;
}
origin: com.haulmont.thirdparty/eclipselink

public static OptimisticLockException noVersionNumberWhenUpdating(Object object, ObjectLevelModifyQuery query) {
  Object key = null;
  if (query.getSession() != null) {
    key = query.getSession().getId(object);
  }
  Object[] args = { object, object.getClass().getName(), key, CR };
  OptimisticLockException optimisticLockException = new OptimisticLockException(ExceptionMessageGenerator.buildMessage(OptimisticLockException.class, NO_VERSION_NUMBER_WHEN_UPDATING, args), query);
  optimisticLockException.setErrorCode(NO_VERSION_NUMBER_WHEN_UPDATING);
  return optimisticLockException;
}
origin: com.haulmont.thirdparty/eclipselink

public static OptimisticLockException objectChangedSinceLastReadWhenDeleting(Object object, ObjectLevelModifyQuery query) {
  Object key = null;
  if (query.getSession() != null) {
    key = query.getSession().getId(object);
  }
  Object[] args = { object, object.getClass().getName(), key, CR };
  OptimisticLockException optimisticLockException = new OptimisticLockException(ExceptionMessageGenerator.buildMessage(OptimisticLockException.class, OBJECT_CHANGED_SINCE_LAST_READ_WHEN_DELETING, args), query);
  optimisticLockException.setErrorCode(OBJECT_CHANGED_SINCE_LAST_READ_WHEN_DELETING);
  return optimisticLockException;
}
origin: com.haulmont.thirdparty/eclipselink

public static OptimisticLockException objectChangedSinceLastReadWhenUpdating(Object object, ObjectLevelModifyQuery query) {
  Object key = null;
  if (query.getSession() != null) {
    key = query.getSession().getId(object);
  }
  Object[] args = { object, object.getClass().getName(), key, CR };
  OptimisticLockException optimisticLockException = new OptimisticLockException(ExceptionMessageGenerator.buildMessage(OptimisticLockException.class, OBJECT_CHANGED_SINCE_LAST_READ_WHEN_UPDATING, args), query);
  optimisticLockException.setErrorCode(OBJECT_CHANGED_SINCE_LAST_READ_WHEN_UPDATING);
  return optimisticLockException;
}
 
origin: org.eclipse.persistence/org.eclipse.persistence.core

public static OptimisticLockException noVersionNumberWhenDeleting(Object object, ObjectLevelModifyQuery query) {
  Object key = null;
  if (query.getSession() != null) {
    key = query.getSession().getId(object);
  }
  Object[] args = { object, object.getClass().getName(), key, CR };
  OptimisticLockException optimisticLockException = new OptimisticLockException(ExceptionMessageGenerator.buildMessage(OptimisticLockException.class, NO_VERSION_NUMBER_WHEN_DELETING, args), query);
  optimisticLockException.setErrorCode(NO_VERSION_NUMBER_WHEN_DELETING);
  return optimisticLockException;
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

public static OptimisticLockException noVersionNumberWhenUpdating(Object object, ObjectLevelModifyQuery query) {
  Object key = null;
  if (query.getSession() != null) {
    key = query.getSession().getId(object);
  }
  Object[] args = { object, object.getClass().getName(), key, CR };
  OptimisticLockException optimisticLockException = new OptimisticLockException(ExceptionMessageGenerator.buildMessage(OptimisticLockException.class, NO_VERSION_NUMBER_WHEN_UPDATING, args), query);
  optimisticLockException.setErrorCode(NO_VERSION_NUMBER_WHEN_UPDATING);
  return optimisticLockException;
}
origin: com.haulmont.thirdparty/eclipselink

public static OptimisticLockException noVersionNumberWhenDeleting(Object object, ObjectLevelModifyQuery query) {
  Object key = null;
  if (query.getSession() != null) {
    key = query.getSession().getId(object);
  }
  Object[] args = { object, object.getClass().getName(), key, CR };
  OptimisticLockException optimisticLockException = new OptimisticLockException(ExceptionMessageGenerator.buildMessage(OptimisticLockException.class, NO_VERSION_NUMBER_WHEN_DELETING, args), query);
  optimisticLockException.setErrorCode(NO_VERSION_NUMBER_WHEN_DELETING);
  return optimisticLockException;
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

public static OptimisticLockException objectChangedSinceLastReadWhenUpdating(Object object, ObjectLevelModifyQuery query) {
  Object key = null;
  if (query.getSession() != null) {
    key = query.getSession().getId(object);
  }
  Object[] args = { object, object.getClass().getName(), key, CR };
  OptimisticLockException optimisticLockException = new OptimisticLockException(ExceptionMessageGenerator.buildMessage(OptimisticLockException.class, OBJECT_CHANGED_SINCE_LAST_READ_WHEN_UPDATING, args), query);
  optimisticLockException.setErrorCode(OBJECT_CHANGED_SINCE_LAST_READ_WHEN_UPDATING);
  return optimisticLockException;
}
org.eclipse.persistence.exceptionsOptimisticLockException<init>

Javadoc

INTERNAL: EclipseLink exceptions should only be thrown by EclipseLink.

Popular methods of OptimisticLockException

  • batchStatementExecutionFailure
  • getQuery
    PUBLIC: Return the query in which the problem was detected.
  • mustHaveMappingWhenStoredInObject
  • needToMapJavaSqlTimestampWhenStoredInObject
  • noVersionNumberWhenDeleting
  • noVersionNumberWhenUpdating
  • objectChangedSinceLastMerge
  • objectChangedSinceLastReadWhenDeleting
  • objectChangedSinceLastReadWhenUpdating
  • setErrorCode

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getSupportFragmentManager (FragmentActivity)
  • setScale (BigDecimal)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • DecimalFormat (java.text)
    A concrete subclass of NumberFormat that formats decimal numbers. It has a variety of features desig
  • Dictionary (java.util)
    Note: Do not use this class since it is obsolete. Please use the Map interface for new implementatio
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • Option (scala)
  • Top 25 Plugins for Webstorm
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