|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectorg.seasar.kuina.dao.internal.command.AbstractCommand
org.seasar.kuina.dao.internal.command.AbstractSqlCommand
org.seasar.kuina.dao.internal.command.SqlCommand
public class SqlCommand
SQL (問い合わせ) を実行するCommandです.
| フィールドの概要 | |
|---|---|
protected Class<?> |
beanClass
結果セットを受け取るJavaBeansのクラス |
protected boolean |
resultList
問い合わせ結果を Listで返す場合にtrue |
protected ResultSetFactory |
resultSetFactory
結果セットファクトリ |
| クラス org.seasar.kuina.dao.internal.command.AbstractSqlCommand から継承されたフィールド |
|---|
dialectManager, flushMode, node, parameterNames, parameterTypes, sql, statementFactory |
| コンストラクタの概要 | |
|---|---|
SqlCommand(Method method,
boolean resultList,
Class<?> beanClass,
String sql,
String[] parameterNames,
Class<?>[] parameterTypes,
DialectManager dialectManager,
ResultSetFactory resultSetFactory,
StatementFactory statementFactory)
インスタンスを構築します。 |
|
| メソッドの概要 | |
|---|---|
protected ResultSetHandler |
createResultSetHandler()
ResultSetHandlerを作成して返します。 |
protected Object |
execute(EntityManager em,
String query,
Object[] args,
Class<?>[] argTypes)
SQLを実行します. |
| クラス org.seasar.kuina.dao.internal.command.AbstractSqlCommand から継承されたメソッド |
|---|
execute, flushIfNeed |
| クラス 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 final boolean resultList
Listで返す場合にtrue
protected final Class<?> beanClass
protected final ResultSetFactory resultSetFactory
| コンストラクタの詳細 |
|---|
public SqlCommand(Method method,
boolean resultList,
Class<?> beanClass,
String sql,
String[] parameterNames,
Class<?>[] parameterTypes,
DialectManager dialectManager,
ResultSetFactory resultSetFactory,
StatementFactory statementFactory)
method - DaoメソッドresultList - 問い合わせ結果をListで返す場合にtruebeanClass - 結果セットを受け取るJavaBeansのクラスsql - SQLparameterNames - パラメータ名の配列parameterTypes - パラメータ型の配列dialectManager - DialectマネージャresultSetFactory - リザルトセット・ファクトリstatementFactory - ステートメント・ファクトリ| メソッドの詳細 |
|---|
protected Object execute(EntityManager em,
String query,
Object[] args,
Class<?>[] argTypes)
AbstractSqlCommand の記述:
AbstractSqlCommand 内の executeem - エンティティ・マネージャquery - 問い合わせ文字列args - Daoメソッドの引数の配列argTypes - パラメータ型の配列
protected ResultSetHandler createResultSetHandler()
ResultSetHandlerを作成して返します。
ResultSetHandler
|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||