Class SingleQueryTransactionResult


  • public class SingleQueryTransactionResult
    extends java.lang.Object
    Contains the result of a single query transaction.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      TransactionLogger log()
      An in-memory log of the transaction.
      com.couchbase.client.java.query.QueryResult queryResult()
      The result of the query.
      boolean unstagingComplete()
      Returns whether all documents were successfully unstaged (committed).
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SingleQueryTransactionResult

        public SingleQueryTransactionResult​(TransactionLogger log,
                                            com.couchbase.client.java.query.QueryResult queryResult,
                                            boolean unstagingComplete)
    • Method Detail

      • queryResult

        public com.couchbase.client.java.query.QueryResult queryResult()
        The result of the query.
      • unstagingComplete

        public boolean unstagingComplete()
        Returns whether all documents were successfully unstaged (committed). This will only return true if the transaction reached the COMMIT point and then went on to reach the COMPLETE point. It will be false for transactions that: - Rolled back - Were read-only