public class EntryQueryTag extends QueryTag
検索結果の DBTableModel を使用せず、直接エントリーデータを登録するタグです。 このオブジェクトに、 dbid を与えることにより、dbid に対応した Queryオブジェクト(のサブクラスのオブジェクト)が作成されます。 ※ このタグは、Transaction タグの対象です。
●形式: <og:entryQuery queryType = "JDBCKeyEntry" command = "{@command}" > { call DYNAMIC_PKG.DYNAMIC_TEST( ?,?,?,? ) } </og:query> queryType : Queryオブジェクトを作成する時のキー(オプション) QueryFactory参照 command : 処理コマンド ( NEWのみ )(オプション) skipRowCount : データの読み始めの初期値を指定(オプション) maxRowCount : データの最大読み込み件数を指定(オプション) ●body:あり(EVAL_BODY_BUFFERED:BODYを評価し、{@XXXX} を解析します) ●Tag定義: <og:entryQuery queryType ○【TAG】Query を発行する為のクラスIDを指定します(<a href="/gf/jsp/DOC03/index.jsp?command=NEW&GAMENID=DOC03&VERNO=6.8.4.0&VALUENAME=queryType" target="CONTENTS">初期値:JDBCKeyEntry</a>)(必須)。 command 【TAG】コマンド (NEW,RENEW)をセットします(PlsqlUpdateTag,UpdateTag の場合は、ENTRY) scope 【TAG】キャッシュする場合のスコープ[request/page/session/application]を指定します(初期値:session) maxRowCount 【TAG】(通常は使いません)データの最大読み込み件数を指定します (初期値:DB_MAX_ROW_COUNT[=1000]) skipRowCount 【TAG】(通常は使いません)データの読み始めの初期値を指定します displayMsg 【TAG】検索結果を画面上に表示するメッセージリソースIDを指定します (初期値:VIEW_DISPLAY_MSG[=]) notfoundMsg 【TAG】検索結果がゼロ件の場合に表示するメッセージリソースIDを指定します(初期値:MSG0077[対象データはありませんでした]) names 【TAG】PL/SQLを利用する場合の引数にセットすべき データの名称をCSV形式で複数指定します tableId 【TAG】(通常は使いません)結果のDBTableModelを、sessionに登録するときのキーを指定します dbid 【TAG】(通常は使いません)Queryオブジェクトを作成する時のDB接続IDを指定します caseKey 【TAG】このタグ自体を利用するかどうかの条件キーを指定します(初期値:null) caseVal 【TAG】このタグ自体を利用するかどうかの条件値を指定します(初期値:null) caseNN 【TAG】指定の値が、null/ゼロ文字列 でない場合(Not Null=NN)は、このタグは使用されます(初期値:判定しない) caseNull 【TAG】指定の値が、null/ゼロ文字列 の場合は、このタグは使用されます(初期値:判定しない) caseIf 【TAG】指定の値が、true/TRUE文字列の場合は、このタグは使用されます(初期値:判定しない) debug 【TAG】デバッグ情報を出力するかどうか[true/false]を指定します(初期値:false) > ... Body ... </og:entryQuery> ●使用例 例1) <table><tr><og:input name="PN" value="{@PN}" /></tr> <tr><og:input name="CD" value="{@CD}" /></tr> </table> 例2) <table><tr><og:input name="PN" value="{@PN}" >部品入力フィールド</og:input></tr> <tr><og:input name="CD" value="{@CD}" >コードフィールド</og:input></tr> </table> BODY 部分は、無視されます。コメント等に使用できます。 HTMLファイルには、コメント部分は出力されません。
CMD_NEW, CMD_RENEW, command, dispError, displayMsg, dyStart, ERR_MSG_ID, errCode, errMessage, executeCount, maxRowCount, names, outMessage, quotCheck, skipRowCount, sql, stopError, table, tableId, useTimeView, xssCheck
BR, BUFFER_MIDDLE, CR
コンストラクタと説明 |
---|
EntryQueryTag()
デフォルトコンストラクター
|
修飾子とタイプ | メソッドと説明 |
---|---|
protected void |
execute(Query query)
Query を実行します。
|
protected java.lang.String[] |
getRequestKeys()
リクエスト情報のキー配列データを取得します。
|
void |
setQueryType(java.lang.String id)
【TAG】Query を発行する為のクラスIDを指定します(<a href="/gf/jsp/DOC03/index.jsp?command=NEW&GAMENID=DOC03&VERNO=6.8.4.0&VALUENAME=queryType" target="CONTENTS">初期値:JDBCKeyEntry</a>)。
|
doAfterBody, doEndTag, doStartTag, getRequest, release2, setCheckNames, setCommand, setDbid, setDispError, setDisplayMsg, setMainTrans, setMaxRowCount, setModifyType, setNames, setNotfoundMsg, setOutMessage, setOverflowMsg, setQuotCheck, setSkipRowCount, setStopError, setStopZero, setTableId, setTrace, setUseBeforeHtmlTag, setUseTimeView, setXssCheck, toString
add, add, addEventColumn, addEventColumn, check, commitTableObject, debugPrint, doCatch, doFinally, get, getApplicationInfo, getAttributes, getBodyRawString, getBodyString, getContextAttribute, getContextPath, getCookie, getCSVParameter, getCSVParameter, getDataCondition, getDateFormat, getDBColumn, getDBFunctionName, getDocumentLink, getGUIInfo, getGUIInfoAttri, getHostName, getLabel, getLabelInterface, getLanguage, getLASTAttri, getLongLabel, getMsg, getMsglbl, getNVLAttri, getObject, getParameterNames, getParameterRows, getRequest, getRequestAttribute, getRequestCacheData, getRequestMethod, getRequestParameter, getRequestParameterValues, getRequestValue, getRequestValue, getRequestValues, getReservedParameter, getReservedValue, getResource, getSanitizedBodyString, getScope, getSessionAttribute, getSumRequestValue, getTagName, getTransaction, getUser, getUserEditInfo, getUserInfo, isAjaxSubmitRequest, isDebug, isNoTransitionRequest, isNull, jspPrint, makeUrl, removeContextAttribute, removeObject, removeRequestAttribute, removeSessionAttribute, set, setAjaxSubmitRequest, setCaseIf, setCaseKey, setCaseNN, setCaseNull, setCaseVal, setContextAttribute, setCookie, setDebug, setLanguage, setLbl, setNoTransitionRequest, setObject, setObject, setParameterNames, setParameterRows, setRequestAttribute, setRequestCacheData, setScope, setSessionAttribute, setUserInfo, startQueryTransaction, sys, sysBool, sysInt, useMainTrans, useQuotCheck, useTag, useXssCheck
doInitBody, getBodyContent, getPreviousOut, release, setBodyContent
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue
public EntryQueryTag()
6.4.2.0 (2016/01/29) PMD refactoring. Each class should declare at least one constructor. |
protected void execute(Query query)
protected java.lang.String[] getRequestKeys()
3.1.0.0 (2003/03/20) Vector を使用している箇所で、非同期でも構わない箇所を、ArrayList に置換え。 |
public void setQueryType(java.lang.String id)
setQueryType
クラス内 QueryTag
id
- Queryを発行する為の実クラスIDQueryのサブクラス
,
Query.execute( String[] , String[] )
引数指定のINSERT/UPDATE文を実行する場合の、queryType 属性を使用します。 このタグでは、execute( String[] , String[] )を実行します。 代表的なクラスとして、"JDBCKeyEntry" が標準で用意されています。 タグにより使用できる/出来ないがありますが、これは、org.opengion.hayabusa.db 以下の Query_**** クラスの **** を与えます。 これらは、Query インターフェースを継承したサブクラスです。 <a href="/gf/jsp/DOC03/index.jsp?command=NEW&GAMENID=DOC03&VERNO=6.8.4.0&VALUENAME=queryType" target="CONTENTS">Query_**** クラス</a>
3.5.4.2 (2003/12/15) JavaDocコメント用にメソッド追加。 |
Webアプリケーションフレームワーク openGionCopyright (c) 2009 The openGion Project.