|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectorg.seasar.kuina.dao.internal.command.AbstractCommand
org.seasar.kuina.dao.internal.command.AbstractQueryCommand
public abstract class AbstractQueryCommand
問い合わせを行うCommandに共通の機能を提供する抽象クラスです.
| フィールドの概要 | |
|---|---|
protected Class<?> |
entityClass
問い合わせ対象のエンティティ・クラス |
protected FlushModeType |
flushMode
Daoメソッドのフラッシュ・モード |
protected Map<String,Object> |
hints
Daoメソッドのヒントの Map |
protected Method |
method
Daoメソッド |
protected boolean |
resultList
問い合わせ結果を Listで返す場合にtrue |
| コンストラクタの概要 | |
|---|---|
AbstractQueryCommand(Class<?> entityClass,
Method method,
boolean resultList)
インスタンスを構築します。 |
|
| メソッドの概要 | |
|---|---|
protected void |
setupQuery(Query query)
問い合わせの実行前に Queryの設定を行います. |
protected void |
setupStatement(SelectStatement statement)
問い合わせの実行前に SelectStatementの設定を行います. |
| クラス org.seasar.kuina.dao.internal.command.AbstractCommand から継承されたメソッド |
|---|
detectFlushMode, detectHints, getHintValue |
| クラス java.lang.Object から継承されたメソッド |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| インタフェース org.seasar.kuina.dao.internal.Command から継承されたメソッド |
|---|
execute |
| フィールドの詳細 |
|---|
protected final Class<?> entityClass
protected final Method method
protected final boolean resultList
Listで返す場合にtrue
protected final FlushModeType flushMode
protected final Map<String,Object> hints
Map
| コンストラクタの詳細 |
|---|
public AbstractQueryCommand(Class<?> entityClass,
Method method,
boolean resultList)
entityClass - 問い合わせ対象のエンティティ・クラスmethod - DaoメソッドresultList - 問い合わせ結果をListで返す場合にtrue| メソッドの詳細 |
|---|
protected void setupQuery(Query query)
Queryの設定を行います.
Queryにフラッシュ・モードとヒントを設定します.
サブクラスは必要に応じてメソッドをオーバーライドし,Queryに様々な設定を行うことができます.
query - QueryQuery.setFlushMode(FlushModeType),
Query.setHint(String, Object)protected void setupStatement(SelectStatement statement)
SelectStatementの設定を行います.
SelectStatementにフラッシュ・モードとヒントを設定します.
サブクラスは必要に応じてメソッドをオーバーライドし,SelectStatementに様々な設定を行うことができます.
statement - 問い合わせ文
|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||