public class StructDbType extends AbstractStructuredDbType
id, name
Constructor and Description |
---|
StructDbType(int id,
String name)
Creates a new DB type
|
Modifier and Type | Method and Description |
---|---|
protected static String |
createUnsupportedTypeErrorMessage(Object value)
Creates error message for the case when a given class is not supported
|
void |
setParameterValue(PreparedStatement statement,
int index,
Object value)
Sets the value of an input parameter
|
registerOutParameter
getParameterValue
equals, getId, getName, toString
public StructDbType(int id, String name)
id
- type identifier from {#link java.sql.Types} or any custom value.name
- name of the structured type. Non empty.public void setParameterValue(PreparedStatement statement, int index, Object value) throws SQLException
DbType
setParameterValue
in interface DbType
setParameterValue
in class ResolvedDbType
statement
- statement that contains the parameterindex
- index of the parameter in the statement (first parameter is 1, the second is 2, etc)value
- value to assignSQLException
- 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 © 2003–2018 MuleSoft, Inc.. All rights reserved.