Module org.eclipse.persistence.core
Class ForUpdateClause
java.lang.Object
org.eclipse.persistence.internal.expressions.ForUpdateClause
- All Implemented Interfaces:
Serializable
,Cloneable
- Direct Known Subclasses:
ForUpdateOfClause
Purpose:Represents The FOR UPDATE pessimistically locking clause.
- Since:
- Oracle Toplink 10g AS
- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionclone()
getAliasesOfTablesToBeLocked
(SQLSelectStatement statement) INTERNAL: Returns collection of aliases of the tables to be locked.short
boolean
boolean
static ForUpdateClause
newInstance
(short lockMode) static ForUpdateClause
newInstance
(Integer waitTimeout) void
printSQL
(ExpressionSQLPrinter printer, SQLSelectStatement statement) INTERNAL: Prints the as of clause for an expression inside of the FROM clause.
-
Field Details
-
NO_LOCK_CLAUSE
-
-
Constructor Details
-
ForUpdateClause
public ForUpdateClause() -
ForUpdateClause
public ForUpdateClause(short lockMode) -
ForUpdateClause
-
-
Method Details
-
clone
-
newInstance
-
newInstance
-
isForUpdateOfClause
public boolean isForUpdateOfClause() -
isReferenceClassLocked
public boolean isReferenceClassLocked() -
getLockMode
public short getLockMode() -
getWaitTimeout
-
printSQL
INTERNAL: Prints the as of clause for an expression inside of the FROM clause. -
getAliasesOfTablesToBeLocked
INTERNAL: Returns collection of aliases of the tables to be locked. Only used by platforms that lock tables individually in FROM clause (platform.shouldPrintLockingClauseAfterWhereClause()==false) like SQLServer
-