| java.lang.Object com.internetcds.jdbc.tds.ParameterUtils
ParameterUtils | public class ParameterUtils (Code) | | |
countParameters | public static int countParameters(String sql) throws java.sql.SQLException(Code) | | Count the number of parameters in a prepared sql statement.
number of parameter placeholders in sql statement. exception: SQLException - thrown if there is a problem parsing statment. |
createParameterMapping | public static void createParameterMapping(String rawQueryString, ParameterListItem[] parameterList, Tds tds) throws SQLException(Code) | | create the formal parameters for a parameter list.
This method takes a sql string and a parameter list containing
the actual parameters and creates the formal parameters for
a stored procedure. The formal parameters will later be used
when the stored procedure is submitted for creation on the server.
Parameters: rawQueryString - (in-only) Parameters: parameterList - (update) |
verifyThatParametersAreSet | public static void verifyThatParametersAreSet(ParameterListItem[] parameterList) throws SQLException(Code) | | check that all items in parameterList have been given a value
exception: SQLException - thrown if one or more parameters aren't set |
|
|