Uses of Interface
org.springframework.data.cassandra.SessionFactory
Packages that use 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
Fields in org.springframework.data.cassandra.config declared as SessionFactoryModifier and TypeFieldDescriptionprotected SessionFactory
CassandraTemplateFactoryBean.sessionFactory
Methods in org.springframework.data.cassandra.config that return SessionFactoryModifier and TypeMethodDescriptionprotected SessionFactory
SessionFactoryFactoryBean.createInstance()
protected SessionFactory
AbstractCassandraConfiguration.getRequiredSessionFactory()
Returns the initializedCqlSession
instance.protected SessionFactory
AbstractSessionConfiguration.getRequiredSessionFactory()
Returns the initializedCqlSession
instance.Methods in org.springframework.data.cassandra.config with parameters of type SessionFactoryModifier 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
Constructors in org.springframework.data.cassandra.core with parameters of type SessionFactoryModifierConstructorDescriptionAsyncCassandraTemplate
(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
Methods in org.springframework.data.cassandra.core.cql that return SessionFactoryModifier and TypeMethodDescriptionCassandraAccessor.getSessionFactory()
Returns the CassandraSessionFactory
used by this template to perform Cassandra data access operations.Methods in org.springframework.data.cassandra.core.cql with parameters of type SessionFactoryModifier and TypeMethodDescriptionvoid
CassandraAccessor.setSessionFactory
(SessionFactory sessionFactory) Sets the CassandraSessionFactory
used by this template to perform Cassandra data access operations.Constructors in org.springframework.data.cassandra.core.cql with parameters of type SessionFactoryModifierConstructorDescriptionAsyncCqlTemplate
(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
Constructors in org.springframework.data.cassandra.core.cql.legacy with parameters of type SessionFactoryModifierConstructorDescriptionAsyncCqlTemplate
(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
Classes in org.springframework.data.cassandra.core.cql.session that implement SessionFactory -
Uses of SessionFactory in org.springframework.data.cassandra.core.cql.session.init
Methods in org.springframework.data.cassandra.core.cql.session.init with parameters of type SessionFactoryModifier 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
Classes in org.springframework.data.cassandra.core.cql.session.lookup that implement SessionFactoryModifier and TypeClassDescriptionclass
AbstractSessionFactory
implementation that routesAbstractRoutingSessionFactory.getSession()
calls to one of various targetfactories
based on a lookup key.Methods in org.springframework.data.cassandra.core.cql.session.lookup that return SessionFactoryModifier 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.Methods in org.springframework.data.cassandra.core.cql.session.lookup that return types with arguments of type SessionFactoryModifier and TypeMethodDescriptionMapSessionFactoryLookup.getSessionFactories()
Get theMap
ofsession factories
maintained by this object.Methods in org.springframework.data.cassandra.core.cql.session.lookup with parameters of type SessionFactoryModifier and TypeMethodDescriptionvoid
MapSessionFactoryLookup.addSessionFactory
(String sessionFactoryName, SessionFactory sessionFactory) Add the suppliedSessionFactory
to the map ofsession factories
maintained by this object.Method parameters in org.springframework.data.cassandra.core.cql.session.lookup with type arguments of type SessionFactoryModifier and TypeMethodDescriptionvoid
MapSessionFactoryLookup.setSessionFactories
(Map<String, SessionFactory> sessionFactories) Set theMap
ofsession factories
; the keys areStrings
, the values are actualSessionFactory
instances.Constructors in org.springframework.data.cassandra.core.cql.session.lookup with parameters of type SessionFactoryModifierConstructorDescriptionMapSessionFactoryLookup
(String sessionFactoryName, SessionFactory sessionFactory) Create a new instance ofMapSessionFactoryLookup
.SingleSessionFactoryLookup
(SessionFactory sessionFactory) Create a new instance ofSingleSessionFactoryLookup
givenSessionFactory
.Constructor parameters in org.springframework.data.cassandra.core.cql.session.lookup with type arguments of type SessionFactoryModifierConstructorDescriptionMapSessionFactoryLookup
(Map<String, SessionFactory> sessionFactories) Create a new instance ofMapSessionFactoryLookup
. -
Uses of SessionFactory in org.springframework.data.cassandra.core.legacy
Constructors in org.springframework.data.cassandra.core.legacy with parameters of type SessionFactoryModifierConstructorDescriptionAsyncCassandraTemplate
(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
.