Class TransactionGetResult
java.lang.Object
com.couchbase.client.java.transactions.TransactionGetResult
Represents a value fetched from Couchbase, along with additional transactional metadata.
- 
Constructor SummaryConstructorsConstructorDescriptionTransactionGetResult(CoreTransactionGetResult internal, JsonSerializer serializer, Transcoder transcoder) 
- 
Method SummaryModifier 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
- 
idReturns the document's ID, which must be unique across the bucket.
- 
contentAsObjectDecodes the content of the document into aJsonObjectusing the default decoder.
- 
contentAsDecodes 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.
 
- 
contentAsDecodes 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.
 
- 
contentAsBytespublic byte[] contentAsBytes()Returns the raw unconverted contents as a byte[].
 
-