|
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | ||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | ||||||||
java.lang.Objectts.query.QueryExecutionConfig
public class QueryExecutionConfig
クエリ実行設定を保持するクラス。
一回の照会又は更新処理を表すIQueryExecutionオブジェクトを作成する
ために必要な設定情報を格納する。
引数なしのコンストラクタを使った場合は、空の設定オブジェクトが作成され、
getResource()メソッドにより得られるリソース・オブジェクトに設定情報
を登録して使用する。
引数に実行IDをとるコンストラクタを使った場合は、自動的にQueryEnvironmentConfigオブジェクトから取得したディレクトリから実行IDを
ファイル・タイトルに持つXMLファイル(.xml)又はJavaプロパティ・ファイル
(.properties)をロードするので、その設定情報を使用する。
設定情報は各実行クラスによって異なるが、それに依らない共通の設定情報として、
IQueryの派生クラス名(必須)。
IQueryExecutionオブジェクトが
使用する接続先を表す接続先ID(必須)。
| 入れ子のクラスの概要 | |
|---|---|
static class |
QueryExecutionConfig.Error
このクラスで発生しうるエラーを定義する列挙型。 |
| コンストラクタの概要 | |
|---|---|
QueryExecutionConfig()
デフォルト・コンストラクタ。 |
|
QueryExecutionConfig(java.lang.String execId)
実行IDを引数にとるコンストラクタ。 |
|
| メソッドの概要 | ||
|---|---|---|
|
create()
IQueryExecutionオブジェクトを作成する。 |
|
|
create(IQueryConnection conn)
IQueryExecutionオブジェクトを作成する。 |
|
|
create(IQueryTransaction tran)
IQueryExecutionオブジェクトを作成する。 |
|
protected static int |
executeCommand(java.lang.String[] args,
QueryExecutionConfig config)
実行設定ファイルのサンプルを出力するコマンドを実行する。 |
|
protected java.lang.String |
getConnectionId()
IQueryExecutionオブジェクトが使用するコネクションの接続先IDを取得
する。 |
|
protected java.lang.String |
getExecutionClass()
このオブジェクトから作成される IQueryExecutionオブジェクトのクラス
名を取得する。 |
|
java.lang.String |
getExecutionId()
実行IDを取得する。 |
|
protected int |
getLimitFetchCount()
このオブジェクトから作成される IQueryExecutionオブジェクトの取得
データ件数の制限値を取得する。 |
|
protected long |
getLimitSpentTime()
このオブジェクトから作成される IQueryExecutionオブジェクトの
制限時間を取得する。 |
|
protected ts.util.resource.Resource |
getResource()
実行設定を保持するリソース・オブジェクトを取得する。 |
|
protected ts.util.resource.Resource |
loadResource()
実行設定ファイルをロードしたリソース・オブジェクトを作成する。 |
|
protected ts.util.AbstractTypedGetter<java.lang.String,java.lang.String> |
newTypedGetter()
設定情報を型変換して取得するための TypedGetterオブジェクトを作成
する。 |
|
protected void |
outputSampleProp(java.io.PrintWriter pw)
実行設定ファイルのJavaプロパティ形式のサンプルを PrintWriter
オブジェクトに出力する。 |
|
protected void |
outputSamplePropEntries(java.io.PrintWriter pw)
実行設定ファイルのプロパティ・エントリのサンプルを PrintWriter
オブジェクトに出力する。 |
|
protected void |
outputSampleXml(java.io.PrintWriter pw,
java.lang.String encoding)
実行設定ファイルのXML形式のサンプルを PrintWriterオブジェクトに
出力する。 |
|
protected void |
outputSampleXmlEntries(java.io.PrintWriter pw)
実行設定ファイルのXMLエントリのサンプルを PrintWriterオブジェクト
に出力する。 |
|
protected ts.util.AbstractTypedGetter<java.lang.String,java.lang.String> |
typedGetter()
設定情報を型変換して取得するための TypedGetterオブジェクトを取得
する。 |
|
| クラス java.lang.Object から継承されたメソッド |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| コンストラクタの詳細 |
|---|
public QueryExecutionConfig()
public QueryExecutionConfig(java.lang.String execId)
execId - 実行ID。
java.lang.AssertionError - 引数がヌルの場合(デバッグ・モードのみ)。| メソッドの詳細 |
|---|
public java.lang.String getExecutionId()
protected ts.util.resource.Resource loadResource()
throws ts.util.ReasonedRuntimeException
ts.util.ReasonedRuntimeException - 実行設定ファイルのロードに失敗した場合。protected ts.util.AbstractTypedGetter<java.lang.String,java.lang.String> newTypedGetter()
TypedGetterオブジェクトを作成
する。
TypedGetterオブジェクト。protected ts.util.resource.Resource getResource()
protected ts.util.AbstractTypedGetter<java.lang.String,java.lang.String> typedGetter()
TypedGetterオブジェクトを取得
する。
TypedGetterオブジェクト。
public <T extends IQueryExecution> T create()
throws ts.util.ReasonedException,
ts.util.ReasonedRuntimeException
IQueryExecutionオブジェクトを作成する。
IQueryExecutionの派生
クラスのインスタンスを作成する。
派生クラスの名前は、実行設定 ts-query.execution.classに指定された
クラス名が使用される。
IQueryExecutionオブジェクト。
ts.util.ReasonedException - IQueryExecutionオブジェクト又はそれが
使用するIQueryConnectionオブジェクトの作成に失敗した場合。
ts.util.ReasonedRuntimeException - 実行設定又は接続設定が不正だった場合。
public <T extends IQueryExecution> T create(IQueryTransaction tran)
throws ts.util.ReasonedException,
ts.util.ReasonedRuntimeException
IQueryExecutionオブジェクトを作成する。
IQueryExecutionの派生クラスのインスタンスを作成する。
派生クラスの名前は、実行設定 ts-query.execution.classに指定された
クラス名が使用される。
IQueryExecutionオブジェクトが使用するコネクション・オブジェクトは
引数のトランザクション・オブジェクトから取得する。
tran - トランザクション・オブジェクト。
IQueryExecutionオブジェクト。
ts.util.ReasonedException - IQueryExecutionオブジェクト又はそれが
使用するIQueryConnectionオブジェクトの作成に失敗した場合。
ts.util.ReasonedRuntimeException - 実行設定又は接続設定が不正だった場合。
public <T extends IQueryExecution> T create(IQueryConnection conn)
throws ts.util.ReasonedException,
ts.util.ReasonedRuntimeException
IQueryExecutionオブジェクトを作成する。
IQueryExecutionの派生クラスのインスタンスを作成する。
派生クラスの名前は、実行設定 ts-query.execution.classに指定された
クラス名が使用される。
IQueryHistoryオブジェクト
トランザクション開始からの制限時間を受け取って使用する。
conn - コネクション・オブジェクト。
IQueryExecutionオブジェクト。
ts.util.ReasonedException - IQueryExecutionオブジェクトの作成に失敗
した場合。
ts.util.ReasonedRuntimeException - 実行設定が不正だった場合。protected java.lang.String getExecutionClass()
IQueryExecutionオブジェクトのクラス
名を取得する。
IQueryExecutionクラスの名前。protected java.lang.String getConnectionId()
IQueryExecutionオブジェクトが使用するコネクションの接続先IDを取得
する。
IQueryExecutionオブジェクトが使用するコネクションの
接続先ID。protected int getLimitFetchCount()
IQueryExecutionオブジェクトの取得
データ件数の制限値を取得する。
IQueryExecutionオブジェクトの結果データ件数の制限値。protected long getLimitSpentTime()
IQueryExecutionオブジェクトの
制限時間を取得する。
IQueryExecutionオブジェクトの制限時間 [msec]。
protected void outputSampleXml(java.io.PrintWriter pw,
java.lang.String encoding)
throws java.io.IOException
PrintWriterオブジェクトに
出力する。
pw - PrintWriterオブジェクト。
java.io.IOException - 出力に失敗した場合。
protected void outputSampleXmlEntries(java.io.PrintWriter pw)
throws java.io.IOException
PrintWriterオブジェクト
に出力する。
pw - PrintWriterオブジェクト。
java.io.IOException - 出力に失敗した場合。
protected void outputSampleProp(java.io.PrintWriter pw)
throws java.io.IOException
PrintWriter
オブジェクトに出力する。
pw - PrintWriterオブジェクト。
java.io.IOException - 出力に失敗した場合。
protected void outputSamplePropEntries(java.io.PrintWriter pw)
throws java.io.IOException
PrintWriter
オブジェクトに出力する。
pw - PrintWriterオブジェクト。
java.io.IOException - 出力に失敗した場合。
protected static int executeCommand(java.lang.String[] args,
QueryExecutionConfig config)
args - コマンドライン引数の配列。config - 実行設定オブジェクト。
|
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | ||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | ||||||||