1 package com.quantum.sql.parser;
3 import com.quantum.model.Entity;
7 * Drop a table, view or sequence.
11 public class DropEntityStatement implements SQL {
13 private String tableName;
14 private String type = Entity.TABLE_TYPE;
15 private String dependentRule = "";
18 * @see com.quantum.sql.parser.SQL#getCommand()
20 public String getCommand() {
21 return "DROP " + getType().toUpperCase();
24 public String getTableName() {
25 return this.tableName;
27 public void setTableName(String tableName) {
28 this.tableName = tableName;
31 public String toString() {
32 return getCommand() + " " + getTableName() + " " + this.dependentRule;
34 public String getType() {
37 public void setType(String type) {
40 public String getDependentRule() {
41 return this.dependentRule;
43 public void setDependentRule(String dependentRule) {
44 this.dependentRule = dependentRule;