Skip to content

pQuery.getValueMap

Signature: pQuery.getValueMap()

Returns: Map<String, ParameterTypeValue> parameterMap - an unmodifiable map containing a ParameterTypeValue object for each named parameter

Returns the values for each named parameter.

Note

This map will be empty until one of the set parameter functions is called. Use the pQuery.clearParameters() function to clear this map.

Note

The ParameterTypeValue object has the following functions: getJdbcSetterType() getValue() getTargetSqlType() getScaleOrLength()

Parameters

None

Example

// Create the pQuery object with the query to be executed
var pQuery = qie.getParameterizedQuery(
   "insert into patient (name, balance) values (:name, :balance)");

pQuery.setString("name", "Ada Lovelace");
pQuery.setDouble("balance", 96.25);

var mapOfParameterTypes = pQuery.getValueMap();