| Constructor and Description |
|---|
DynamicDbType(String name) |
| Modifier and Type | Method and Description |
|---|---|
int |
getId() |
String |
getName() |
Object |
getParameterValue(CallableStatement statement,
int index)
Gets the value of an output parameter
|
void |
registerOutParameter(CallableStatement statement,
int index)
Registers an output parameter
|
void |
setParameterValue(PreparedStatement statement,
int index,
Object value,
DbConnection connection)
Sets the value of an input parameter
|
public DynamicDbType(String name)
public Object getParameterValue(CallableStatement statement, int index) throws SQLException
DbTypegetParameterValue in interface 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 statementpublic void setParameterValue(PreparedStatement statement, int index, Object value, DbConnection connection) throws SQLException
DbTypesetParameterValue in interface 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 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
ambiguouspublic void registerOutParameter(CallableStatement statement, int index) throws SQLException
DbTyperegisterOutParameter in interface DbTypestatement - statement that contains the parameterindex - index of the parameter in the statement (first parameter is 1, the second is 2, etc)SQLException - if the parameterIndex is not valid; if a database access error occurs or this method is called on a
closed CallableStatementCopyright © 2022. All rights reserved.