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 SessionFactoryCassandraTemplateFactoryBean.sessionFactoryMethods in org.springframework.data.cassandra.config that return SessionFactoryModifier and TypeMethodDescriptionprotected SessionFactorySessionFactoryFactoryBean.createInstance()protected SessionFactoryAbstractCassandraConfiguration.getRequiredSessionFactory()Returns the initializedCqlSessioninstance.protected SessionFactoryAbstractSessionConfiguration.getRequiredSessionFactory()Returns the initializedCqlSessioninstance.Methods in org.springframework.data.cassandra.config with parameters of type SessionFactoryModifier and TypeMethodDescriptionvoidCassandraCqlTemplateFactoryBean.setSessionFactory(SessionFactory sessionFactory) Sets the CassandraSessionFactoryto use.voidCassandraTemplateFactoryBean.setSessionFactory(SessionFactory sessionFactory) Sets the CassandraSessionFactoryto 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 ofAsyncCassandraTemplateinitialized with the givenSessionFactoryandCassandraConverter.CassandraAdminTemplate(SessionFactory sessionFactory, CassandraConverter converter) Constructor used for a basic template configuration.CassandraTemplate(SessionFactory sessionFactory, CassandraConverter converter) Creates an instance ofCassandraTemplateinitialized with the givenSessionFactoryandCassandraConverter. -
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 CassandraSessionFactoryused by this template to perform Cassandra data access operations.Methods in org.springframework.data.cassandra.core.cql with parameters of type SessionFactoryModifier and TypeMethodDescriptionvoidCassandraAccessor.setSessionFactory(SessionFactory sessionFactory) Sets the CassandraSessionFactoryused 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 newAsyncCqlTemplatewith the givenSessionFactory.CqlTemplate(SessionFactory sessionFactory) Constructs a newCqlTemplatewith 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 newAsyncCqlTemplatewith 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 TypeMethodDescriptionvoidResourceKeyspacePopulator.execute(SessionFactory sessionFactory) Execute thisResourceKeyspacePopulatoragainst the givenSessionFactory.voidSessionFactoryInitializer.setSessionFactory(SessionFactory sessionFactory) TheSessionFactoryfor 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 TypeClassDescriptionclassAbstractSessionFactoryimplementation that routesAbstractRoutingSessionFactory.getSession()calls to one of various targetfactoriesbased on a lookup key.Methods in org.springframework.data.cassandra.core.cql.session.lookup that return SessionFactoryModifier and TypeMethodDescriptionprotected SessionFactoryAbstractRoutingSessionFactory.determineTargetSessionFactory()Retrieve the current targetSessionFactory.BeanFactorySessionFactoryLookup.getSessionFactory(String sessionFactoryName) MapSessionFactoryLookup.getSessionFactory(String sessionFactoryName) SessionFactoryLookup.getSessionFactory(String sessionFactoryName) Implementations must implement this method to retrieve theSessionFactoryidentified by the given name from their backing store.SingleSessionFactoryLookup.getSessionFactory(String sessionFactoryName) protected SessionFactoryAbstractRoutingSessionFactory.resolveSpecifiedSessionFactory(Object sessionFactory) Resolve the specifiedsessionFactoryobject into aSessionFactoryinstance.Methods in org.springframework.data.cassandra.core.cql.session.lookup that return types with arguments of type SessionFactoryModifier and TypeMethodDescriptionMapSessionFactoryLookup.getSessionFactories()Get theMapofsession factoriesmaintained by this object.Methods in org.springframework.data.cassandra.core.cql.session.lookup with parameters of type SessionFactoryModifier and TypeMethodDescriptionvoidMapSessionFactoryLookup.addSessionFactory(String sessionFactoryName, SessionFactory sessionFactory) Add the suppliedSessionFactoryto the map ofsession factoriesmaintained by this object.Method parameters in org.springframework.data.cassandra.core.cql.session.lookup with type arguments of type SessionFactoryModifier and TypeMethodDescriptionvoidMapSessionFactoryLookup.setSessionFactories(Map<String, SessionFactory> sessionFactories) Set theMapofsession factories; the keys areStrings, the values are actualSessionFactoryinstances.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 ofSingleSessionFactoryLookupgivenSessionFactory.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 ofAsyncCassandraTemplateinitialized with the givenSessionFactoryandCassandraConverter.