|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectorg.seasar.kuina.dao.internal.binder.ObjectParameterBinder
public class ObjectParameterBinder
Object型のパラメータ値をQueryにバインドします.
このクラスはDateおよびCalendar以外の型のパラメータを
Queryにバインドするために使われます.
Query.setParameter(String, Object),
Query.setParameter(int, Object)| フィールドの概要 | |
|---|---|
protected String |
name
パラメータ名 (Named Parameterの場合) |
protected int |
position
パラメータの位置 (Positional Parameterの場合) |
protected Object |
value
パラメータの値 |
| コンストラクタの概要 | |
|---|---|
|
ObjectParameterBinder(int position)
Positional Parameterをバインドするインスタンスを構築します。 |
|
ObjectParameterBinder(int position,
Object value)
Positional Parameterのインスタンスを構築します。 |
|
ObjectParameterBinder(String name)
Named Parameterをバインドするインスタンスを構築します。 |
protected |
ObjectParameterBinder(String name,
int position,
Object value)
インスタンスを構築します。 |
|
ObjectParameterBinder(String name,
Object value)
Named Parameterのインスタンスを構築します。 |
| メソッドの概要 | |
|---|---|
void |
bind(Query query)
このインスタンスが保持しているパラメータ値を Queryにバインドします. |
void |
bind(Query query,
Object value)
valueをQueryにバインドします. |
| クラス java.lang.Object から継承されたメソッド |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| フィールドの詳細 |
|---|
protected final String name
protected final int position
protected final Object value
| コンストラクタの詳細 |
|---|
public ObjectParameterBinder(String name)
パラメータの値はbind(Query, Object)によって与えられます.
name - パラメータの名前public ObjectParameterBinder(int position)
パラメータの値はbind(Query, Object)によって与えられます.
position - パラメータの位置
public ObjectParameterBinder(String name,
Object value)
name - パラメータの名前value - パラメータの値
public ObjectParameterBinder(int position,
Object value)
position - パラメータの位置value - パラメータの値
protected ObjectParameterBinder(String name,
int position,
Object value)
name - パラメータの名前position - パラメータの位置value - パラメータの値| メソッドの詳細 |
|---|
public void bind(Query query)
ParameterBinder の記述: Queryにバインドします.
ParameterBinder 内の bindquery - Query
public void bind(Query query,
Object value)
ParameterBinder の記述: valueをQueryにバインドします.
ParameterBinder 内の bind
|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||