Class JdbcValueGetter

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

public class JdbcValueGetter extends Object implements JdbcMappingFunction
  • Field Details

    • resultSet

      protected final ResultSet resultSet
    • index

      protected final int index
  • Constructor Details

    • JdbcValueGetter

      public JdbcValueGetter(ResultSet resultSet, 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