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
See Also:
  • Field Details

  • Constructor Details

    • ForUpdateClause

      public ForUpdateClause()
    • ForUpdateClause

      public ForUpdateClause(short lockMode)
    • ForUpdateClause

      public ForUpdateClause(Integer waitTimeout)
  • Method Details

    • clone

      public Object clone()
      Overrides:
      clone in class Object
    • 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