Uses of Interface
org.springframework.data.cassandra.SessionFactory
Package
Description
Spring Data Cassandra
factory beans
and configuration.Apache Cassandra core support.
CQL core support.
CQL legacy core asynchronous support for easier migration.
Provides utility classes for simple
CqlSession
access and various session
implementations.Provides extensible support for initializing databases through scripts.
Provides a strategy for looking up
SessionFactory
.Apache Cassandra legacy asynchronous support for easier migration.
-
Uses of SessionFactory in org.springframework.data.cassandra.config
Modifier and TypeFieldDescriptionprotected SessionFactory
CassandraTemplateFactoryBean.sessionFactory
Modifier and TypeMethodDescriptionprotected SessionFactory
SessionFactoryFactoryBean.createInstance()
protected SessionFactory
AbstractCassandraConfiguration.getRequiredSessionFactory()
Returns the initializedCqlSession
instance.protected SessionFactory
AbstractSessionConfiguration.getRequiredSessionFactory()
Returns the initializedCqlSession
instance.Modifier and TypeMethodDescriptionvoid
CassandraCqlTemplateFactoryBean.setSessionFactory
(SessionFactory sessionFactory) Sets the CassandraSessionFactory
to use.void
CassandraTemplateFactoryBean.setSessionFactory
(SessionFactory sessionFactory) Sets the CassandraSessionFactory
to use. -
Uses of SessionFactory in org.springframework.data.cassandra.core
ModifierConstructorDescriptionAsyncCassandraTemplate
(SessionFactory sessionFactory, CassandraConverter converter) Creates an instance ofAsyncCassandraTemplate
initialized with the givenSessionFactory
andCassandraConverter
.CassandraAdminTemplate
(SessionFactory sessionFactory, CassandraConverter converter) Constructor used for a basic template configuration.CassandraTemplate
(SessionFactory sessionFactory, CassandraConverter converter) Creates an instance ofCassandraTemplate
initialized with the givenSessionFactory
andCassandraConverter
. -
Uses of SessionFactory in org.springframework.data.cassandra.core.cql
Modifier and TypeMethodDescriptionCassandraAccessor.getSessionFactory()
Returns the CassandraSessionFactory
used by this template to perform Cassandra data access operations.Modifier and TypeMethodDescriptionvoid
CassandraAccessor.setSessionFactory
(SessionFactory sessionFactory) Sets the CassandraSessionFactory
used by this template to perform Cassandra data access operations.ModifierConstructorDescriptionAsyncCqlTemplate
(SessionFactory sessionFactory) Constructs a newAsyncCqlTemplate
with the givenSessionFactory
.CqlTemplate
(SessionFactory sessionFactory) Constructs a newCqlTemplate
with the givenSessionFactory
. -
Uses of SessionFactory in org.springframework.data.cassandra.core.cql.legacy
ModifierConstructorDescriptionAsyncCqlTemplate
(SessionFactory sessionFactory) Deprecated, for removal: This API element is subject to removal in a future version.Constructs a newAsyncCqlTemplate
with the givenSessionFactory
. -
Uses of SessionFactory in org.springframework.data.cassandra.core.cql.session
-
Uses of SessionFactory in org.springframework.data.cassandra.core.cql.session.init
Modifier and TypeMethodDescriptionvoid
ResourceKeyspacePopulator.execute
(SessionFactory sessionFactory) Execute thisResourceKeyspacePopulator
against the givenSessionFactory
.void
SessionFactoryInitializer.setSessionFactory
(SessionFactory sessionFactory) TheSessionFactory
for the keyspace to populate when this component is initialized and to clean up when this component is shut down. -
Uses of SessionFactory in org.springframework.data.cassandra.core.cql.session.lookup
Modifier and TypeClassDescriptionclass
AbstractSessionFactory
implementation that routesAbstractRoutingSessionFactory.getSession()
calls to one of various targetfactories
based on a lookup key.Modifier and TypeMethodDescriptionprotected SessionFactory
AbstractRoutingSessionFactory.determineTargetSessionFactory()
Retrieve the current targetSessionFactory
.BeanFactorySessionFactoryLookup.getSessionFactory
(String sessionFactoryName) MapSessionFactoryLookup.getSessionFactory
(String sessionFactoryName) SessionFactoryLookup.getSessionFactory
(String sessionFactoryName) Implementations must implement this method to retrieve theSessionFactory
identified by the given name from their backing store.SingleSessionFactoryLookup.getSessionFactory
(String sessionFactoryName) protected SessionFactory
AbstractRoutingSessionFactory.resolveSpecifiedSessionFactory
(Object sessionFactory) Resolve the specifiedsessionFactory
object into aSessionFactory
instance.Modifier and TypeMethodDescriptionMapSessionFactoryLookup.getSessionFactories()
Get theMap
ofsession factories
maintained by this object.Modifier and TypeMethodDescriptionvoid
MapSessionFactoryLookup.addSessionFactory
(String sessionFactoryName, SessionFactory sessionFactory) Add the suppliedSessionFactory
to the map ofsession factories
maintained by this object.Modifier and TypeMethodDescriptionvoid
MapSessionFactoryLookup.setSessionFactories
(Map<String, SessionFactory> sessionFactories) Set theMap
ofsession factories
; the keys areStrings
, the values are actualSessionFactory
instances.ModifierConstructorDescriptionMapSessionFactoryLookup
(String sessionFactoryName, SessionFactory sessionFactory) Create a new instance ofMapSessionFactoryLookup
.SingleSessionFactoryLookup
(SessionFactory sessionFactory) Create a new instance ofSingleSessionFactoryLookup
givenSessionFactory
.ModifierConstructorDescriptionMapSessionFactoryLookup
(Map<String, SessionFactory> sessionFactories) Create a new instance ofMapSessionFactoryLookup
. -
Uses of SessionFactory in org.springframework.data.cassandra.core.legacy
ModifierConstructorDescriptionAsyncCassandraTemplate
(SessionFactory sessionFactory, CassandraConverter converter) Deprecated, for removal: This API element is subject to removal in a future version.Creates an instance ofAsyncCassandraTemplate
initialized with the givenSessionFactory
andCassandraConverter
.