public class BlobDbType extends ResolvedDbType
id, name| Constructor and Description |
|---|
BlobDbType(int id,
String name) |
| Modifier and Type | Method and Description |
|---|---|
void |
setParameterValue(PreparedStatement statement,
int index,
Object value,
DbConnection connection)
Sets the parameter accounting for the case in which the
value is an InputStream or a String, in which
case it is consumed into a byte[] and set. |
getParameterValuegetId, getName, registerOutParameter, toStringpublic BlobDbType(int id,
String name)
public void setParameterValue(PreparedStatement statement, int index, Object value, DbConnection connection) throws SQLException
value is an InputStream or a String, in which
case it is consumed into a byte[] and set. Sets the value of an input parametersetParameterValue in interface DbTypesetParameterValue in class ResolvedDbTypestatement - statement that contains the parameterindex - index of the parameter in the statement (first parameter is 1, the second is 2, etc)value - value to assignconnection - connection to create the parameter valueSQLException - if parameterIndex does not correspond to a parameter marker in the SQL statement; if a database access
error occurs; this method is called on a closed PreparedStatement or the type of the given object is
ambiguousCopyright © 2021. All rights reserved.