Package com.couchbase.transactions
Class SingleQueryTransactionResult
- java.lang.Object
-
- com.couchbase.transactions.SingleQueryTransactionResult
-
public class SingleQueryTransactionResult extends java.lang.Object
Contains the result of a single query transaction.
-
-
Constructor Summary
Constructors Constructor Description SingleQueryTransactionResult​(TransactionLogger log, com.couchbase.client.java.query.QueryResult queryResult, boolean unstagingComplete)
-
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).
-
-
-
Constructor Detail
-
SingleQueryTransactionResult
public SingleQueryTransactionResult​(TransactionLogger log, com.couchbase.client.java.query.QueryResult queryResult, boolean unstagingComplete)
-
-
Method Detail
-
log
public TransactionLogger log()
An in-memory log of the transaction.
-
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
-
-