Class TransactionGetMultiResult
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> T
Decodes the content of a document into the target class.<T> T
Decodes the content of a document into the target class.byte[]
contentAsBytes
(int specIndex) Returns the raw unconverted contents as a byte[], bypassing any Serializer or Transcoder.contentAsObject
(int specIndex) Decodes the content of a document into aJsonObject
.boolean
exists
(int specIndex) If the document matching this `specIndex` existed.int
size()
-
Constructor Details
-
TransactionGetMultiResult
-
-
Method Details
-
exists
public boolean exists(int specIndex) If the document matching this `specIndex` existed.- Parameters:
specIndex
- this is in the same order as the `specs` list provided to the getMulti() operation.
-
contentAsObject
Decodes the content of a document into aJsonObject
.The JsonSerializer configured on the underlying Java SDK is used, unless a Transcoder was specified in the
TransactionGetMultiSpec
, in which case that is used.The document is at the specified `specIndex`.
If the document did not exist, a
DocumentNotFoundException
is thrown.exists(int)
can be called initially to check if the document existed.- Parameters:
specIndex
- this is in the same order as the `specs` list provided to the getMulti() operation.
-
contentAs
Decodes the content of a document into the target class.The JsonSerializer configured on the underlying Java SDK is used, unless a Transcoder was specified in the
TransactionGetMultiSpec
, in which case that is used.The document is at the specified `specIndex`.
If the document did not exist, a
DocumentNotFoundException
is thrown.exists(int)
can be called initially to check if the document existed.- Parameters:
specIndex
- this is in the same order as the `specs` list provided to the getMulti() operation.target
- the target class to decode the encoded content into.
-
contentAs
Decodes the content of a document into the target class.The JsonSerializer configured on the underlying Java SDK is used, unless a Transcoder was specified in the
TransactionGetMultiSpec
, in which case that is used.The document is at the specified `specIndex`.
If the document did not exist, a
DocumentNotFoundException
is thrown.exists(int)
can be called initially to check if the document existed.- Parameters:
specIndex
- this is in the same order as the `specs` list provided to the getMulti() operation.target
- the target class to decode the encoded content into.
-
contentAsBytes
public byte[] contentAsBytes(int specIndex) Returns the raw unconverted contents as a byte[], bypassing any Serializer or Transcoder. -
size
public int size()
-