public interface Datastore extends ServiceRegistry
The Datastore
interface is the basic common denominator all NoSQL databases should support:
Type Params | Return Type | Name and description |
---|---|---|
|
public Session |
connect() Connects to the datastore with the default connection details, normally provided via the datastore implementations constructor |
|
public org.springframework.context.ConfigurableApplicationContext |
getApplicationContext() Get the application context. |
|
public org.springframework.context.ApplicationEventPublisher |
getApplicationEventPublisher() Get the application event publisher. |
|
public Session |
getCurrentSession() Obtains the current session (if any) |
|
public MappingContext |
getMappingContext() Obtains the MappingContext object |
|
public boolean |
hasCurrentSession() Checks if there is a current session. |
|
public boolean |
isSchemaless() Whether the datastore is schema-less. |
<T> |
public T |
withSession(groovy.lang.Closure<T> callable) Execute the given closure with a session |
Methods inherited from class | Name |
---|---|
interface ServiceRegistry |
getService, getServices |
Connects to the datastore with the default connection details, normally provided via the datastore implementations constructor
Get the application context.
Get the application event publisher.
Obtains the current session (if any)
Obtains the MappingContext object
Checks if there is a current session.
Whether the datastore is schema-less. That is it allows changes to the schema runtime, dynamic attributes etc.
Execute the given closure with a session
callable
- The callableT
- The return type