org.springframework.datastore.keyvalue
Interface KeyValueSession<T>

All Superinterfaces:
EntityInterceptorAware, Session

public interface KeyValueSession<T>
extends Session

Since:
1.0

Method Summary
 List<Map<String,Object>> retrieve(T... keys)
          Retrieve one or more elements from the datastore identified by their keys.
 Map<String,Object> retrieve(T key)
          Retrieve an element from the datastore identified by their keys.
 T store(String table, Map object)
          Store data in the datastore.
 
Methods inherited from interface org.springframework.datastore.core.Session
attach, beginTransaction, clear, clear, contains, createQuery, delete, delete, disconnect, flush, getAttribute, getDatastore, getFlushMode, getMappingContext, getNativeInterface, getPersister, getTransaction, isConnected, lock, lock, persist, persist, proxy, refresh, retrieve, retrieveAll, retrieveAll, setAttribute, setFlushMode, unlock
 
Methods inherited from interface org.springframework.datastore.engine.EntityInterceptorAware
addEntityInterceptor, setEntityInterceptors
 

Method Detail

store

T store(String table,
        Map object)
Store data in the datastore.

Parameters:
table - The table, bucket, group in which the object should be stored
object - A Map representing the data to be stored
Returns:
the key under which the object was stored

retrieve

Map<String,Object> retrieve(T key)
Retrieve an element from the datastore identified by their keys.

Parameters:
key - The key we won't to retrieveEntity from the datastore
Returns:
the property / value pairs representing the element retrieved

retrieve

List<Map<String,Object>> retrieve(T... keys)
Retrieve one or more elements from the datastore identified by their keys.

Parameters:
keys - The array of keys we won't to retrieveEntity from the datastore
Returns:
a list of property / value pairs representing the elements retrieved