| Modifier and Type | Class and Description |
|---|---|
static class |
ForUpdate.Type
Type of FOR UPDATE clause.
|
| Modifier and Type | Field and Description |
|---|---|
static ForUpdate |
DEFAULT
FOR UPDATE clause without additional parameters.
|
static ForUpdate |
NOWAIT
FOR UPDATE NOWAIT clause.
|
static ForUpdate |
SKIP_LOCKED
FOR UPDATE SKIP LOCKED clause.
|
ADD_PLAN_INFORMATION, DEFAULT_SQL_FLAGS, NO_CASTS, QUOTE_ONLY_WHEN_REQUIRED, REPLACE_LOBS_FOR_TRACE, TRACE_SQL_FLAGS| Modifier and Type | Method and Description |
|---|---|
java.lang.StringBuilder |
getSQL(java.lang.StringBuilder builder,
int sqlFlags)
Appends the SQL statement of this object to the specified builder.
|
int |
getTimeoutMillis()
Returns timeout in milliseconds.
|
ForUpdate.Type |
getType()
Returns type of FOR UPDATE clause.
|
static ForUpdate |
wait(int timeoutMillis)
Returns FOR UPDATE WAIT N clause.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetSQL, getTraceSQLpublic static final ForUpdate DEFAULT
public static final ForUpdate NOWAIT
public static final ForUpdate SKIP_LOCKED
public static final ForUpdate wait(int timeoutMillis)
timeoutMillis - timeout in millisecondspublic ForUpdate.Type getType()
public int getTimeoutMillis()
ForUpdate.Type.WAIT, 0 for
ForUpdate.Type.NOWAIT, -2 for ForUpdate.Type.SKIP_LOCKED,
-1 for default timeoutpublic java.lang.StringBuilder getSQL(java.lang.StringBuilder builder,
int sqlFlags)
HasSQL