Class CharacterStreamArgument

java.lang.Object
org.jdbi.v3.core.argument.CharacterStreamArgument
All Implemented Interfaces:
Argument

public class CharacterStreamArgument extends Object implements Argument
Bind a Reader as a character stream parameter.
  • Constructor Details

    • CharacterStreamArgument

      public CharacterStreamArgument(Reader reader, int length)
      Parameters:
      reader - the character stream to bind
      length - the length of the stream
  • Method Details

    • apply

      public void apply(int position, PreparedStatement statement, StatementContext ctx) throws SQLException
      Description copied from interface: Argument
      Apply the argument to the given prepared statement.
      Specified by:
      apply in interface Argument
      Parameters:
      position - the position to which the argument should be bound, using the stupid JDBC "start at 1" bit
      statement - the prepared statement the argument is to be bound to
      ctx - the statement context
      Throws:
      SQLException - if anything goes wrong
    • toString

      public String toString()
      Overrides:
      toString in class Object