Class ArgumentPreparedStatementBinder

java.lang.Object
org.springframework.data.cassandra.core.cql.ArgumentPreparedStatementBinder
All Implemented Interfaces:
PreparedStatementBinder

public class ArgumentPreparedStatementBinder extends Object implements PreparedStatementBinder
Simple adapter for PreparedStatementBinder that applies a given array of arguments.
Since:
2.0
Author:
Mark Paluch
  • Constructor Details

    • ArgumentPreparedStatementBinder

      public ArgumentPreparedStatementBinder(@Nullable Object... args)
      Create a new ArgumentPreparedStatementBinder for the given arguments.
      Parameters:
      args - the arguments to set. May be empty or null 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 given PreparedStatement.
      Specified by:
      bindValues in interface PreparedStatementBinder
      Parameters:
      ps - the PreparedStatement to invoke setter methods on.
      Throws:
      com.datastax.oss.driver.api.core.DriverException - if a DriverException is encountered (i.e. there is no need to catch DriverException)