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
public class ForUpdateClause extends Object implements Serializable, Cloneable
Purpose:Represents The FOR UPDATE pessimistically locking clause.- Since:
- Oracle Toplink 10g AS
- Author:
- Stephen McRitchie
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected static ForUpdateClauseNO_LOCK_CLAUSE
-
Constructor Summary
Constructors Constructor Description ForUpdateClause()ForUpdateClause(short lockMode)ForUpdateClause(Integer waitTimeout)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectclone()CollectiongetAliasesOfTablesToBeLocked(SQLSelectStatement statement)INTERNAL: Returns collection of aliases of the tables to be locked.shortgetLockMode()IntegergetWaitTimeout()booleanisForUpdateOfClause()booleanisReferenceClassLocked()static ForUpdateClausenewInstance(short lockMode)static ForUpdateClausenewInstance(Integer waitTimeout)voidprintSQL(ExpressionSQLPrinter printer, SQLSelectStatement statement)INTERNAL: Prints the as of clause for an expression inside of the FROM clause.
-
-
-
Field Detail
-
NO_LOCK_CLAUSE
protected static final ForUpdateClause NO_LOCK_CLAUSE
-
-
Constructor Detail
-
ForUpdateClause
public ForUpdateClause()
-
ForUpdateClause
public ForUpdateClause(short lockMode)
-
ForUpdateClause
public ForUpdateClause(Integer waitTimeout)
-
-
Method Detail
-
newInstance
public static ForUpdateClause newInstance(short lockMode)
-
newInstance
public static ForUpdateClause newInstance(Integer waitTimeout)
-
isForUpdateOfClause
public boolean isForUpdateOfClause()
-
isReferenceClassLocked
public boolean isReferenceClassLocked()
-
getLockMode
public short getLockMode()
-
getWaitTimeout
public Integer getWaitTimeout()
-
printSQL
public void printSQL(ExpressionSQLPrinter printer, SQLSelectStatement statement)
INTERNAL: Prints the as of clause for an expression inside of the FROM clause.
-
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
-
-