T - The type of the parameter valuepublic abstract class Parameter<T> extends Object
Parameter stores a parameter value in its native type and can set
it on a PreparedStatement using correct type information.| Modifier and Type | Class and Description |
|---|---|
static class |
Parameter.BooleanParameter
|
static class |
Parameter.IntegerParameter
|
static class |
Parameter.LongParameter
|
static class |
Parameter.StringParameter
|
| Modifier and Type | Field and Description |
|---|---|
protected T |
value
The value of the parameter.
|
| Modifier | Constructor and Description |
|---|---|
protected |
Parameter(T value)
Creates a new parameter.
|
| Modifier and Type | Method and Description |
|---|---|
abstract void |
set(PreparedStatement preparedStatement,
int index)
Sets the value on the prepared statement.
|
protected final T value
protected Parameter(T value)
value - The value of the parameterpublic abstract void set(PreparedStatement preparedStatement, int index) throws SQLException
preparedStatement - The prepared statement to set the value onindex - The index of the parameterSQLException - if an SQL error occursCopyright © 2026. All rights reserved.