@java.lang.SuppressWarnings({"rawtypes", "unchecked"}) public abstract class AbstractDatastore extends java.lang.Object implements Datastore, ServiceRegistry, StatelessDatastore
Abstract Datastore implementation that deals with binding the Session to thread locale upon creation.
Modifiers | Name | Description |
---|---|---|
protected static org.slf4j.Logger |
LOG |
|
protected TPCacheAdapterRepository |
cacheAdapterRepository |
|
protected org.springframework.core.env.PropertyResolver |
connectionDetails |
|
protected MappingContext |
mappingContext |
|
protected ServiceRegistry |
serviceRegistry |
Constructor and description |
---|
AbstractDatastore
(MappingContext mappingContext) |
AbstractDatastore
(MappingContext mappingContext, java.util.Map<java.lang.String, java.lang.Object> connectionDetails, org.springframework.context.ConfigurableApplicationContext ctx) |
AbstractDatastore
(MappingContext mappingContext, org.springframework.core.env.PropertyResolver connectionDetails, org.springframework.context.ConfigurableApplicationContext ctx) |
AbstractDatastore
(MappingContext mappingContext, org.springframework.core.env.PropertyResolver connectionDetails, org.springframework.context.ConfigurableApplicationContext ctx, TPCacheAdapterRepository cacheAdapterRepository) |
AbstractDatastore
(MappingContext mappingContext, java.util.Map<java.lang.String, java.lang.Object> connectionDetails, org.springframework.context.ConfigurableApplicationContext ctx, TPCacheAdapterRepository cacheAdapterRepository) |
Type Params | Return Type | Name and description |
---|---|---|
|
public Session |
connect() |
|
public final Session |
connect(org.springframework.core.env.PropertyResolver connDetails) |
|
public Session |
connectStateless() |
|
protected abstract Session |
createSession(org.springframework.core.env.PropertyResolver connectionDetails) Creates the native session |
|
protected Session |
createStatelessSession(org.springframework.core.env.PropertyResolver connectionDetails) Creates the native stateless session |
|
public void |
destroy() |
|
public T |
doInSession(Session session) |
|
public org.springframework.context.ConfigurableApplicationContext |
getApplicationContext()
|
|
public org.springframework.context.ApplicationEventPublisher |
getApplicationEventPublisher() |
|
public Session |
getCurrentSession() |
|
public MappingContext |
getMappingContext() |
<T> |
public T |
getService(java.lang.Class<T> interfaceType) |
<T extends Service> |
public java.lang.Iterable<T> |
getServices() |
|
public boolean |
hasCurrentSession() |
|
protected void |
initializeConverters(MappingContext mappingContext) |
|
protected boolean |
isIndexed(PersistentProperty property) |
|
public boolean |
isSchemaless() |
|
protected static org.springframework.core.env.PropertyResolver |
mapToPropertyResolver(java.util.Map<java.lang.String, java.lang.Object> connectionDetails) |
|
public static Session |
retrieveSession() Static way to retrieve the session |
|
public static Session |
retrieveSession(java.lang.Class datastoreClass) Static way to retrieve the session |
|
public void |
setApplicationContext(org.springframework.context.ApplicationContext ctx) |
<T> |
public T |
withSession(groovy.lang.Closure<T> callable) |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long), java.lang.Object#wait(long, int), 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 the native session
connectionDetails
- The session detailsCreates the native stateless session
connectionDetails
- The session detailsStatic way to retrieve the session
Static way to retrieve the session
datastoreClass
- The type of datastore