|
|
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectorg.opengion.hayabusa.db.AbstractQuery
org.opengion.plugin.query.Query_JDBC
public class Query_JDBC
指定のSQL文を実行して、検索する Query クラスです。 java.sql.Statement を用いて、データベース検索処理を行います。 引数は無しです。(与えられたSQL文を実行します。) 内部変数の受け渡しのデフォルト実装は、AbstractQuery クラスを継承している ため,ここでは、execute() メソッドを実装しています。 このクラスでは、ステートメント文を execute() する事により,データベースを 検索した結果を DBTableModel に割り当てます。
<h:query command="{@command}" debug="false">
<!-- 先頭のカラム名が、"WRITABLE" の場合、'true' or '1' で、書き込み許可が与えら,'2' でチェック済みになります。-->
<jsp:text>
select KBSAKU AS WRITABLE,
CLM,NAME_JA,LABEL_NAME,KBSAKU,SYSTEM_ID,LANG,FGJ
from GE41
</jsp:text>
<h:where>
<h:and value = "FGJ in ('0','1')" />
<h:and value = "SYSTEM_ID like '{@SYSTEM_ID}%'" />
<h:and value = "LANG like '{@LANG}%'" />
<h:and value = "CLM like '{@CLM}%'" />
<h:and value = "KBSAKU = '{@KBSAKU}'" />
</h:where>
<h:appear startKey = "order by" value = "{@ORDER_BY}"
defaultVal = "SYSTEM_ID,CLM,LANG" />
</h:query>| フィールドの概要 |
|---|
| クラス org.opengion.hayabusa.db.AbstractQuery から継承されたフィールド |
|---|
ARG_ARRAY, DB_MAX_QUERY_TIMEOUT, ERR_MSG, ERR_MSG_ARRAY, SYSARG_ARRAY |
| コンストラクタの概要 | |
|---|---|
Query_JDBC()
|
|
| メソッドの概要 | |
|---|---|
void |
execute()
クエリーを実行します。 |
| クラス org.opengion.hayabusa.db.AbstractQuery から継承されたメソッド |
|---|
close, commit, createTableModel, execute, execute, execute, execute, getConnection, getDBTableModel, getEditConfig, getErrorCode, getErrorMessage, getExecuteCount, getMaxRowCount, getSkipRowCount, getStatement, init, isUpdate, realClose, rollback, setDBTableModel, setEditConfig, setErrorCode, setErrorMessage, setExecuteCount, setMaxRowCount, setResourceManager, setSkipRowCount, setStatement, setTransaction, setUpdateFlag, toString, useParameterMetaData |
| クラス java.lang.Object から継承されたメソッド |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| コンストラクタの詳細 |
|---|
public Query_JDBC()
| メソッドの詳細 |
|---|
public void execute()
Query 内の executeAbstractQuery 内の execute| 3.8.0.8 (2005/10/03) エラーメッセージの出力順をメッセージ+Queryに変更します。 |
|
openGion 5.3.9.0 | ||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | ||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | ||||||||