Module eclipselink

Class OptimisticLockException

  • All Implemented Interfaces:
    Serializable

    public class OptimisticLockException
    extends EclipseLinkException

    Purpose: This exception is used when TopLink's optimistic locking feature is used. It will be raised if the object being updated or deleted was changed or deleted from the database since it as last read.

    See Also:
    Serialized Form
    • Field Detail

      • query

        protected transient ObjectLevelModifyQuery query
        Store the query that raised the optimistic violation.
      • NO_VERSION_NUMBER_WHEN_DELETING

        public static final int NO_VERSION_NUMBER_WHEN_DELETING
        See Also:
        Constant Field Values
      • OBJECT_CHANGED_SINCE_LAST_READ_WHEN_DELETING

        public static final int OBJECT_CHANGED_SINCE_LAST_READ_WHEN_DELETING
        See Also:
        Constant Field Values
      • NO_VERSION_NUMBER_WHEN_UPDATING

        public static final int NO_VERSION_NUMBER_WHEN_UPDATING
        See Also:
        Constant Field Values
      • OBJECT_CHANGED_SINCE_LAST_READ_WHEN_UPDATING

        public static final int OBJECT_CHANGED_SINCE_LAST_READ_WHEN_UPDATING
        See Also:
        Constant Field Values
      • MUST_HAVE_MAPPING_WHEN_IN_OBJECT

        public static final int MUST_HAVE_MAPPING_WHEN_IN_OBJECT
        See Also:
        Constant Field Values
      • NEED_TO_MAP_JAVA_SQL_TIMESTAMP

        public static final int NEED_TO_MAP_JAVA_SQL_TIMESTAMP
        See Also:
        Constant Field Values
      • UNWRAPPING_OBJECT_DELETED_SINCE_LAST_READ

        public static final int UNWRAPPING_OBJECT_DELETED_SINCE_LAST_READ
        See Also:
        Constant Field Values
      • OBJECT_CHANGED_SINCE_LAST_MERGE

        public static final int OBJECT_CHANGED_SINCE_LAST_MERGE
        See Also:
        Constant Field Values
      • STATEMENT_NOT_EXECUTED_IN_BATCH

        public static final int STATEMENT_NOT_EXECUTED_IN_BATCH
        See Also:
        Constant Field Values
    • Constructor Detail

      • OptimisticLockException

        protected OptimisticLockException()
        INTERNAL: EclipseLink exceptions should only be thrown by EclipseLink.
      • OptimisticLockException

        protected OptimisticLockException​(String theMessage)
        INTERNAL: EclipseLink exceptions should only be thrown by EclipseLink.
      • OptimisticLockException

        protected OptimisticLockException​(String theMessage,
                                          ObjectLevelModifyQuery query)
        INTERNAL: EclipseLink exceptions should only be thrown by EclipseLink.