Module org.eclipse.persistence.core
Class ForUpdateOfClause
java.lang.Object
org.eclipse.persistence.internal.expressions.ForUpdateClause
org.eclipse.persistence.internal.expressions.ForUpdateOfClause
- All Implemented Interfaces:
Serializable
,Cloneable
Purpose:Represents The FOR UPDATE OF fine-grained pessimistically
locking clause.
- Since:
- Oracle Toplink 10g AS
- See Also:
-
Field Summary
Fields inherited from class org.eclipse.persistence.internal.expressions.ForUpdateClause
NO_LOCK_CLAUSE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addLockedExpression
(FieldExpression expression) void
addLockedExpression
(ObjectExpression expression) getAliasesOfTablesToBeLocked
(SQLSelectStatement statement) INTERNAL: Returns collection of aliases of the tables to be locked.boolean
boolean
void
printSQL
(ExpressionSQLPrinter printer, SQLSelectStatement statement) INTERNAL: Prints the as of clause for an expression inside of the FROM clause.void
setLockedExpressions
(List<Expression> lockedExpressions) void
setLockMode
(short lockMode) Methods inherited from class org.eclipse.persistence.internal.expressions.ForUpdateClause
clone, getLockMode, getWaitTimeout, newInstance, newInstance
-
Field Details
-
lockedExpressions
-
-
Constructor Details
-
ForUpdateOfClause
public ForUpdateOfClause()
-
-
Method Details
-
addLockedExpression
-
addLockedExpression
-
getLockedExpressions
-
isForUpdateOfClause
public boolean isForUpdateOfClause()- Overrides:
isForUpdateOfClause
in classForUpdateClause
-
isReferenceClassLocked
public boolean isReferenceClassLocked()- Overrides:
isReferenceClassLocked
in classForUpdateClause
-
setLockedExpressions
-
setLockMode
public void setLockMode(short lockMode) -
printSQL
INTERNAL: Prints the as of clause for an expression inside of the FROM clause.- Overrides:
printSQL
in classForUpdateClause
-
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- Overrides:
getAliasesOfTablesToBeLocked
in classForUpdateClause
-