openGionopenGion
5.8.5.0

org.opengion.plugin.develop
クラス JspCreate_QUERY

java.lang.Object
  上位を拡張 org.opengion.hayabusa.develop.AbstractJspCreate
      上位を拡張 org.opengion.plugin.develop.JspCreate_QUERY
すべての実装されたインタフェース:
JspParserFilter

public class JspCreate_QUERY
extends AbstractJspCreate

result.jspの<og:query >タグを作成します。 ●使用例 <og:query command = "{@command}" debug = "{@debug} dbid = "{@FROM_DBID}" maxRowCount = "{@maxRowCount}" > select A1.xx , A1.xx ,・・・ from xxx A1 inner join xxx B1 where ・・・ group by ・・・ having ・・・ ORDER BY ・・・ </og:query>

変更履歴:
5.6.1.2 (2013/02/22) 文字列連結から、XML処理するように変更します。
作成者
Takeshi.Takada

フィールドの概要
 
クラス org.opengion.hayabusa.develop.AbstractJspCreate から継承されたフィールド
CR, KEY, NAME, T1, T2, T3
 
コンストラクタの概要
JspCreate_QUERY()
           
 
メソッドの概要
protected  OGElement andWhereConst(String left, String right, boolean is_number)
          result.jspのog:query og:where og:and タグを生成します。
protected  OGElement andWhereQuery(String left, String operator, String right, boolean is_number)
          result.jspの og:query og:where og:and タグを生成します。
protected  OGElement apperEle(String start_key, String value, List<String> default_value)
          result.jspの og:query og:appear タグを生成します。
protected  String execute(OGElement ele, String nameSpace)
          JSPに出力するタグの内容を作成します。
protected  void init(Map<String,List<JspConvertEntity>> master)
          初期化メソッド 内部で使用する JspConvertEntity の リスト のマップを受け取り、初期化を行います。
protected  String queryText(List<String> selects, List<String> clmCmnt, List<String> tables, List<JspConvertEntity> joins, JspConvertEntity join_on)
          result.jspのog:queryタグのテキスト部を生成します。
 
クラス org.opengion.hayabusa.develop.AbstractJspCreate から継承されたメソッド
chainChar, filter, isExecute, isNotEmpty
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

JspCreate_QUERY

public JspCreate_QUERY()
メソッドの詳細

init

protected void init(Map<String,List<JspConvertEntity>> master)
初期化メソッド 内部で使用する JspConvertEntity の リスト のマップを受け取り、初期化を行います。

定義:
クラス AbstractJspCreate 内の init
パラメータ:
master - JspConvertEntityのリストのマップ
変更履歴:
5.2.1.0 (2010/10/01) 名前空間を、og 決め打ちから、名前空間指定無しに変更します。

execute

protected String execute(OGElement ele,
                         String nameSpace)
                  throws Throwable
JSPに出力するタグの内容を作成します。 引数より作成前のタグの属性内容を確認するする事が出来ます。

定義:
クラス AbstractJspCreate 内の execute
パラメータ:
ele - OGElementエレメントオブジェクト
nameSpace - このドキュメントのnameSpace( og とか mis とか )
戻り値:
変換された文字列
例外:
Throwable - 変換時のエラー
変更履歴:
5.2.1.0 (2010/10/01) メソッドの引数を、OGAttributes から OGElement に変更します。
5.2.1.0 (2010/10/01) 名前空間を、og 決め打ちから、引数を使用するように変更します。
5.6.4.4 (2013/05/31) select カラムに、コメントを付与します。

queryText

protected String queryText(List<String> selects,
                           List<String> clmCmnt,
                           List<String> tables,
                           List<JspConvertEntity> joins,
                           JspConvertEntity join_on)
result.jspのog:queryタグのテキスト部を生成します。 補足1 引数のjoin_onがnullでないときは、優先的にjoin_onの内容でJOIN句を生成します。

パラメータ:
selects - 検索SQLのリスト
clmCmnt - カラムコメントのリスト
tables - テーブル名のリスト
joins - JspConvertEntityのリスト
join_on - JspConvertEntityオブジェクト
戻り値:
og:queryタグのテキスト部
変更履歴:
5.6.4.4 (2013/05/31) select カラムに、コメントを付与します。

apperEle

protected OGElement apperEle(String start_key,
                             String value,
                             List<String> default_value)
result.jspの og:query og:appear タグを生成します。

パラメータ:
start_key - 開始キー
value - 値
default_value - 初期値リスト
戻り値:
og:query og:appear タグ
変更履歴:
5.2.1.0 (2010/10/01) 名前空間を、og 決め打ちから、引数を使用するように変更します。

andWhereQuery

protected OGElement andWhereQuery(String left,
                                  String operator,
                                  String right,
                                  boolean is_number)
result.jspの og:query og:where og:and タグを生成します。 処理グループ:QUERY

パラメータ:
left - 左側式
operator - オペレーター
right - 右側式
is_number - 数字かどうか[true/false]
戻り値:
og:and タグ

andWhereConst

protected OGElement andWhereConst(String left,
                                  String right,
                                  boolean is_number)
result.jspのog:query og:where og:and タグを生成します。 処理グループ:CONST

パラメータ:
left - 左側式
right - 右側式
is_number - 数字かどうか[true/false]
戻り値:
og:and タグ

openGion 5.8.5.0

Webアプリケーションフレームワーク openGion
SourceForge.JPCopyright (c) 2009 The openGion Project.