Class DescribedArgument

  • All Implemented Interfaces:
    Argument

    class DescribedArgument
    extends java.lang.Object
    implements Argument
    • Field Detail

      • ARG_CLASS_HAS_TOSTRING

        private static final ConfigCache<java.lang.Class<?>,​java.lang.Boolean> ARG_CLASS_HAS_TOSTRING
      • description

        private final java.lang.String description
    • Constructor Detail

      • DescribedArgument

        DescribedArgument​(Argument arg,
                          java.lang.Object value)
    • Method Detail

      • apply

        public void apply​(int position,
                          java.sql.PreparedStatement statement,
                          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:
        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:
        java.sql.SQLException - if anything goes wrong
      • toString

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