Class SQLLimit

java.lang.Object
com.alibaba.druid.sql.ast.SQLObjectImpl
com.alibaba.druid.sql.ast.SQLLimit
All Implemented Interfaces:
SQLObject, SQLReplaceable

public final class SQLLimit extends SQLObjectImpl implements SQLReplaceable
Created by wenshao on 16/9/25.
  • Constructor Details

    • SQLLimit

      public SQLLimit()
    • SQLLimit

      public SQLLimit(int rowCount)
    • SQLLimit

      public SQLLimit(SQLExpr rowCount)
    • SQLLimit

      public SQLLimit(SQLExpr offset, SQLExpr rowCount)
  • Method Details

    • getRowCount

      public SQLExpr getRowCount()
    • setRowCount

      public void setRowCount(SQLExpr rowCount)
    • setRowCount

      public void setRowCount(int rowCount)
    • getOffset

      public SQLExpr getOffset()
    • setOffset

      public void setOffset(int offset)
    • setOffset

      public void setOffset(SQLExpr offset)
    • isOffsetClause

      public boolean isOffsetClause()
    • setOffsetClause

      public void setOffsetClause(boolean offsetClause)
    • merge

      public void merge(SQLLimit other)
    • accept0

      protected void accept0(SQLASTVisitor visitor)
      Specified by:
      accept0 in class SQLObjectImpl
    • clone

      public SQLLimit clone()
      Specified by:
      clone in interface SQLObject
      Overrides:
      clone in class SQLObjectImpl
    • addBy

      public void addBy(SQLExpr item)
    • getBy

      public List<SQLExpr> getBy()
    • replace

      public boolean replace(SQLExpr expr, SQLExpr target)
      Specified by:
      replace in interface SQLReplaceable
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object