package com.chenyang.druid.sql.dialect.mysql.ast.statement;

import com.chenyang.druid.sql.ast.SQLExpr;
import com.chenyang.druid.sql.ast.SQLLimit;
import com.chenyang.druid.sql.dialect.mysql.visitor.MySqlASTVisitor;

public class MySqlShowRelayLogEventsStatement extends MySqlStatementImpl implements MySqlShowStatement {
   private SQLExpr logName;
   private SQLExpr from;
   private SQLLimit limit;

   public SQLExpr getLogName() {
      return this.logName;
   }

   public void setLogName(SQLExpr logName) {
      this.logName = logName;
   }

   public SQLExpr getFrom() {
      return this.from;
   }

   public void setFrom(SQLExpr from) {
      this.from = from;
   }

   public SQLLimit getLimit() {
      return this.limit;
   }

   public void setLimit(SQLLimit limit) {
      this.limit = limit;
   }

   public void accept0(MySqlASTVisitor visitor) {
      if (visitor.visit(this)) {
         this.acceptChild(visitor, this.logName);
         this.acceptChild(visitor, this.from);
         this.acceptChild(visitor, this.limit);
      }

      visitor.endVisit(this);
   }
}
