Class TransactionGetResult
java.lang.Object
com.couchbase.client.java.transactions.TransactionGetResult
Represents a value fetched from Couchbase, along with additional transactional metadata.
-
Method Summary
Modifier and TypeMethodDescription<T> T
Decodes the content of the document into the target class.<T> T
Decodes 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 aJsonObject
using the default decoder.id()
Returns the document's ID, which must be unique across the bucket.toString()
-
Method Details
-
toString
-
id
Returns the document's ID, which must be unique across the bucket. -
contentAsObject
Decodes the content of the document into aJsonObject
using 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[].
-