public interface IProtobufDao
| Modifier and Type | Method and Description |
|---|---|
void |
addToList(String listKey,
String objectKey)
Add an object to a list
|
void |
addToOrderedList(String listKey,
String objectKey,
long weight) |
void |
archive(String key)
Mark the given key as archived.
|
List<String> |
findAllList(String listKey) |
List<com.google.protobuf.Message> |
findAllListObjects(String listKey) |
List<String> |
findAllOrderedListAscending(String listKey) |
List<String> |
findAllOrderedListDescending(String listKey) |
List<com.google.protobuf.Message> |
findAllOrderedListObjectsAscending(String listKey) |
List<com.google.protobuf.Message> |
findAllOrderedListObjectsDescending(String listKey) |
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 listKey,
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> |
findListObjects(String listKey,
int start,
int count) |
List<String> |
findOrderedListAscending(String listKey,
int start,
int conut) |
List<String> |
findOrderedListDescending(String listKey,
int start,
int conut) |
List<com.google.protobuf.Message> |
findOrderedListObjectsAscending(String listKey,
int start,
int count) |
List<com.google.protobuf.Message> |
findOrderedListObjectsDescending(String listKey,
int start,
int count) |
com.google.protobuf.Message |
getMessageDefaultInstance() |
void |
removeFromList(String listKey,
String objectKey)
Remove an object from a list
|
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
|
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 listKey, int start, int count)
listKey - the list keystart - the starting indexcount - the maximum count of objects to returnList<com.google.protobuf.Message> findListObjects(String listKey, int start, int count)
List<com.google.protobuf.Message> findOrderedListObjectsAscending(String listKey, int start, int count)
List<com.google.protobuf.Message> findAllOrderedListObjectsAscending(String listKey)
List<com.google.protobuf.Message> findOrderedListObjectsDescending(String listKey, int start, int count)
List<com.google.protobuf.Message> findAllOrderedListObjectsDescending(String listKey)
List<String> findOrderedListAscending(String listKey, int start, int conut)
List<String> findOrderedListDescending(String listKey, int start, int conut)
void 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 removeFromList(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.