|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Persistence
Defines the methods exposed by a persistence manager, that stores head revision id, nodes, child node entries and blobs.
| Method Summary | |
|---|---|
ChildNodeEntriesMap |
readCNEMap(Id id)
|
StoredCommit |
readCommit(Id id)
|
Id |
readHead()
|
void |
readNode(StoredNode node)
Read a node from storage. |
Id |
writeCNEMap(ChildNodeEntriesMap map)
|
void |
writeCommit(Id id,
Commit commit)
Persist a commit, with an id that is selected by the caller. |
void |
writeHead(Id id)
|
Id |
writeNode(Node node)
|
| Method Detail |
|---|
Id readHead()
throws Exception
Exception
void writeHead(Id id)
throws Exception
Exception
void readNode(StoredNode node)
throws NotFoundException,
Exception
node - node to read, with id given in StoredNode.getId()
NotFoundException - if no such node is found
Exception - if some other error occurs
Id writeNode(Node node)
throws Exception
Exception
ChildNodeEntriesMap readCNEMap(Id id)
throws NotFoundException,
Exception
NotFoundException
Exception
Id writeCNEMap(ChildNodeEntriesMap map)
throws Exception
Exception
StoredCommit readCommit(Id id)
throws NotFoundException,
Exception
NotFoundException
Exception
void writeCommit(Id id,
Commit commit)
throws Exception
id - commit idcommit - commit
Exception - if an error occurs
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||