public class ResolvedDbType extends AbstractDbType
id, name| Constructor and Description |
|---|
ResolvedDbType(int id,
String name)
Creates a new DB type
|
| Modifier and Type | Method and Description |
|---|---|
Object |
getParameterValue(CallableStatement statement,
int index)
Gets the value of an output parameter
|
void |
setParameterValue(PreparedStatement statement,
int index,
Object value)
Sets the value of an input parameter
|
equals, getId, getName, registerOutParameter, toStringpublic ResolvedDbType(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
DbTypestatement - 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 ambiguouspublic Object getParameterValue(CallableStatement statement, int index) throws SQLException
DbTypestatement - statement that contains the parameterindex - index of the parameter in the statement (first parameter is 1, the second is 2, etc)SQLException - 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 statementCopyright © 2003–2020 MuleSoft, Inc.. All rights reserved.