public interface TranslationService
CouchbaseStorable format.| Modifier and Type | Method and Description |
|---|---|
CouchbaseStorable |
decode(String source,
CouchbaseStorable target)
Decodes the target format into a
CouchbaseDocument |
<T> T |
decodeFragment(String source,
Class<T> target)
Decodes an ad-hoc JSON object into a corresponding "case" class.
|
String |
encode(CouchbaseStorable source)
Encodes a JSON String into the target format.
|
String encode(CouchbaseStorable source)
source - the source contents to encode.CouchbaseStorable decode(String source, CouchbaseStorable target)
CouchbaseDocumentsource - the source formatted document.target - the target of the populated data.<T> T decodeFragment(String source, Class<T> target)
T - the target class.source - the JSON for the ad-hoc JSON object (from a N1QL query for instance).target - the target class information.Copyright © 2011–2022 Pivotal Software, Inc.. All rights reserved.