public class SelectOptions
extends java.lang.Object
implements java.io.Serializable
SelectOptions options = SelectOptions.get().offset(10).limit(50).forUpdate();
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String[] |
aliases |
protected boolean |
count |
protected long |
countSize |
protected SelectForUpdateType |
forUpdateType |
protected long |
limit |
protected long |
offset |
protected int |
waitSeconds |
| Modifier | Constructor and Description |
|---|---|
protected |
SelectOptions() |
| Modifier and Type | Method and Description |
|---|---|
SelectOptions |
count()
Indicates to count all rows.
|
SelectOptions |
forUpdate()
Indicates to apply pessimistic locking.
|
SelectOptions |
forUpdate(java.lang.String... aliases)
Indicates to apply pessimistic locking with specified aliases.
|
SelectOptions |
forUpdateNowait()
Indicates to apply no-wait pessimistic locking.
|
SelectOptions |
forUpdateNowait(java.lang.String... aliases)
Indicates to apply no-wait pessimistic locking with specified aliases.
|
SelectOptions |
forUpdateWait(int waitSeconds)
Indicates to apply pessimistic locking with specified wait seconds.
|
SelectOptions |
forUpdateWait(int waitSeconds,
java.lang.String... aliases)
Indicates to apply pessimistic locking with specified wait seconds and aliases.
|
static SelectOptions |
get()
Creates a new
SelectOptions instance. |
long |
getCount()
Returns the count of all rows.
|
SelectOptions |
limit(int limit)
Indicates to apply the specified limit.
|
SelectOptions |
offset(int offset)
Indicates to apply the the specified offset.
|
protected long offset
protected long limit
protected boolean count
protected long countSize
protected SelectForUpdateType forUpdateType
protected int waitSeconds
protected java.lang.String[] aliases
public static SelectOptions get()
SelectOptions instance.SelectOptions instancepublic SelectOptions forUpdate()
public SelectOptions forUpdate(java.lang.String... aliases)
aliases - aliases of the table or the columnpublic SelectOptions forUpdateNowait()
public SelectOptions forUpdateNowait(java.lang.String... aliases)
aliases - aliases of the table or the columnpublic SelectOptions forUpdateWait(int waitSeconds)
waitSeconds - the wait secondspublic SelectOptions forUpdateWait(int waitSeconds, java.lang.String... aliases)
waitSeconds - the wait secondsaliases - aliases of the table or the columnpublic SelectOptions offset(int offset)
offset - the offsetpublic SelectOptions limit(int limit)
limit - the limitpublic SelectOptions count()
public long getCount()
If count() is not invoked before the DAO method execution, this method returns
-1.