Skip to main content
Hint

This article is generated by AI translation.

Assist Rules

RuleDescription
RESULT ruleNo effect in the query text but influences how result sets are fetched in specific scenarios.
DEFAULTRESULT ruleWhen multi-result or stored procedures return multiple result sets, use defaultResult to avoid configuring multiple RESULT rules.

RESULT Rule

RESULT has no effect on the query text but influences result handling in specific scenarios. Usage:

Usage
@{resultSet, key1 = value1, key2 = value2}

Supported scenarios:

Attributes:

NameTypeDescription
nameString可选 Name of the OUT argument in the result set. When mode is INOUT, this can distinguish the names for input vs output.
javaTypeClass可选 Map cursor result sets to specific Java types; see Object Mapping.
rowMapperRowMapper可选 Same as above; see RowMapper.
rowHandlerRowCallbackHandler可选 Same as above; see RowCallbackHandler.
extractorResultSetExtractor可选 Same as above; see ResultSetExtractor.

DEFAULTRESULT Rule

DEFAULTRESULT also has no text effect but influences result handling in specific scenarios. Usage:

Usage
@{defaultResult, key1 = value1, key2 = value2}

Supported scenarios:

Attributes:

NameTypeDescription
javaTypeClass可选 Map cursor result sets to specific Java types; see Object Mapping.
rowMapperRowMapper可选 Same as above; see RowMapper.
rowHandlerRowCallbackHandler可选 Same as above; see RowCallbackHandler.
extractorResultSetExtractor可选 Same as above; see ResultSetExtractor.