T - The type of data this adapter will be used forpublic interface SubjectAdapter<T extends Subject>
| Modifier and Type | Method and Description |
|---|---|
T |
deserialize(com.fasterxml.jackson.databind.JsonNode node)
How should the client deserialize a Json response from the datastore
server.
|
T |
readFromMongo(org.bson.Document doc)
How should the server read this Subject from a Mongo Document.
|
void |
writeToMongo(T subject,
org.bson.Document doc)
How should the server write this Subject to a Mongo document.
|
void writeToMongo(T subject, org.bson.Document doc)
subject - doc - T readFromMongo(org.bson.Document doc)
doc - T deserialize(com.fasterxml.jackson.databind.JsonNode node)
node - Copyright © 2019. All rights reserved.