Class LoggableBinderArgument<T>

java.lang.Object
org.jdbi.v3.core.argument.internal.strategies.LoggableBinderArgument<T>
All Implemented Interfaces:
Argument

public class LoggableBinderArgument<T> extends Object implements Argument
  • Field Details

  • Constructor Details

    • LoggableBinderArgument

      public LoggableBinderArgument(T value, StatementBinder<T> binder)
  • Method Details

    • bindAsString

      public static Argument bindAsString(Object obj)
    • apply

      public void apply(int pos, PreparedStatement stmt, StatementContext ctx) throws SQLException
      Description copied from interface: Argument
      Apply the argument to the given prepared statement.
      Specified by:
      apply in interface Argument
      Parameters:
      pos - the position to which the argument should be bound, using the stupid JDBC "start at 1" bit
      stmt - 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