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
ConstructorDescriptionArgumentPreparedStatementBinder
(Object... args) Create a newArgumentPreparedStatementBinder
for the given arguments. -
Method Summary
Modifier and TypeMethodDescriptioncom.datastax.oss.driver.api.core.cql.BoundStatement
bindValues
(com.datastax.oss.driver.api.core.cql.PreparedStatement ps) Bind parameter values on the givenPreparedStatement
.
-
Constructor Details
-
ArgumentPreparedStatementBinder
Create a newArgumentPreparedStatementBinder
for the given arguments.- Parameters:
args
- the arguments to set. May be empty ornull
if 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:PreparedStatementBinder
Bind parameter values on the givenPreparedStatement
.- Specified by:
bindValues
in interfacePreparedStatementBinder
- Parameters:
ps
- the PreparedStatement to invoke setter methods on.- Throws:
com.datastax.oss.driver.api.core.DriverException
- if aDriverException
is encountered (i.e. there is no need to catchDriverException
)
-