Class ForUpdateClause
- java.lang.Object
-
- org.eclipse.persistence.internal.expressions.ForUpdateClause
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable
- Direct Known Subclasses:
ForUpdateOfClause
public class ForUpdateClause extends java.lang.Object implements java.io.Serializable, java.lang.CloneablePurpose: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(java.lang.Integer waitTimeout)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectclone()java.util.CollectiongetAliasesOfTablesToBeLocked(SQLSelectStatement statement)INTERNAL: Returns collection of aliases of the tables to be locked.shortgetLockMode()java.lang.IntegergetWaitTimeout()booleanisForUpdateOfClause()booleanisReferenceClassLocked()static ForUpdateClausenewInstance(short lockMode)static ForUpdateClausenewInstance(java.lang.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
-
-
Method Detail
-
clone
public java.lang.Object clone()
- Overrides:
clonein classjava.lang.Object
-
newInstance
public static ForUpdateClause newInstance(short lockMode)
-
newInstance
public static ForUpdateClause newInstance(java.lang.Integer waitTimeout)
-
isForUpdateOfClause
public boolean isForUpdateOfClause()
-
isReferenceClassLocked
public boolean isReferenceClassLocked()
-
getLockMode
public short getLockMode()
-
getWaitTimeout
public java.lang.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 java.util.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
-
-