public interface IProtobufDao
| Modifier and Type | Method and Description |
|---|---|
void |
addToList(String listKey,
String objectKey)
Add an object to a list
|
void |
archive(String key)
Mark the given key as archived.
|
com.google.protobuf.Message |
findByKey(String key)
Returns the object assigned to the given key
|
com.google.protobuf.Message |
findFieldsByKey(String key,
List<String> fields)
Returns partial object containing only the specified fields
|
List<String> |
findList(String key,
int start,
int count)
Returns list of objects starting from the given index; the list
will be maximum of size 'count'
|
List<com.google.protobuf.Message> |
getAll()
Returns map of key to object for all objects in the given data source
|
com.google.protobuf.Message |
getMessageDefaultInstance() |
void |
store(String key,
com.google.protobuf.Message object)
Store the given object
|
void |
storeOrUpdate(String key,
com.google.protobuf.Message object)
Store or update the given object
|
List<com.google.protobuf.Message> getAll()
com.google.protobuf.Message findByKey(String key)
key - key assigned to the object to be fetchedcom.google.protobuf.Message findFieldsByKey(String key, List<String> fields)
key - key assigned to the object to be fetchedfields - list of field names to be returnedList<String> findList(String key, int start, int count)
key - list keystart - the starting indexcount - the maximum count of objects to returnvoid store(String key, com.google.protobuf.Message object)
key - the key assigned to the objectobject - the protobuf object to be storedvoid addToList(String listKey, String objectKey)
listKey - key associated to the listobjectKey - object keyvoid storeOrUpdate(String key, com.google.protobuf.Message object)
key - the key assigned to the objectobject - the protobuf object to be storedvoid archive(String key)
key - the key referring to the object to be archived.com.google.protobuf.Message getMessageDefaultInstance()
Copyright © 2015. All rights reserved.