Class MultiIndexQueryPreparer.MultiIndexQueryBinder

java.lang.Object
org.simpleflatmapper.jdbc.impl.MultiIndexQueryPreparer.MultiIndexQueryBinder
All Implemented Interfaces:
QueryBinder<T>
Enclosing class:
MultiIndexQueryPreparer<T>

public class MultiIndexQueryPreparer.MultiIndexQueryBinder extends Object implements QueryBinder<T>
  • Constructor Details

    • MultiIndexQueryBinder

      protected MultiIndexQueryBinder(Connection connection, org.simpleflatmapper.converter.ContextFactory contextFactory)
  • Method Details

    • bind

      public PreparedStatement bind(T value) throws SQLException
      Description copied from interface: QueryBinder
      Bind the value to a new PreparedStatement.
      Specified by:
      bind in interface QueryBinder<T>
      Parameters:
      value - the value
      Returns:
      the created PreparedStatement
      Throws:
      SQLException - if an error occurs
    • bindTo

      public void bindTo(T value, PreparedStatement ps) throws SQLException
      Description copied from interface: QueryBinder
      Bind the value to the specified PreparedStatement. If any parameters is a List or an array it will throw an UnsupportedOperationException.
      Specified by:
      bindTo in interface QueryBinder<T>
      Parameters:
      value - the value
      ps - the PreparedStatement
      Throws:
      SQLException - if an error occurs