
package org.durid.sql.dialect.mysql.ast.statement;

import org.durid.sql.ast.SQLExpr;
import org.durid.sql.dialect.mysql.visitor.MySqlASTVisitor;

public class MySqlShowEngineStatement extends MySqlStatementImpl {

    private static final long serialVersionUID = 1L;

    private SQLExpr           name;
    private Option            option;

    public void accept0(MySqlASTVisitor visitor) {
        if (visitor.visit(this)) {
            acceptChild(visitor, name);
        }
        visitor.endVisit(this);
    }

    public SQLExpr getName() {
        return name;
    }

    public void setName(SQLExpr name) {
        this.name = name;
    }

    public Option getOption() {
        return option;
    }

    public void setOption(Option option) {
        this.option = option;
    }

    public static enum Option {
        STATUS, MUTEX
    }
}
