public class ArgumentPreparedStatementBinder extends Object implements PreparedStatementBinder
PreparedStatementBinder that applies a given array of arguments.| Constructor and Description |
|---|
ArgumentPreparedStatementBinder(Object... args)
Create a new
ArgumentPreparedStatementBinder for the given arguments. |
| Modifier and Type | Method and Description |
|---|---|
com.datastax.oss.driver.api.core.cql.BoundStatement |
bindValues(com.datastax.oss.driver.api.core.cql.PreparedStatement ps)
Bind parameter values on the given
PreparedStatement. |
public ArgumentPreparedStatementBinder(@Nullable Object... args)
ArgumentPreparedStatementBinder for the given arguments.args - the arguments to set. May be empty or null if no arguments are provided.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
PreparedStatementBinderPreparedStatement.bindValues in interface PreparedStatementBinderps - the PreparedStatement to invoke setter methods on.com.datastax.oss.driver.api.core.DriverException - if a DriverException is encountered (i.e. there is no need to catch
DriverException)Copyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.