XML Element: parameter

This is a child element of the parameterMap element. This provides the mapping of a property of the parameterMap.class. The attributes typically used are –

Key

Relation Type

Purpose

property

Attribute

This is the name of the property within the class provided for the parameter map. In case the class happens to be java.util.HashMap, then this is used as the Key while retrieving the element from the Map. If the class is not a collection, then this is interpreted as a Bean property using which the value is retrieved.

javaType

Attribute

This is the java type to which the column value should be converted to. This should be the fully defined class name

jdbcType

Attribute

The JDBC Type. Refer to iBatis documentation for the value list of values.


The following code segment is a sample definition:

<parameterMap id="MODULE_1_INSERT_DATA" class="java.util.HashMap">
<parameter property="AUDIT_ID" jdbcType="VARCHAR" javaType="java.lang.String" />
<parameter property="EVENT_ID" jdbcType="NUMBER" javaType="java.lang.String"/>
<parameter property="APP_SERVER" jdbcType="VARCHAR" javaType="java.lang.String"/>
</parameterMap>

Â