Hint
This article is generated by AI translation.
Assist Rules
| Rule | Description |
|---|---|
| RESULT rule | No effect in the query text but influences how result sets are fetched in specific scenarios. |
| DEFAULTRESULT rule | When 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:
- Stored procedure calls
- Multi-result
- Using
PreparedMultipleResultSetExtractororCallableMultipleResultSetExtractorto receive results.
Attributes:
| Name | Type | Description |
|---|---|---|
| name | String | 可选 Name of the OUT argument in the result set. When mode is INOUT, this can distinguish the names for input vs output. |
| javaType | Class | 可选 Map cursor result sets to specific Java types; see Object Mapping. |
| rowMapper | RowMapper | 可选 Same as above; see RowMapper. |
| rowHandler | RowCallbackHandler | 可选 Same as above; see RowCallbackHandler. |
| extractor | ResultSetExtractor | 可选 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:
- Stored procedure calls
- Multi ResultSet
- Using
PreparedMultipleResultSetExtractororCallableMultipleResultSetExtractorto receive results.
Attributes:
| Name | Type | Description |
|---|---|---|
| javaType | Class | 可选 Map cursor result sets to specific Java types; see Object Mapping. |
| rowMapper | RowMapper | 可选 Same as above; see RowMapper. |
| rowHandler | RowCallbackHandler | 可选 Same as above; see RowCallbackHandler. |
| extractor | ResultSetExtractor | 可选 Same as above; see ResultSetExtractor. |