Class JdbcValueSetter

java.lang.Object
org.seasar.doma.internal.jdbc.command.JdbcValueSetter
All Implemented Interfaces:
JdbcMappingFunction

public class JdbcValueSetter extends Object implements JdbcMappingFunction
  • Field Details

    • preparedStatement

      protected final PreparedStatement preparedStatement
    • index

      protected final int index
  • Constructor Details

    • JdbcValueSetter

      public JdbcValueSetter(PreparedStatement preparedStatement, int index)
  • Method Details

    • apply

      public <R, V> R apply(Wrapper<V> wrapper, JdbcType<V> jdbcType) throws SQLException
      Description copied from interface: JdbcMappingFunction
      Applies this function.
      Specified by:
      apply in interface JdbcMappingFunction
      Type Parameters:
      R - the return type
      V - the basic type
      Parameters:
      wrapper - the wrapper
      jdbcType - the JDBC type
      Returns:
      the mapping result
      Throws:
      SQLException - if an SQL related error occurs