public class CachedPreparedStatementCreator extends Object implements PreparedStatementCreator
| Constructor and Description |
|---|
CachedPreparedStatementCreator(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 CachedPreparedStatementCreator(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-2014–2015 Pivotal Software, Inc.. All rights reserved.