Class TransactionQueryResult
java.lang.Object
com.couchbase.client.java.transactions.TransactionQueryResult
The result of a N1QL query executed within a transaction, including rows and associated metadata.
Queries executed inside a transaction are always blocking/non-streaming, to allow essential error handling logic to reliably take place.
-
Constructor Summary
ConstructorDescriptionTransactionQueryResult
(CoreQueryResult internal, JsonSerializer serializer) Creates a new TransactionQueryResult. -
Method Summary
Modifier and TypeMethodDescriptionmetaData()
Returns theQueryMetaData
giving access to the additional metadata associated with this query.<T> List<T>
Returns all rows, converted into instances of the target type.<T> List<T>
Returns all rows, converted into instances of the target class.Returns all rows, converted intoJsonObject
s.
-
Constructor Details
-
TransactionQueryResult
Creates a new TransactionQueryResult.
-
-
Method Details
-
rowsAsObject
Returns all rows, converted intoJsonObject
s.- Throws:
DecodingFailureException
- if any row could not be successfully deserialized.
-
rowsAs
Returns all rows, converted into instances of the target class.- Parameters:
target
- the target class to deserialize into.- Throws:
DecodingFailureException
- if any row could not be successfully deserialized.
-
rowsAs
Returns all rows, converted into instances of the target type.- Parameters:
target
- the target type to deserialize into.- Throws:
DecodingFailureException
- if any row could not be successfully deserialized.
-
metaData
Returns theQueryMetaData
giving access to the additional metadata associated with this query.
-