public abstract class AbstractOutParameterResultSetHandler extends AbstractParameterResultSetHandler
CallableStatement.AbstractParameterResultSetHandler.ParameterWrapper| Constructor and Description |
|---|
AbstractOutParameterResultSetHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
clearOutParameter()
Clears the out parameters.
|
Map |
getGlobalOutParameter()
Returns the global out parameter
Map. |
boolean |
getMustRegisterOutParameters()
Get if out parameter must be registered to be returned.
|
Map |
getOutParameter(String sql)
Returns the first out parameter
Map that matches
the specified SQL string. |
Map |
getOutParameter(String sql,
Map parameters)
Returns the first out parameter
Map that matches
the specified SQL string and the specified parameters. |
void |
prepareGlobalOutParameter(Map outParameters)
Prepares the global out parameter
Map. |
void |
prepareOutParameter(String sql,
Map outParameters)
Prepare an out parameter
Map for a specified
SQL string. |
void |
prepareOutParameter(String sql,
Map outParameters,
List parameters)
Prepare an out parameter
Map for a specified SQL string and
the specified parameters. |
void |
prepareOutParameter(String sql,
Map outParameters,
Map parameters)
Prepare an out parameter
Map for a specified SQL string
and the specified parameters. |
void |
prepareOutParameter(String sql,
Map outParameters,
Object[] parameters)
Prepare an out parameter
Map for a specified SQL string and
the specified parameters. |
void |
setMustRegisterOutParameters(boolean mustOutParameterBeRegistered)
Set if out parameters must be registered to be returned.
|
addParameterMapForExecutedStatement, clearGeneratedKeys, clearResultSets, clearThrowsSQLException, clearUpdateCounts, getExecutedStatementParameter, getExecutedStatementParameterMap, getGeneratedKeys, getMatchingParameterWrapper, getParametersForExecutedStatement, getResultSet, getResultSets, getSQLException, getThrowsSQLException, getUpdateCount, getUpdateCounts, hasMultipleResultSets, hasMultipleUpdateCounts, prepareGeneratedKeys, prepareGeneratedKeys, prepareGeneratedKeys, prepareResultSet, prepareResultSet, prepareResultSet, prepareResultSets, prepareResultSets, prepareResultSets, prepareThrowsSQLException, prepareThrowsSQLException, prepareThrowsSQLException, prepareThrowsSQLException, prepareThrowsSQLException, prepareThrowsSQLException, prepareUpdateCount, prepareUpdateCount, prepareUpdateCount, prepareUpdateCounts, prepareUpdateCounts, prepareUpdateCounts, setExactMatchParameteraddExecutedStatement, addReturnedResultSet, addReturnedResultSets, clearGlobalGeneratedKeys, clearGlobalResultSet, clearGlobalUpdateCount, clearReturnsResultSet, createResultSet, createResultSet, createResultSet, createResultSet, getCaseSensitive, getContinueProcessingOnBatchFailure, getExactMatch, getExecutedStatements, getGeneratedKeys, getGeneratedKeysMap, getGlobalGeneratedKeys, getGlobalResultSet, getGlobalResultSets, getGlobalUpdateCount, getGlobalUpdateCounts, getResultSet, getResultSetMap, getResultSets, getReturnedResultSets, getReturnsResultSet, getSQLException, getThrowsSQLException, getUpdateCount, getUpdateCountMap, getUpdateCounts, getUseRegularExpressions, hasMultipleGlobalResultSets, hasMultipleGlobalUpdateCounts, hasMultipleResultSets, hasMultipleUpdateCounts, prepareGeneratedKeys, prepareGlobalGeneratedKeys, prepareGlobalResultSet, prepareGlobalResultSets, prepareGlobalUpdateCount, prepareGlobalUpdateCounts, prepareResultSet, prepareResultSets, prepareReturnsResultSet, prepareThrowsSQLException, prepareThrowsSQLException, prepareUpdateCount, prepareUpdateCounts, setCaseSensitive, setContinueProcessingOnBatchFailure, setExactMatch, setUseRegularExpressionspublic AbstractOutParameterResultSetHandler()
public void setMustRegisterOutParameters(boolean mustOutParameterBeRegistered)
false, i.e. if there are matching
out parameters prepared, they are returned even if the
registerOutParameter methods of CallableStatement
have not been called. If set to true, registerOutParameter
must be called.mustOutParameterBeRegistered - must out parameter be registeredpublic boolean getMustRegisterOutParameters()
public Map getOutParameter(String sql)
Map that matches
the specified SQL string.
Please note that you can modify the match parameters with
AbstractResultSetHandler.setCaseSensitive(boolean), AbstractResultSetHandler.setExactMatch(boolean) and
AbstractResultSetHandler.setUseRegularExpressions(boolean).sql - the SQL stringMappublic Map getOutParameter(String sql, Map parameters)
Map that matches
the specified SQL string and the specified parameters.
Please note that you can modify the match parameters with
AbstractResultSetHandler.setCaseSensitive(boolean), AbstractResultSetHandler.setExactMatch(boolean) and
AbstractResultSetHandler.setUseRegularExpressions(boolean) and the match parameters for the
specified parameter list with AbstractParameterResultSetHandler.setExactMatchParameter(boolean).sql - the SQL stringparameters - the parametersMappublic void clearOutParameter()
public Map getGlobalOutParameter()
Map.Mappublic void prepareGlobalOutParameter(Map outParameters)
Map.outParameters - the global out parameter Mappublic void prepareOutParameter(String sql, Map outParameters)
Map for a specified
SQL string.
Please note that you can modify the match parameters with
AbstractResultSetHandler.setCaseSensitive(boolean), AbstractResultSetHandler.setExactMatch(boolean) and
AbstractResultSetHandler.setUseRegularExpressions(boolean).sql - the SQL stringoutParameters - the out parameter Mappublic void prepareOutParameter(String sql, Map outParameters, Object[] parameters)
Map for a specified SQL string and
the specified parameters. The specified parameters array
must contain the parameters in the correct order starting with index 0 for
the first parameter. Please keep in mind that parameters in
CallableStatement objects start with 1 as the first
parameter. So parameters[0] maps to the
parameter with index 1.
Please note that you can modify the match parameters with
AbstractResultSetHandler.setCaseSensitive(boolean), AbstractResultSetHandler.setExactMatch(boolean) and
AbstractResultSetHandler.setUseRegularExpressions(boolean) and the match parameters for the
specified parameter list with AbstractParameterResultSetHandler.setExactMatchParameter(boolean).sql - the SQL stringoutParameters - the corresponding out parameter Mapparameters - the parameterspublic void prepareOutParameter(String sql, Map outParameters, List parameters)
Map for a specified SQL string and
the specified parameters. The specified parameters array
must contain the parameters in the correct order starting with index 0 for
the first parameter. Please keep in mind that parameters in
CallableStatement objects start with 1 as the first
parameter. So parameters.get(0) maps to the
parameter with index 1.
Please note that you can modify the match parameters with
AbstractResultSetHandler.setCaseSensitive(boolean), AbstractResultSetHandler.setExactMatch(boolean) and
AbstractResultSetHandler.setUseRegularExpressions(boolean) and the match parameters for the
specified parameter list with AbstractParameterResultSetHandler.setExactMatchParameter(boolean).sql - the SQL stringoutParameters - the corresponding out parameter Mapparameters - the parameterspublic void prepareOutParameter(String sql, Map outParameters, Map parameters)
Map for a specified SQL string
and the specified parameters. The specified parameters Map
must contain the parameters by mapping Integer or
String objects to the corresponding parameter.
An Integer object is the index of the parameter.
A String is the name of the parameter.
Please note that you can modify the match parameters with
AbstractResultSetHandler.setCaseSensitive(boolean), AbstractResultSetHandler.setExactMatch(boolean) and
AbstractResultSetHandler.setUseRegularExpressions(boolean) and the match parameters for the
specified parameter list with AbstractParameterResultSetHandler.setExactMatchParameter(boolean).sql - the SQL stringoutParameters - the corresponding out parameter Mapparameters - the parametersCopyright © 2003-2014. All Rights Reserved.