|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectorg.seasar.doma.jdbc.SelectOptions
public class SelectOptions
検索系SQLを実行する際のオプションです。
get()でインスタンスを取得し、メソッド呼び出しをチェインさせることができます。
SelectOptions options = SelectOptions.get().offset(10).limit(50).forUpdate();
| フィールドの概要 | |
|---|---|
protected String[] |
aliases
悲観的排他制御のロック対象のエイリアスの配列 |
protected boolean |
count
集計するかどうか |
protected long |
countSize
集計サイズ |
protected SelectForUpdateType |
forUpdateType
悲観的排他制御の種別 |
protected long |
limit
ページングのリミット |
protected long |
offset
ページングのオフセット |
protected int |
waitSeconds
悲観的排他制御の待機時間(秒) |
| コンストラクタの概要 | |
|---|---|
protected |
SelectOptions()
インスタンスを構築します。 |
| メソッドの概要 | |
|---|---|
SelectOptions |
count()
集計することを示します。 |
SelectOptions |
forUpdate()
悲観的排他制御用のSQLへ変換することを示します。 |
SelectOptions |
forUpdate(String... aliases)
ロック対象のテーブルやカラムのエイリアスを指定し、悲観的排他制御用のSQLへ変換することを示します。 |
SelectOptions |
forUpdateNowait()
ロックの取得を待機しない悲観的排他制御用のSQLへ変換することを示します。 |
SelectOptions |
forUpdateNowait(String... aliases)
ロック対象のテーブルやカラムのエイリアスを指定し、ロックの取得を待機しない悲観的排他制御用のSQLへ変換することを示します。 |
SelectOptions |
forUpdateWait(int waitSeconds)
ロックの取得まで指定された時間待機する悲観的排他制御用のSQLへ変換することを示します。 |
SelectOptions |
forUpdateWait(int waitSeconds,
String... aliases)
ロック対象のテーブルやカラムのエイリアスを指定し、ロックの取得まで指定された時間待機する悲観的排他制御用のSQLへ変換することを示します。 |
static SelectOptions |
get()
インスタンスを取得するためのファクトリメソッドです。 |
long |
getCount()
集計を返します。 |
SelectOptions |
limit(int limit)
リミットを指定してページング用のSQLへ変換することを示します。 |
SelectOptions |
offset(int offset)
オフセットを指定してページング用のSQLへ変換することを示します。 |
| クラス java.lang.Object から継承されたメソッド |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| フィールドの詳細 |
|---|
protected long offset
protected long limit
protected boolean count
protected long countSize
protected SelectForUpdateType forUpdateType
protected int waitSeconds
protected String[] aliases
| コンストラクタの詳細 |
|---|
protected SelectOptions()
| メソッドの詳細 |
|---|
public static SelectOptions get()
SelectOptionspublic SelectOptions forUpdate()
public SelectOptions forUpdate(String... aliases)
aliases - テーブルやカラムのエイリアス
public SelectOptions forUpdateNowait()
public SelectOptions forUpdateNowait(String... aliases)
aliases - テーブルやカラムのエイリアス
public SelectOptions forUpdateWait(int waitSeconds)
waitSeconds - 待機時間(秒)
public SelectOptions forUpdateWait(int waitSeconds,
String... aliases)
waitSeconds - 待機時間(秒)aliases - テーブルやカラムのエイリアス
public SelectOptions offset(int offset)
offset - オフセット
public SelectOptions limit(int limit)
limit - リミット
public SelectOptions count()
public long getCount()
Daoのメソッドを実行する前にcount()を呼び出していない場合 -1 を返します。
|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||