Class MapperQueryBinder<T>

java.lang.Object
org.simpleflatmapper.jdbc.impl.MapperQueryBinder<T>
All Implemented Interfaces:
QueryBinder<T>

public class MapperQueryBinder<T> extends Object implements QueryBinder<T>
  • Constructor Details

  • 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