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
FieldsFields inherited from class org.eclipse.persistence.internal.expressions.ForUpdateClause
NO_LOCK_CLAUSE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddLockedExpression(FieldExpression expression) voidaddLockedExpression(ObjectExpression expression) getAliasesOfTablesToBeLocked(SQLSelectStatement statement) INTERNAL: Returns collection of aliases of the tables to be locked.booleanbooleanvoidprintSQL(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 Details
-
lockedExpressions
-
-
Constructor Details
-
ForUpdateOfClause
public ForUpdateOfClause()
-
-
Method Details
-
addLockedExpression
-
addLockedExpression
-
getLockedExpressions
-
isForUpdateOfClause
public boolean isForUpdateOfClause()- Overrides:
isForUpdateOfClausein classForUpdateClause
-
isReferenceClassLocked
public boolean isReferenceClassLocked()- Overrides:
isReferenceClassLockedin classForUpdateClause
-
setLockedExpressions
-
setLockMode
public void setLockMode(short lockMode) -
printSQL
INTERNAL: Prints the as of clause for an expression inside of the FROM clause.- Overrides:
printSQLin 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:
getAliasesOfTablesToBeLockedin classForUpdateClause
-