Package | Description |
---|---|
org.springframework.data.cassandra.config |
Spring Data Cassandra
factory beans and configuration. |
org.springframework.data.cassandra.core |
Apache Cassandra core support.
|
org.springframework.data.cassandra.core.cql |
CQL core support.
|
org.springframework.data.cassandra.core.cql.session |
Provides utility classes for simple
Session access and various session
implementations. |
org.springframework.data.cassandra.core.cql.session.lookup |
Provides a strategy for looking up
SessionFactory . |
Modifier and Type | Field and Description |
---|---|
protected SessionFactory |
CassandraTemplateFactoryBean.sessionFactory |
Modifier and Type | Method and Description |
---|---|
SessionFactory |
AbstractCassandraConfiguration.sessionFactory()
Creates a
DefaultSessionFactory using the configured AbstractCassandraConfiguration.session() to be used with
CassandraTemplate . |
SessionFactory |
AbstractSessionConfiguration.sessionFactory()
Creates a
DefaultSessionFactory using the configured AbstractSessionConfiguration.session() to be used with
CqlTemplate . |
Modifier and Type | Method and Description |
---|---|
void |
CassandraTemplateFactoryBean.setSessionFactory(SessionFactory sessionFactory)
Sets the Cassandra
SessionFactory to use. |
Constructor and Description |
---|
AsyncCassandraTemplate(SessionFactory sessionFactory,
CassandraConverter converter)
Creates an instance of
AsyncCassandraTemplate initialized with the given SessionFactory and
CassandraConverter . |
CassandraAdminTemplate(SessionFactory sessionFactory,
CassandraConverter converter)
Constructor used for a basic template configuration.
|
CassandraTemplate(SessionFactory sessionFactory,
CassandraConverter converter)
Creates an instance of
CassandraTemplate initialized with the given SessionFactory and
CassandraConverter . |
Modifier and Type | Method and Description |
---|---|
SessionFactory |
CassandraAccessor.getSessionFactory()
Returns the Cassandra
SessionFactory used by this template to perform Cassandra data access operations. |
Modifier and Type | Method and Description |
---|---|
void |
CassandraAccessor.setSessionFactory(SessionFactory sessionFactory)
Sets the Cassandra
SessionFactory used by this template to perform Cassandra data access operations. |
Constructor and Description |
---|
AsyncCqlTemplate(SessionFactory sessionFactory)
Constructs a new
AsyncCqlTemplate with the given SessionFactory . |
CqlTemplate(SessionFactory sessionFactory)
Constructs a new
CqlTemplate with the given SessionFactory . |
Modifier and Type | Class and Description |
---|---|
class |
DefaultSessionFactory
Default
SessionFactory implementation. |
Modifier and Type | Class and Description |
---|---|
class |
AbstractRoutingSessionFactory
Abstract
SessionFactory implementation that routes AbstractRoutingSessionFactory.getSession() calls to one of various target
factories based on a lookup key. |
Modifier and Type | Method and Description |
---|---|
protected SessionFactory |
AbstractRoutingSessionFactory.determineTargetSessionFactory()
Retrieve the current target
SessionFactory . |
SessionFactory |
MapSessionFactoryLookup.getSessionFactory(String sessionFactoryName) |
SessionFactory |
SessionFactoryLookup.getSessionFactory(String sessionFactoryName)
Implementations must implement this method to retrieve the
SessionFactory identified by the given name from
their backing store. |
SessionFactory |
SingleSessionFactoryLookup.getSessionFactory(String sessionFactoryName) |
SessionFactory |
BeanFactorySessionFactoryLookup.getSessionFactory(String sessionFactoryName) |
protected SessionFactory |
AbstractRoutingSessionFactory.resolveSpecifiedSessionFactory(Object sessionFactory)
Resolve the specified
sessionFactory object into a SessionFactory instance. |
Modifier and Type | Method and Description |
---|---|
Map<String,SessionFactory> |
MapSessionFactoryLookup.getSessionFactories()
Get the
Map of session factories maintained by this object. |
Modifier and Type | Method and Description |
---|---|
void |
MapSessionFactoryLookup.addSessionFactory(String sessionFactoryName,
SessionFactory sessionFactory)
Add the supplied
SessionFactory to the map of session factories maintained by this
object. |
Modifier and Type | Method and Description |
---|---|
void |
MapSessionFactoryLookup.setSessionFactories(Map<String,SessionFactory> sessionFactories)
Set the
Map of session factories ; the keys are Strings , the values
are actual SessionFactory instances. |
Constructor and Description |
---|
MapSessionFactoryLookup(String sessionFactoryName,
SessionFactory sessionFactory)
Create a new instance of
MapSessionFactoryLookup . |
SingleSessionFactoryLookup(SessionFactory sessionFactory)
Create a new instance of
SingleSessionFactoryLookup given SessionFactory . |
Constructor and Description |
---|
MapSessionFactoryLookup(Map<String,SessionFactory> sessionFactories)
Create a new instance of
MapSessionFactoryLookup . |
Copyright © 2011–2020 Pivotal Software, Inc.. All rights reserved.