NamedParameterJdbcTemplate operations.
This interface allows for the specification of SQL type in addition to parameter values. All parameter values and types are identified by specifying the name of the parameter.
Intended to wrap various implementations like a Map or a JavaBean with a consistent interface.
NamedParameterJdbcOperations, NamedParameterJdbcTemplate, MapSqlParameterSource, BeanPropertySqlParameterSource
| Modifier and Type | Field and Description |
|---|---|
| public static final int | TYPE_UNKNOWN
Constant that indicates an unknown (or unspecified) SQL type. |
| Modifier and Type | Method and Description |
|---|---|
| public default String[] | Returns: the array of parameter names, ornull if not determinableEnumerate all available parameter names if possible. |
| public default int | Returns: the SQL type of the specified parameter, orTYPE_UNKNOWN if not knownthe name of the parameter paramName)Determine the SQL type for the specified named parameter. |
| public default String | Returns: the type name of the specified parameter, ornull if not knownthe name of the parameter paramName)Determine the type name for the specified named parameter. |
| public Object | |
| public boolean |
| TYPE_UNKNOWN | back to summary |
|---|---|
| public static final int TYPE_UNKNOWN Constant that indicates an unknown (or unspecified) SQL type.
To be returned from
| |
| getParameterNames | back to summary |
|---|---|
| public default String[] getParameterNames() Enumerate all available parameter names if possible. This is an optional operation, primarily for use with
| |
| getSqlType | back to summary |
|---|---|
| public default int getSqlType(String paramName) Determine the SQL type for the specified named parameter.
| |
| getTypeName | back to summary |
|---|---|
| public default String getTypeName(String paramName) Determine the type name for the specified named parameter. | |
| getValue | back to summary |
|---|---|
| public Object getValue(String paramName) throws IllegalArgumentException Return the parameter value for the requested named parameter.
| |
| hasValue | back to summary |
|---|---|
| public boolean hasValue(String paramName) Determine whether there is a value for the specified named parameter.
| |