File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -218,10 +218,10 @@ RowBounds rowBounds = new RowBounds(offset, limit);</source>
218
218
<p >ドライバーによって得られる効果は異なります。SCROLL_SENSITIVE または SCROLL_INSENSITIVE (つまり FORWARD_ONLY 以外)の結果セットタイプを使った時、最も良いパフォーマンスが得られます。</p >
219
219
<p >ResultHandler を渡すと、各行を自由に処理することができます。List に追加したり、Map や Set を作成することもできますし、結果を捨てて合計値のみを返すこともできます。ResultHandler を使えば好きな処理を行うことも可能で、MyBatis 自身も内部的に結果リストを構築するために ResultHandler を利用しています。</p >
220
220
<p >ResultHandler インターフェイスは非常にシンプルです。</p >
221
- <source >package org.mybatis.executor.result;
221
+ <source ><![CDATA[ package org.mybatis.executor.result;
222
222
public interface ResultHandler<T> {
223
223
void handleResult(ResultContext<? extends T> context);
224
- }</source>
224
+ }]]> </source >
225
225
226
226
<p >引数 ResultContext を介して結果オブジェクトにアクセスすることができます。ResultContext#getResultCount() メソッドは作成された結果オブジェクトの数を返します。ResultContext#stop() メソッドを呼び出すと、それ以上結果を読み込まないよう MyBatis に指示します。</p >
227
227
You can’t perform that action at this time.
0 commit comments