|
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
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
- 実行設定オブジェクト。
|
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |