|
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectts.query.QueryResult
public class QueryResult
クエリの実行結果を格納するクラス。
クエリの実行結果として、実行成否、処理件数、処理時間、結果テーブル、クエリの
実行に失敗した時の例愛オブジェクトを保持する。
また、実行されたクエリのコンテキスト情報を保持する。
コンストラクタの概要 | |
---|---|
QueryResult(QueryContext context)
クエリのコンテキスト情報をにとるコンストラクタ。 |
メソッドの概要 | |
---|---|
QueryContext |
getContext()
クエリのコンテキスト情報を取得する。 |
java.lang.Exception |
getException()
クエリの実行が失敗した時の例外オブジェクトを取得する。 |
java.lang.Enum |
getExceptionReason()
クエリの実行が失敗した時の例外の理由を取得する。 |
java.lang.String |
getQueryId()
クエリIDを取得する。 |
int |
getResultCount()
クエリの処理件数を取得する。 |
ts.util.table.Table<java.lang.String,java.lang.Object> |
getResultTable()
結果テーブルを取得する。 |
long |
getSpentTimeMillis()
クエリの処理時間をミリ秒単位で取得する。 |
boolean |
isSuccess()
クエリの実行の成否を取得する。 |
protected void |
setException(ts.util.ReasonedException exc)
クエリの実行が失敗した時の理由付き例外オブジェクトを設定する。 |
protected void |
setException(ts.util.ReasonedRuntimeException exc)
クエリの実行が失敗した時の理由付きランタイム例外オブジェクトを設定する。 |
protected void |
setResultCount(int resultCount)
クエリの処理件数を設定する。 |
protected void |
setResultTable(ts.util.table.Table<java.lang.String,java.lang.Object> table)
結果テーブルを設定する。 |
protected void |
setSpentTimeMillis(long spentTime)
クエリの処理時間をミリ秒単位で設定する。 |
protected void |
setSuccess(boolean b)
クエリの実行の成否を設定する。 |
クラス java.lang.Object から継承されたメソッド |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
コンストラクタの詳細 |
---|
public QueryResult(QueryContext context)
context
- コンテキスト情報オブジェクト。メソッドの詳細 |
---|
public java.lang.String getQueryId()
public QueryContext getContext()
protected void setSuccess(boolean b)
b
- クエリの実行が成功した場合はtrueを設定する。public boolean isSuccess()
protected void setResultCount(int resultCount)
resultCount
- クエリの処理件数。public int getResultCount()
protected void setSpentTimeMillis(long spentTime)
spentTime
- クエリの処理時間[msec]。public long getSpentTimeMillis()
protected void setException(ts.util.ReasonedException exc)
exc
- クエリの実行が失敗した時の理由付き例外オブジェクト。protected void setException(ts.util.ReasonedRuntimeException exc)
exc
- クエリの実行が失敗した時の理由付きランタイム例外オブジェクト。public java.lang.Exception getException()
public java.lang.Enum getExceptionReason()
public ts.util.table.Table<java.lang.String,java.lang.Object> getResultTable()
protected void setResultTable(ts.util.table.Table<java.lang.String,java.lang.Object> table)
table
- 結果テーブル。
|
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |