Class LoggableBinderArgument<T>

  • All Implemented Interfaces:
    Argument

    public class LoggableBinderArgument<T>
    extends java.lang.Object
    implements Argument
    • Constructor Detail

      • LoggableBinderArgument

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

      • bindAsString

        public static Argument bindAsString​(java.lang.Object obj)
      • apply

        public void apply​(int pos,
                          java.sql.PreparedStatement stmt,
                          StatementContext ctx)
                   throws java.sql.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:
        java.sql.SQLException - if anything goes wrong
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object