|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectorg.seasar.extension.jdbc.where.ComposableWhereContext
public class ComposableWhereContext
複数の構成要素からなる条件を組み立てるためのコンテキストです。
| フィールドの概要 | |
|---|---|
protected StringBuilder |
criteriaSb
現在のクライテリアを保持する文字列バッファ |
protected List<Object> |
paramList
バインド変数のリスト |
protected List<String> |
propertyNameList
バインド変数に対応するプロパティ名のリスト |
| コンストラクタの概要 | |
|---|---|
ComposableWhereContext()
|
|
| メソッドの概要 | |
|---|---|
int |
addParam(ConditionType conditionType,
Object param)
条件にパラメータを追加します。 |
void |
addParam(Object param)
条件にパラメータを追加します。 |
void |
addPropertyName(CharSequence propertyName)
条件にプロパティ名を追加します。 |
ComposableWhereContext |
append(boolean b)
クライテリア文字列に値を追加します。 |
ComposableWhereContext |
append(byte b)
クライテリア文字列に値を追加します。 |
ComposableWhereContext |
append(char ch)
クライテリア文字列に値を追加します。 |
ComposableWhereContext |
append(double d)
クライテリア文字列に値を追加します。 |
ComposableWhereContext |
append(Enum<?> e)
クライテリア文字列に列挙を追加します。 |
ComposableWhereContext |
append(float f)
クライテリア文字列に値を追加します。 |
ComposableWhereContext |
append(int i)
クライテリア文字列に値を追加します。 |
ComposableWhereContext |
append(long l)
クライテリア文字列に値を追加します。 |
ComposableWhereContext |
append(Object o)
クライテリア文字列にオブジェクトを追加します。 |
ComposableWhereContext |
append(short s)
クライテリア文字列に値を追加します。 |
ComposableWhereContext |
append(String s)
クライテリア文字列に文字列を追加します。 |
ComposableWhereContext |
append(Where where)
条件を追加します。 |
ComposableWhereContext |
cutBack(int number)
クライテリア文字列の長さを切り詰めます。 |
String |
getCriteria()
クライテリアを返します。 |
int |
getCriteriaLength()
クライテリア文字列の現在の長さを返します。 |
Object[] |
getParams()
パラメータの配列を返します。 |
String[] |
getPropertyNames()
プロパティの名前の配列を返します。 |
| クラス java.lang.Object から継承されたメソッド |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| フィールドの詳細 |
|---|
protected StringBuilder criteriaSb
protected List<Object> paramList
protected List<String> propertyNameList
| コンストラクタの詳細 |
|---|
public ComposableWhereContext()
| メソッドの詳細 |
|---|
public String getCriteria()
Where の記述:
Where 内の getCriteriapublic Object[] getParams()
Where の記述:
Where 内の getParamspublic String[] getPropertyNames()
Where の記述:
Where 内の getPropertyNamespublic int getCriteriaLength()
public ComposableWhereContext append(Where where)
where - 条件
public ComposableWhereContext append(boolean b)
b - 値
public ComposableWhereContext append(byte b)
b - 値
public ComposableWhereContext append(short s)
s - 値
public ComposableWhereContext append(int i)
i - 値
public ComposableWhereContext append(long l)
l - 値
public ComposableWhereContext append(float f)
f - 値
public ComposableWhereContext append(double d)
d - 値
public ComposableWhereContext append(char ch)
ch - 値
public ComposableWhereContext append(String s)
s - 文字列
public ComposableWhereContext append(Enum<?> e)
e - 列挙
public ComposableWhereContext append(Object o)
o - オブジェクト
public ComposableWhereContext cutBack(int number)
number - 切り詰める長さ
public void addParam(Object param)
param - パラメータ
public int addParam(ConditionType conditionType,
Object param)
conditionType - 条件タイプparam - パラメータ
public void addPropertyName(CharSequence propertyName)
propertyName - プロパティ名
|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||