Class ArgumentPreparedStatementBinder
java.lang.Object
org.springframework.data.cassandra.core.cql.ArgumentPreparedStatementBinder
- All Implemented Interfaces:
PreparedStatementBinder
Simple adapter for
PreparedStatementBinder that applies a given array of arguments.- Since:
- 2.0
- Author:
- Mark Paluch
-
Constructor Summary
ConstructorsConstructorDescriptionArgumentPreparedStatementBinder(Object... args) Create a newArgumentPreparedStatementBinderfor the given arguments. -
Method Summary
Modifier and TypeMethodDescriptioncom.datastax.oss.driver.api.core.cql.BoundStatementbindValues(com.datastax.oss.driver.api.core.cql.PreparedStatement ps) Bind parameter values on the givenPreparedStatement.
-
Constructor Details
-
ArgumentPreparedStatementBinder
Create a newArgumentPreparedStatementBinderfor the given arguments.- Parameters:
args- the arguments to set. May be empty ornullif no arguments are provided.
-
-
Method Details
-
bindValues
public com.datastax.oss.driver.api.core.cql.BoundStatement bindValues(com.datastax.oss.driver.api.core.cql.PreparedStatement ps) throws com.datastax.oss.driver.api.core.DriverException Description copied from interface:PreparedStatementBinderBind parameter values on the givenPreparedStatement.- Specified by:
bindValuesin interfacePreparedStatementBinder- Parameters:
ps- the PreparedStatement to invoke setter methods on.- Throws:
com.datastax.oss.driver.api.core.DriverException- if aDriverExceptionis encountered (i.e. there is no need to catchDriverException)
-