com.infoteria.asteria.flowlibrary2.component
クラス Utility

java.lang.Object
  |
  +--com.infoteria.asteria.flowlibrary2.component.Utility

public class Utility
extends Object

コンポーネント/マッパー関数から使用可能なUtilityメソッド


コンストラクタの概要
Utility()
           
 
メソッドの概要
static Component getPreviousComponent(Component c)
          getPreviousComponent(c, true, false)と同じです。
static Component getPreviousComponent(Component c, boolean bIgnore)
          getPreviousComponent(c, bIgnore, false)と同じです。
static Component getPreviousComponent(Component c, boolean bIgnore, boolean bFirst)
          引数のコンポーネントの直前のコンポーネントを取得します。
static boolean isAxisUseProxyInThread()
          コンポーネントが内部でjakarta-axisを使用する場合にASTERIAのプロキシー設定を使用するかどうかを取得します。
static boolean isPropertyMapped(Component c, String propertyName)
          指定のプロパティに対して値がマッパーによって差し込まれているかどうかを返します。
static String parseSQL(String sql, List sqlParams, VariableList flowParams)
          SQLBuilderの生成したSQL文をPreparedStatementで実行可能な形式に変換します。
static void setAxisUseProxyInThread(boolean b)
          コンポーネントが内部でjakarta-axisを使用する場合にASTERIAのプロキシー設定を使用するかどうかを設定します。
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

Utility

public Utility()
メソッドの詳細

getPreviousComponent

public static Component getPreviousComponent(Component c)
getPreviousComponent(c, true, false)と同じです。

getPreviousComponent

public static Component getPreviousComponent(Component c,
                                             boolean bIgnore)
getPreviousComponent(c, bIgnore, false)と同じです。

getPreviousComponent

public static Component getPreviousComponent(Component c,
                                             boolean bIgnore,
                                             boolean bFirst)
引数のコンポーネントの直前のコンポーネントを取得します。
bIgnoreがtrueの場合、直前のコンポーネントがIgnoreByGetPreviousインターフェースを 実装していた場合にはさらにその直前のコンポーネントにさかのぼります。
bFirstがtrueの場合、引数のコンポーネントが複数の入力を受け入れている場合には 最初の入力をさかのぼります。
bFirstがfalseで複数の入力を受け入れている場合や引数がStartComponentの場合はnullを返します。

parseSQL

public static String parseSQL(String sql,
                              List sqlParams,
                              VariableList flowParams)
                       throws FlowException
SQLBuilderの生成したSQL文をPreparedStatementで実行可能な形式に変換します。
パラメータ:
sql - SQLBuilderの生成したSQL。SQL文中には「?」または「$」で括られたパラメータが含まれていて構いません。
sqlParams - 引数として空のListを渡すとそこにPreparedStatementのパラメータが格納されます。
flowParams - SQLParameterを渡します。SQL文中の「$」で括られたパラメータはこの引数で置換されます。
戻り値:
PreparedStatementで実行可能なSQL。引数sqlParamsのサイズ文のパラメータが定義されています。

isPropertyMapped

public static boolean isPropertyMapped(Component c,
                                       String propertyName)
指定のプロパティに対して値がマッパーによって差し込まれているかどうかを返します。
CategoryPropertyの場合はpropertyNameに「プロパティ名/項目名」のようにプロパティ名と項目名を 「/」で区切って指定します。
パラメータ:
c - コンポーネント
propertyName - プロパティ名
戻り値:
そのプロパティに対して値が差し込まれている場合はtrue

isAxisUseProxyInThread

public static boolean isAxisUseProxyInThread()
コンポーネントが内部でjakarta-axisを使用する場合にASTERIAのプロキシー設定を使用するかどうかを取得します。
設定はカレントスレッドでのみ有効です。
戻り値:
axisでプロキシー設定を使用する場合はtrue

setAxisUseProxyInThread

public static void setAxisUseProxyInThread(boolean b)
コンポーネントが内部でjakarta-axisを使用する場合にASTERIAのプロキシー設定を使用するかどうかを設定します。
設定はカレントスレッドでのみ有効です。
パラメータ:
b - axisでプロキシー設定を使用する場合はtrue