congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
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

  • Making http requests using okhttp
  • startActivity (Activity)
  • addToBackStack (FragmentTransaction)
  • setContentView (Activity)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • Socket (java.net)
    Provides a client-side TCP socket.
  • KeyStore (java.security)
    KeyStore is responsible for maintaining cryptographic keys and their owners. The type of the syste
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • Best IntelliJ plugins
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