public class ExampleAdapter extends Object implements SubjectAdapter<ExampleSubject>
| Modifier and Type | Field and Description |
|---|---|
static String |
NAME
Field used to store the client in Mongo.
|
| Constructor and Description |
|---|
ExampleAdapter() |
| Modifier and Type | Method and Description |
|---|---|
ExampleSubject |
deserialize(com.fasterxml.jackson.databind.JsonNode node) |
ExampleSubject |
readFromMongo(org.bson.Document doc) |
void |
writeToMongo(ExampleSubject link,
org.bson.Document doc) |
public static final String NAME
public final void writeToMongo(ExampleSubject link, org.bson.Document doc)
writeToMongo in interface SubjectAdapter<ExampleSubject>link - doc - public final ExampleSubject readFromMongo(org.bson.Document doc)
readFromMongo in interface SubjectAdapter<ExampleSubject>doc - public final ExampleSubject deserialize(com.fasterxml.jackson.databind.JsonNode node)
deserialize in interface SubjectAdapter<ExampleSubject>node - Copyright © 2019. All rights reserved.