The Datastore
interface is the basic commom denominator all NoSQL databases should support:
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 |
org.springframework.validation.Errors |
getObjectErrors(java.lang.Object o) Get the validation errors if available. |
boolean |
hasCurrentSession() Checks if there is a current session. |
void |
setObjectErrors(java.lang.Object object, org.springframework.validation.Errors errors) Register validation errors for an instance. |
void |
setSkipValidation(java.lang.Object o, boolean skip) Register that validation should be skipped or not. |
boolean |
skipValidation(java.lang.Object o) Check if validation should be skipped. |
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
Get the validation errors if available.
o
- the entityChecks if there is a current session.
Register validation errors for an instance.
object
- the instanceerrors
- the errorsRegister that validation should be skipped or not.
o
- the instanceskip
- whether to skip or notCheck if validation should be skipped.
o
- the instance