T - The type of the Document that this data store can handle.S - The type of Edits that this synchronizer can handlepublic interface ServerDataStore<T,S extends Edit<? extends Diff>> extends DataStore<T,S>
DataStore implementation is responsible for storing and serving data for a
Differential Synchronization implementation.| Modifier and Type | Method and Description |
|---|---|
Document<T> |
getDocument(String documentId)
Retrieves the
Document matching the passed-in document documentId. |
boolean |
saveDocument(Document<T> document)
Saves a server document.
|
void |
updateDocument(Document<T> document)
Updates a server document.
|
getBackupShadowDocument, getEdits, getShadowDocument, removeEdit, removeEdits, saveBackupShadowDocument, saveEdits, saveShadowDocumentboolean saveDocument(Document<T> document)
document - the Document to save.void updateDocument(Document<T> document)
document - the Document to update.Copyright © 2015 JBoss by Red Hat. All Rights Reserved.