Package org.h2.command.query
Class ForUpdate
- java.lang.Object
-
- org.h2.command.query.ForUpdate
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classForUpdate.TypeType of FOR UPDATE clause.
-
Field Summary
Fields Modifier and Type Field Description static ForUpdateDEFAULTFOR UPDATE clause without additional parameters.static ForUpdateNOWAITFOR UPDATE NOWAIT clause.static ForUpdateSKIP_LOCKEDFOR UPDATE SKIP LOCKED clause.-
Fields inherited from interface org.h2.util.HasSQL
ADD_PLAN_INFORMATION, DEFAULT_SQL_FLAGS, NO_CASTS, QUOTE_ONLY_WHEN_REQUIRED, REPLACE_LOBS_FOR_TRACE, TRACE_SQL_FLAGS
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringBuildergetSQL(java.lang.StringBuilder builder, int sqlFlags)Appends the SQL statement of this object to the specified builder.intgetTimeoutMillis()Returns timeout in milliseconds.ForUpdate.TypegetType()Returns type of FOR UPDATE clause.static ForUpdatewait(int timeoutMillis)Returns FOR UPDATE WAIT N clause.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.h2.util.HasSQL
getSQL, getTraceSQL
-
-
-
-
Method Detail
-
wait
public static ForUpdate wait(int timeoutMillis)
Returns FOR UPDATE WAIT N clause.- Parameters:
timeoutMillis- timeout in milliseconds- Returns:
- FOR UPDATE WAIT N clause
-
getType
public ForUpdate.Type getType()
Returns type of FOR UPDATE clause.- Returns:
- type of FOR UPDATE clause
-
getTimeoutMillis
public int getTimeoutMillis()
Returns timeout in milliseconds.- Returns:
- timeout in milliseconds for
ForUpdate.Type.WAIT,0forForUpdate.Type.NOWAIT,-2forForUpdate.Type.SKIP_LOCKED,-1for default timeout
-
getSQL
public java.lang.StringBuilder getSQL(java.lang.StringBuilder builder, int sqlFlags)Description copied from interface:HasSQLAppends the SQL statement of this object to the specified builder.
-
-