public class SimplePreparedStatementCreator extends Object implements PreparedStatementCreator
CachedPreparedStatementCreator When preparing
statements with Cassandra, each Statement should be prepared once and only once due to the overhead of preparing the
statement.| Constructor and Description |
|---|
SimplePreparedStatementCreator(String cql)
Create a PreparedStatementCreator from the provided CQL.
|
| Modifier and Type | Method and Description |
|---|---|
com.datastax.driver.core.PreparedStatement |
createPreparedStatement(com.datastax.driver.core.Session session)
Create a statement in this session.
|
String |
getCql() |
public SimplePreparedStatementCreator(String cql)
cql - public String getCql()
public com.datastax.driver.core.PreparedStatement createPreparedStatement(com.datastax.driver.core.Session session)
throws com.datastax.driver.core.exceptions.DriverException
PreparedStatementCreatorcreatePreparedStatement in interface PreparedStatementCreatorsession - Session to use to create statementcom.datastax.driver.core.exceptions.DriverException - there is no need to catch DriverException that may be thrown in the implementation of this
method. The CassandraTemlate class will handle them.Copyright © 2011–2019 Pivotal Software, Inc.. All rights reserved.