|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectorg.seasar.kuina.dao.internal.command.AbstractCommand
org.seasar.kuina.dao.internal.command.AbstractSqlCommand
public abstract class AbstractSqlCommand
SQLを実行する{Command}の共通機能を提供する抽象クラスです.
| フィールドの概要 | |
|---|---|
protected DialectManager |
dialectManager
Dialectマネージャ |
protected FlushModeType |
flushMode
フラッシュ・モード |
protected Node |
node
SQLをパースしたノードツリーのルート |
protected String[] |
parameterNames
パラメータ名の配列 |
protected Class<?>[] |
parameterTypes
パラメータ型の配列 |
protected String |
sql
SQL |
protected StatementFactory |
statementFactory
ステートメント・ファクトリ |
| コンストラクタの概要 | |
|---|---|
AbstractSqlCommand(Method method,
String sql,
String[] parameterNames,
Class<?>[] parameterTypes,
DialectManager dialectManager,
StatementFactory statementFactory)
インスタンスを構築します。 |
|
| メソッドの概要 | |
|---|---|
Object |
execute(EntityManager em,
Object[] parameters)
Daoのオペレーションを実行します. |
protected abstract Object |
execute(EntityManager em,
String query,
Object[] args,
Class<?>[] argTypes)
SQLを実行します. |
protected void |
flushIfNeed(EntityManager em)
必要に応じて永続コンテキストをフラッシュします. |
| クラス 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 String sql
protected final Node node
protected final String[] parameterNames
protected final Class<?>[] parameterTypes
protected final DialectManager dialectManager
protected final StatementFactory statementFactory
protected final FlushModeType flushMode
| コンストラクタの詳細 |
|---|
public AbstractSqlCommand(Method method,
String sql,
String[] parameterNames,
Class<?>[] parameterTypes,
DialectManager dialectManager,
StatementFactory statementFactory)
method - Daoメソッドsql - SQLparameterNames - パラメータ名の配列parameterTypes - パラメータ型の配列dialectManager - DialectマネージャstatementFactory - ステートメント・ファクトリ| メソッドの詳細 |
|---|
public Object execute(EntityManager em,
Object[] parameters)
Command の記述:
em - エンティティ・マネージャparameters - Daoのメソッド引数
protected void flushIfNeed(EntityManager em)
em - エンティティ・マネージャEntityManager.flush()
protected abstract Object execute(EntityManager em,
String query,
Object[] args,
Class<?>[] argTypes)
em - エンティティ・マネージャquery - 問い合わせ文字列args - Daoメソッドの引数の配列argTypes - パラメータ型の配列
|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||