|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectorg.seasar.kuina.dao.internal.command.AbstractCommand
org.seasar.kuina.dao.internal.command.AbstractQueryCommand
org.seasar.kuina.dao.internal.command.AbstractDynamicQueryCommand
org.seasar.kuina.dao.internal.command.ExampleQueryCommand
public class ExampleQueryCommand
エンティティのプロパティを検索条件として問い合わせを実行するCommandです.
| 入れ子のクラスの概要 | |
|---|---|
static class |
ExampleQueryCommand.Context
問い合わせ条件を作成するコンテキストです. |
| フィールドの概要 | |
|---|---|
protected int |
firstResult
firstResult指定の引数の位置 |
protected int |
maxResults
maxResult指定の引数の位置 |
protected int |
orderby
orderby指定の引数の位置 |
| クラス org.seasar.kuina.dao.internal.command.AbstractDynamicQueryCommand から継承されたフィールド |
|---|
distinct, EMPTY_MAP, fetchJoins, identificationVariable, orderbySpecs |
| クラス org.seasar.kuina.dao.internal.command.AbstractQueryCommand から継承されたフィールド |
|---|
entityClass, flushMode, hints, method, resultList |
| コンストラクタの概要 | |
|---|---|
ExampleQueryCommand(Class<?> entityClass,
Method method,
boolean resultList,
int orderby,
int firstResult,
int maxResults)
インスタンスを構築します。 |
|
| メソッドの概要 | |
|---|---|
protected void |
addCondition(SelectStatement statement,
Class<?> entityClass,
Object entity,
String pathExpression,
ExampleQueryCommand.Context context)
SELECT文に検索条件を追加します. |
protected void |
addCondition(SelectStatement statement,
Object entity,
AttributeDesc attribute,
String pathExpression,
ExampleQueryCommand.Context context)
エンティティの属性を検索条件としてSELECT文に追加します. |
protected List<String> |
bindParameter(SelectStatement statement,
Object[] arguments)
Daoメソッドの引数をパラメータ値としてSELECT文にバインドします. |
| クラス org.seasar.kuina.dao.internal.command.AbstractDynamicQueryCommand から継承されたメソッド |
|---|
createFetchJoinAssociations, createIdentificationVariableDeclaration, createJoinAssociations, createSelectStatement, detectDistinct, detectFetchJoins, detectOrderbySpec, execute |
| クラス org.seasar.kuina.dao.internal.command.AbstractQueryCommand から継承されたメソッド |
|---|
setupQuery, setupStatement |
| クラス org.seasar.kuina.dao.internal.command.AbstractCommand から継承されたメソッド |
|---|
detectFlushMode, detectHints, getHintValue |
| クラス java.lang.Object から継承されたメソッド |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| フィールドの詳細 |
|---|
protected int orderby
protected int firstResult
protected int maxResults
| コンストラクタの詳細 |
|---|
public ExampleQueryCommand(Class<?> entityClass,
Method method,
boolean resultList,
int orderby,
int firstResult,
int maxResults)
entityClass - 問い合わせ対象のエンティティ・クラスmethod - DaoメソッドresultList - 問い合わせ結果をListで返す場合にtrueorderby - orderby指定の引数の位置firstResult - firstResult指定の引数の位置maxResults - firstResult指定の引数の位置| メソッドの詳細 |
|---|
protected List<String> bindParameter(SelectStatement statement,
Object[] arguments)
AbstractDynamicQueryCommand の記述:
AbstractDynamicQueryCommand 内の bindParameterstatement - SELECT文arguments - Daoメソッドの引数
List
protected void addCondition(SelectStatement statement,
Class<?> entityClass,
Object entity,
String pathExpression,
ExampleQueryCommand.Context context)
statement - SELECT文entityClass - エンティティ・クラスentity - エンティティ・インスタンスpathExpression - パス式context - コンテキスト
protected void addCondition(SelectStatement statement,
Object entity,
AttributeDesc attribute,
String pathExpression,
ExampleQueryCommand.Context context)
statement - SELECT文entity - エンティティattribute - 属性記述子pathExpression - パス式context - コンテキスト
|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||