Interface QueryBinder<T>

All Known Implementing Classes:
MapperQueryBinder, MultiIndexQueryPreparer.MultiIndexQueryBinder

public interface QueryBinder<T>
  • Method Summary

    Modifier and Type
    Method
    Description
    bind(T value)
    Bind the value to a new PreparedStatement.
    void
    Bind the value to the specified PreparedStatement.
  • Method Details

    • bind

      PreparedStatement bind(T value) throws SQLException
      Bind the value to a new PreparedStatement.
      Parameters:
      value - the value
      Returns:
      the created PreparedStatement
      Throws:
      SQLException - if an error occurs
    • bindTo

      void bindTo(T value, PreparedStatement ps) throws SQLException
      Bind the value to the specified PreparedStatement. If any parameters is a List or an array it will throw an UnsupportedOperationException.
      Parameters:
      value - the value
      ps - the PreparedStatement
      Throws:
      SQLException - if an error occurs
      UnsupportedOperationException - if a parameter is an array or a List