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

import com.chenyang.druid.sql.ast.SQLName;
import com.chenyang.druid.sql.ast.statement.SQLAlterTableItem;
import com.chenyang.druid.sql.dialect.mariadb.ast.MariadbObjectImpl;
import com.chenyang.druid.sql.dialect.mariadb.visitor.MariadbASTVisitor;

public class MariadbAlterTableAlterCheck extends MariadbObjectImpl implements SQLAlterTableItem {
   private SQLName name;
   private Boolean enforced;

   public void accept0(MariadbASTVisitor visitor) {
      if (visitor.visit(this) && this.getName() != null) {
         this.getName().accept(visitor);
      }

      visitor.endVisit(this);
   }

   public SQLName getName() {
      return this.name;
   }

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

   public Boolean getEnforced() {
      return this.enforced;
   }

   public void setEnforced(Boolean enforced) {
      this.enforced = enforced;
   }
}
