public class DBConfigEditorTag extends CommonTagSupport
●形式:<dbConfigEditor command="..." type="..." xmlFile="..." /> ●body:なし ●Tag定義: <og:dbConfigEditor command 【TAG】DBConfig.xmlに対する操作のコマンド(GET/SET/INFO)を指定します(初期値:GET) type 【TAG】DBConfig.xmlに対する操作のタイプ(DBID/CLASS)を指定します(初期値:DBID) xmlFile 【TAG】編集を行うDBConfig.xmlのファイルのパスを指定します(初期値:自身のDBConfig.xml) debug 【TAG】デバッグ情報を出力するかどうか[true/false]を指定します(初期値:false) /> ●使用例 ・取得 <dbConfigEditor command="GET" type="{@TYPE}" xmlFile="{@DBCXML}" /> ・保存 <dbConfigEditor command="SET" type="{@MEM.TYPE}" xmlFile="{@MEM.DBCXML}" /> ・情報 <value command="SET" key="DBID_INFO" > <dbConfigEditor command="INFO" /> </value> <column name="DBID_INFO" codeKeyVal="{@DBID_INFO}" />
コンストラクタと説明 |
---|
DBConfigEditorTag() |
修飾子とタイプ | メソッドと説明 |
---|---|
int |
doEndTag()
Taglibの終了タグが見つかったときに処理する doEndTag() を オーバーライドします。
|
int |
doStartTag()
Taglibの開始タグが見つかったときに処理する doStartTag() を オーバーライドします。
|
protected void |
release2()
タグリブオブジェクトをリリースします。
|
void |
setCommand(java.lang.String cmd)
【TAG】DBConfig.xmlに対する操作のコマンド(GET/SET/INFO)を指定します(初期値:GET)。
|
void |
setType(java.lang.String tp)
【TAG】DBConfig.xmlに対する操作のタイプ(DBID/CLASS)を指定します(初期値:DBID)。
|
void |
setXmlFile(java.lang.String file)
【TAG】編集を行うDBConfig.xmlのファイルのパスを指定します(初期値:自身のDBConfig.xml)。
|
java.lang.String |
toString()
このオブジェクトの文字列表現を返します。
|
add, add, addEventColumn, addEventColumn, check, check, commitTableObject, debugPrint, doAfterBody, doCatch, doFinally, get, getApplicationInfo, getAttributes, getBodyRawString, getBodyString, getContextAttribute, getContextPath, getCookie, getCSVParameter, getDataCondition, getDateFormat, getDBColumn, getDBFunctionName, getDocumentLink, getGUIInfo, getGUIInfoAttri, getHostName, getLabel, getLabelInterface, getLanguage, getLASTAttri, getLongLabel, getMsglbl, getNVLAttri, getObject, getParameterNames, getParameterRows, getRequest, getRequestAttribute, getRequestCacheData, getRequestMethod, getRequestParameter, getRequestParameterValues, getRequestValue, getRequestValue, getRequestValues, getReservedParameter, getReservedValue, getResource, getSanitizedBodyString, getScope, getSessionAttribute, getTagName, getUser, getUserEditInfo, getUserInfo, isAjaxSubmitRequest, isDebug, isNoTransitionRequest, isNull, jspPrint, removeContextAttribute, removeObject, removeRequestAttribute, removeSessionAttribute, set, setAjaxSubmitRequest, 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
public DBConfigEditorTag()
public int doStartTag()
doStartTag
クラス内 CommonTagSupport
public int doEndTag()
doEndTag
クラス内 CommonTagSupport
5.6.7.0 (2013/07/27) command="INFO" 対応 |
protected void release2()
release2
クラス内 CommonTagSupport
public void setCommand(java.lang.String cmd)
cmd
- コマンドGET ⇒ typeに応じた情報をDBConfig.xmlから読み出し、DBTableModelに登録します。 SET ⇒ typeに応じた情報をDBTableModelから読み出し、DBConfig.xmlに登録します。 INFO ⇒ DBConfig.xmlに登録されている DBID のキーとタイトルを連結したコードリソース情報を画面出力します。 なお、保存(SET)を実行すると、元のDBConfig.xmlファイルと同じ場所に、タイプスタンプ付きの バックアップファイルが自動的に作成されます。 また、xmlFile(DBConfig.xml)を指定しない状態で、保存(command="SET")を行うと、 内部にキャッシュしている接続情報は、一旦全てクリアされます。
5.6.7.0 (2013/07/27) command として使用できる文字列をチェックします。 |
public void setType(java.lang.String tp)
tp
- タイプDBID ⇒ DBIDの各種情報を読み取り/書き込みします。 CLASS ⇒ ロードするDBドライバーの一覧を読み取り/書き込みします。
5.6.7.0 (2013/07/27) type として使用できる文字列をチェックします。 |
public void setXmlFile(java.lang.String file)
file
- DBConfig.xmlのファイルパス何も指定されない場合は、自身のコンテキストのDBConfig.xmlに対する編集となります。
public java.lang.String toString()
toString
クラス内 CommonTagSupport
Webアプリケーションフレームワーク openGionCopyright (c) 2009 The openGion Project.