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