Class TransactionGetResult
java.lang.Object
com.couchbase.client.java.transactions.TransactionGetResult
Represents a value fetched from Couchbase, along with additional transactional metadata.
-
Constructor Summary
ConstructorsConstructorDescriptionTransactionGetResult(CoreTransactionGetResult internal, JsonSerializer serializer, Transcoder transcoder) -
Method Summary
Modifier and TypeMethodDescription<T> TDecodes the content of the document into the target class.<T> TDecodes the content of the document into the target class.byte[]Returns the raw unconverted contents as a byte[].Decodes the content of the document into aJsonObjectusing the default decoder.id()Returns the document's ID, which must be unique across the bucket.toString()
-
Constructor Details
-
TransactionGetResult
@Internal public TransactionGetResult(CoreTransactionGetResult internal, JsonSerializer serializer, @Nullable Transcoder transcoder)
-
-
Method Details
-
toString
-
id
Returns the document's ID, which must be unique across the bucket. -
contentAsObject
Decodes the content of the document into aJsonObjectusing the default decoder. -
contentAs
Decodes the content of the document into the target class.The JsonSerializer configured on the underlying Java SDK is used.
- Parameters:
target- the target class to decode the encoded content into.
-
contentAs
Decodes the content of the document into the target class.The JsonSerializer configured on the underlying Java SDK is used.
- Parameters:
target- the target class to decode the encoded content into.
-
contentAsBytes
public byte[] contentAsBytes()Returns the raw unconverted contents as a byte[].
-