/** * Returns the Cassandra {@link Session} from {@link SessionFactory} used by this template to perform Cassandra data * access operations. * * @return the Cassandra {@link Session} used by this template. * @see com.datastax.driver.core.Session * @deprecated since 2.0. This class uses a {@link SessionFactory} to dispatch CQL calls amongst different * {@link Session}s during its lifecycle. */ @Deprecated public Session getSession() { Assert.state(getSessionFactory() != null, "SessionFactory was not properly initialized"); return getSessionFactory().getSession(); }