All Downloads are FREE. Search and download functionalities are using the official Maven repository.

studio.raptor.sqlparser.fast.command.dml.Delete Maven / Gradle / Ivy

/*
 * Copyright 2004-2014 H2 Group. Multiple-Licensed under the MPL 2.0,
 * and the EPL 1.0 (http://h2database.com/html/license.html).
 * Initial Developer: H2 Group
 */
package studio.raptor.sqlparser.fast.command.dml;


import studio.raptor.sqlparser.fast.command.CommandInterface;
import studio.raptor.sqlparser.fast.command.Prepared;
import studio.raptor.sqlparser.fast.expression.Expression;


/**
 * This class represents the statement
 * DELETE
 */
public class Delete extends Prepared {

  private Expression condition;

  /**
   * The limit expression as specified in the LIMIT or TOP clause.
   */
  private Expression limitExpr;

  public Delete() {
    super();
  }

  public void setCondition(Expression condition) {
    this.condition = condition;
  }

  @Override
  public int getType() {
    return CommandInterface.DELETE;
  }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy