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
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 voidaddLockedExpression(FieldExpression expression)voidaddLockedExpression(ObjectExpression expression)CollectiongetAliasesOfTablesToBeLocked(SQLSelectStatement statement)INTERNAL: Returns collection of aliases of the tables to be locked.List<Expression>getLockedExpressions()booleanisForUpdateOfClause()booleanisReferenceClassLocked()voidprintSQL(ExpressionSQLPrinter printer, SQLSelectStatement statement)INTERNAL: Prints the as of clause for an expression inside of the FROM clause.voidsetLockedExpressions(List<Expression> lockedExpressions)voidsetLockMode(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:
isForUpdateOfClausein classForUpdateClause
-
isReferenceClassLocked
public boolean isReferenceClassLocked()
- Overrides:
isReferenceClassLockedin 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:
printSQLin 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:
getAliasesOfTablesToBeLockedin classForUpdateClause
-
-