The Datastore
interface is the basic common denominator all NoSQL databases should support:
Type Params | Return Type | Name and description |
---|---|---|
|
Session |
connect() Connects to the datastore with the default connection details, normally provided via the datastore implementations constructor |
|
org.springframework.context.ConfigurableApplicationContext |
getApplicationContext() Get the application context. |
|
org.springframework.context.ApplicationEventPublisher |
getApplicationEventPublisher() Get the application event publisher. |
|
Session |
getCurrentSession() Obtains the current session (if any) |
|
MappingContext |
getMappingContext() Obtains the MappingContext object |
|
boolean |
hasCurrentSession() Checks if there is a current session. |
|
boolean |
isSchemaless() Whether the datastore is schema-less. |
<T> |
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 callable
- The return type