public class TransactionGetResult extends Object
Modifier and Type | Method and Description |
---|---|
<T> T |
contentAs(Class<T> target)
Decodes the content of the document into the target class.
|
<T> T |
contentAs(TypeRef<T> target)
Decodes the content of the document into the target class.
|
byte[] |
contentAsBytes()
Returns the raw unconverted contents as a byte[].
|
JsonObject |
contentAsObject()
Decodes the content of the document into a
JsonObject using the default decoder. |
String |
id()
Returns the document's ID, which must be unique across the bucket.
|
String |
toString() |
public String id()
public JsonObject contentAsObject()
JsonObject
using the default decoder.public <T> T contentAs(Class<T> target)
The JsonSerializer configured on the underlying Java SDK is used.
target
- the target class to decode the encoded content into.public <T> T contentAs(TypeRef<T> target)
The JsonSerializer configured on the underlying Java SDK is used.
target
- the target class to decode the encoded content into.public byte[] contentAsBytes()
Copyright © 2024 Couchbase, Inc.. All rights reserved.