A simple implementation of the Datastore interface that backs onto an in-memory map. Mainly used for mocking and testing scenarios.
Fields inherited from class | Fields |
---|---|
class AbstractDatastore |
LOG, cacheAdapterRepository, connectionDetails, mappingContext |
Constructor and description |
---|
SimpleMapDatastore
(java.util.Map<java.lang.String, java.util.Map> datastore, org.springframework.context.ConfigurableApplicationContext ctx) Creates a map based datastore backing onto the specified map |
SimpleMapDatastore
(MappingContext mappingContext, org.springframework.context.ConfigurableApplicationContext ctx) Creates a map based datastore for the specified mapping context |
SimpleMapDatastore
() |
SimpleMapDatastore
(org.springframework.context.ConfigurableApplicationContext ctx) |
Type | Name and description |
---|---|
void |
clearData() |
protected Session |
createSession(org.springframework.core.env.PropertyResolver connectionDetails) |
java.util.Map<java.lang.String, java.util.Map> |
getBackingMap() |
java.util.Map |
getIndices() |
Methods inherited from class | Name |
---|---|
class AbstractDatastore |
connect, connect, connectStateless, createSession, createStatelessSession, destroy, getApplicationContext, getApplicationEventPublisher, getCurrentSession, getMappingContext, hasCurrentSession, initializeConverters, isIndexed, isSchemaless, mapToPropertyResolver, retrieveSession, retrieveSession, setApplicationContext, withSession |
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Creates a map based datastore backing onto the specified map
datastore
- The datastore to back on toctx
- the application contextCreates a map based datastore for the specified mapping context
mappingContext
- The mapping context