Uses of Interface
org.springframework.data.cassandra.core.cql.session.init.KeyspacePopulator
Package
Description
Spring Data Cassandra
factory beans
and configuration.Provides extensible support for initializing databases through scripts.
-
Uses of KeyspacePopulator in org.springframework.data.cassandra.config
Modifier and TypeMethodDescriptionprotected KeyspacePopulator
AbstractCassandraConfiguration.keyspaceCleaner()
Creates aKeyspacePopulator
to cleanup the keyspace.protected KeyspacePopulator
AbstractCassandraConfiguration.keyspacePopulator()
Creates aKeyspacePopulator
to initialize the keyspace.Modifier and TypeMethodDescriptionvoid
SessionFactoryFactoryBean.setKeyspaceCleaner
(KeyspacePopulator keyspaceCleaner) Set theKeyspacePopulator
to execute during the bean destruction phase, cleaning up the keyspace and leaving it in a known state for others.void
SessionFactoryFactoryBean.setKeyspacePopulator
(KeyspacePopulator keyspacePopulator) Set theKeyspacePopulator
to execute during the bean initialization phase. -
Uses of KeyspacePopulator in org.springframework.data.cassandra.core.cql.session.init
Modifier and TypeClassDescriptionclass
CompositeKeyspacePopulator
that delegates to a list of givenKeyspacePopulator
implementations, executing all scripts.class
Populates, initializes, or cleans up a keyspace using CQL scripts defined in external resources.Modifier and TypeMethodDescriptionvoid
CompositeKeyspacePopulator.addPopulators
(KeyspacePopulator... populators) Add one or more populators to the list of delegates.void
SessionFactoryInitializer.setKeyspaceCleaner
(KeyspacePopulator keyspaceCleaner) Set theKeyspacePopulator
to execute during the bean destruction phase, cleaning up the keyspace and leaving it in a known state for others.void
SessionFactoryInitializer.setKeyspacePopulator
(KeyspacePopulator keyspacePopulator) Set theKeyspacePopulator
to execute during the bean initialization phase.void
CompositeKeyspacePopulator.setPopulators
(KeyspacePopulator... populators) Specify one or more populators to delegate to.ModifierConstructorDescriptionCompositeKeyspacePopulator
(KeyspacePopulator... populators) Create aCompositeKeyspacePopulator
with the given populators.ModifierConstructorDescriptionCompositeKeyspacePopulator
(Collection<KeyspacePopulator> populators) Create aCompositeKeyspacePopulator
with the given populators.