public class DBConfigEditorTag extends CommonTagSupport
●形式:<dbConfigEditor command="..." type="..." xmlFile="..." /> ●body:なし ●Tag定義: <og:dbConfigEditor command 【TAG】DBConfig.xmlに対する操作のコマンドを指定します(初期値:GET) type 【TAG】DBConfig.xmlに対する操作のタイプを指定します(初期値: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}" />
bodyContent
id, pageContext
EVAL_BODY_BUFFERED, EVAL_BODY_TAG
EVAL_BODY_AGAIN
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
コンストラクタと説明 |
---|
DBConfigEditorTag() |
修飾子とタイプ | メソッドと説明 |
---|---|
int |
doEndTag()
Taglibの終了タグが見つかったときに処理する doEndTag() を オーバーライドします。
|
int |
doStartTag()
Taglibの開始タグが見つかったときに処理する doStartTag() を オーバーライドします。
|
protected void |
release2()
タグリブオブジェクトをリリースします。
|
void |
setCommand(String cmd)
【TAG】DBConfig.xmlに対する操作のコマンドを指定します(初期値:GET)。
|
void |
setType(String tp)
【TAG】DBConfig.xmlに対する操作のタイプを指定します(初期値:DBID)。
|
void |
setXmlFile(String file)
【TAG】編集を行うDBConfig.xmlのファイルのパスを指定します(初期値:自身のDBConfig.xml)。
|
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, getLabel, getLabelInterface, getLanguage, getLongLabel, getMsglbl, getObject, getParameterNames, getParameterRows, getRequest, getRequestAttribute, getRequestCacheData, getRequestParameter, getRequestParameterValues, getRequestValue, getRequestValue, getRequestValues, getReservedParameter, getReservedValue, getResource, getSanitizedBodyString, getScope, getSessionAttribute, getTagName, getUser, getUserInfo, isAjaxSubmitRequest, isDebug, isNoTransitionRequest, isNull, jspPrint, removeContextAttribute, removeObject, removeRequestAttribute, removeSessionAttribute, set, setAjaxSubmitRequest, setCaseKey, 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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getParent, setPageContext, setParent
public int doStartTag()
doStartTag
インタフェース内 Tag
doStartTag
クラス内 CommonTagSupport
public int doEndTag()
doEndTag
インタフェース内 Tag
doEndTag
クラス内 CommonTagSupport
protected void release2()
release2
クラス内 CommonTagSupport
public void setCommand(String cmd)
cmd
- コマンドGET -> typeに応じた情報をDBConfig.xmlから読み出し、DBTableModelに登録します。 SET -> typeに応じた情報をDBTableModelから読み出し、DBConfig.xmlに登録します。 なお、保存(SET)を実行すると、元のDBConfig.xmlファイルと同じ場所に、タイプスタンプ付きの バックアップファイルが自動的に作成されます。 また、xmlFile(DBConfig.xml)を指定しない状態で、保存(command="SET")を行うと、 内部にキャッシュしている接続情報は、一旦全てクリアされます。
public void setType(String tp)
tp
- タイプDBID -> DBIDの各種情報を読み取り/書き込みします。 CLASS -> ロードするDBドライバーの一覧を読み取り/書き込みします。
public void setXmlFile(String file)
file
- DBConfig.xmlのファイルパス何も指定されない場合は、自身のコンテキストのDBConfig.xmlに対する編集となります。
public String toString()
toString
クラス内 CommonTagSupport
Webアプリケーションフレームワーク openGionCopyright (c) 2009 The openGion Project.