public final class PreparedStatementUtils extends Object
PreparedStatement
objects.Modifier and Type | Method and Description |
---|---|
static void |
setValue(@NotNull PreparedStatement statement,
int paramIndex,
int sqlType,
@Nullable Object value)
Sets a value inside a
PreparedStatement parameter. |
public static void setValue(@NotNull @NotNull PreparedStatement statement, int paramIndex, int sqlType, @Nullable @Nullable Object value) throws SQLException
PreparedStatement
parameter.statement
- a valid PreparedStatementparamIndex
- the parameter indexsqlType
- the type of the parameter expressed as sql Types
value
- the parameter valueSQLException
- if something went wrongCopyright © 2021. All rights reserved.