Package org.jdbi.v3.core.statement
Class DescribedArgument
- java.lang.Object
-
- org.jdbi.v3.core.statement.DescribedArgument
-
-
Field Summary
Fields Modifier and Type Field Description private Argumentargprivate static ConfigCache<java.lang.Class<?>,java.lang.Boolean>ARG_CLASS_HAS_TOSTRINGprivate java.lang.Stringdescription
-
Constructor Summary
Constructors Constructor Description DescribedArgument(Argument arg, java.lang.Object value)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidapply(int position, java.sql.PreparedStatement statement, StatementContext ctx)Apply the argument to the given prepared statement.java.lang.StringtoString()static Argumentwrap(StatementContext ctx, Argument arg, java.lang.Object value)
-
-
-
Field Detail
-
ARG_CLASS_HAS_TOSTRING
private static final ConfigCache<java.lang.Class<?>,java.lang.Boolean> ARG_CLASS_HAS_TOSTRING
-
arg
private final Argument arg
-
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.SQLExceptionDescription copied from interface:ArgumentApply the argument to the given prepared statement.- Specified by:
applyin interfaceArgument- Parameters:
position- the position to which the argument should be bound, using the stupid JDBC "start at 1" bitstatement- the prepared statement the argument is to be bound toctx- the statement context- Throws:
java.sql.SQLException- if anything goes wrong
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
wrap
public static Argument wrap(StatementContext ctx, Argument arg, java.lang.Object value)
-
-