Class OptimisticLockException

    • Field Detail

      • failedObjectId

        protected ObjectId failedObjectId
      • querySQL

        protected String querySQL
      • rootEntity

        protected DbEntity rootEntity
      • qualifierSnapshot

        protected Map qualifierSnapshot
    • Constructor Detail

      • OptimisticLockException

        public OptimisticLockException​(ObjectId id,
                                       DbEntity rootEntity,
                                       String querySQL,
                                       Map qualifierSnapshot)
    • Method Detail

      • getQualifierSnapshot

        public Map getQualifierSnapshot()
      • getQuerySQL

        public String getQuerySQL()
      • getFreshSnapshot

        public Map<?,​?> getFreshSnapshot​(ObjectContext context)
        Retrieves fresh snapshot for the failed row. Null row indicates that it was deleted.
        Since:
        3.0
      • getFailedObjectId

        public ObjectId getFailedObjectId()
        Returns the ObjectId of the object that caused the OptimisticLockException.
        Since:
        3.1