接口 ValueBinder<X>
-
- 所有已知实现类:
BasicBinder
public interface ValueBinder<X>Contract for binding values to aPreparedStatement.- 作者:
- Steve Ebersole
-
-
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 voidbind(CallableStatement st, X value, String name, WrapperOptions options)Bind a value to a CallableStatement.voidbind(PreparedStatement st, X value, int index, WrapperOptions options)Bind a value to a prepared statement.
-
-
-
方法详细资料
-
bind
void bind(PreparedStatement st, X value, int index, WrapperOptions options) throws SQLException
Bind a value to a prepared statement.- 参数:
st- The prepared statement to which to bind the value.value- The value to bind.index- The position at which to bind the value within the prepared statementoptions- The options.- 抛出:
SQLException- Indicates a JDBC error occurred.
-
bind
void bind(CallableStatement st, X value, String name, WrapperOptions options) throws SQLException
Bind a value to a CallableStatement.- 参数:
st- The prepared statement to which to bind the value.value- The value to bind.name- The name to bind the value within the prepared statementoptions- The options.- 抛出:
SQLException- Indicates a JDBC error occurred.
-
-