|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectorg.seasar.kuina.dao.internal.condition.AbstractConditionalExpressionBuilder
org.seasar.kuina.dao.internal.condition.InBuilder
public class InBuilder
INを使用した問い合わせ条件を作成し,SELECT文に追加するビルダです.
このビルダは,次のようなCriteria API呼び出しを行います.
statement.where(in("pathExpression", parameter("parameterName", vale), ...));
inはoperationMethodで表されるメソッドです.
parameterはparameterMethodで表されるメソッドです.
| フィールドの概要 |
|---|
| クラス org.seasar.kuina.dao.internal.condition.AbstractConditionalExpressionBuilder から継承されたフィールド |
|---|
entityClass, operationMethod, parameterMethod, parameterName, pathExpression, propertyPath |
| コンストラクタの概要 | |
|---|---|
InBuilder(Class<?> entityClass,
String propertyPath,
String parameterName,
Method parameterMethod,
Method operationMethod)
インスタンスを構築します。 |
|
| メソッドの概要 | |
|---|---|
String |
appendCondition(SelectStatement statement,
Object value)
問い合わせ条件等を作成してSELECT文に追加します. |
protected Object |
createParameterFromCollection(Collection<?> values)
IN句のパラメータにバインドされる値の Collectionからパラメータ式の配列を作成します. |
protected Object |
createParameters(Object values)
パラメータ式の配列を作成します. |
protected Object |
createParametersFromArray(Object[] values)
IN句のパラメータにバインドされる値の配列からパラメータ式の配列を作成します. |
| クラス org.seasar.kuina.dao.internal.condition.AbstractConditionalExpressionBuilder から継承されたメソッド |
|---|
getOperationMethod, getParameterMethod, getParameterName, getPathExpression, getPropertyPath, toPathExpression |
| クラス java.lang.Object から継承されたメソッド |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| コンストラクタの詳細 |
|---|
public InBuilder(Class<?> entityClass,
String propertyPath,
String parameterName,
Method parameterMethod,
Method operationMethod)
entityClass - エンティティ・クラスpropertyPath - プロパティのパスparameterName - パラメータ名parameterMethod - CriteriaOperationsのparameter()メソッドoperationMethod - CriteriaOperationsの問い合わせ条件作成メソッド| メソッドの詳細 |
|---|
public String appendCondition(SelectStatement statement,
Object value)
ConditionalExpressionBuilder の記述:
valueをパラメータにバインドした場合はパラメータ名を返します. パラメータをバインドしなかった場合はnullを返します.
多くのビルダ実装クラスではvalueがnullの場合はパラメータをバインドしません.
statement - SELECT文value - 問い合わせ条件にバインドするパラメータの値
valueをパラメータにバインドした場合はパラメータ名protected Object createParameters(Object values)
values - IN句のパラメータにバインドされる値の配列またはCollection
protected Object createParametersFromArray(Object[] values)
values - IN句のパラメータにバインドされる値の配列またはCollection
protected Object createParameterFromCollection(Collection<?> values)
Collectionからパラメータ式の配列を作成します.
values - IN句のパラメータにバインドされる値の配列またはCollection
|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||