PATCH-1559330: PHPDoc comments are garbled in function hover. Applied patch .
[phpeclipse.git] / archive / net.sourceforge.phpeclipse.quantum.sql / src / com / quantum / sql / parser / DropEntityStatement.java
1 package com.quantum.sql.parser;
2
3 import com.quantum.model.Entity;
4
5
6 /**
7  * Drop a table, view or sequence.
8  * 
9  * @author BC Holmes
10  */
11 public class DropEntityStatement implements SQL {
12
13         private String tableName;
14         private String type = Entity.TABLE_TYPE;
15         private String dependentRule = "";
16         
17         /**
18          * @see com.quantum.sql.parser.SQL#getCommand()
19          */
20         public String getCommand() {
21                 return "DROP " + getType().toUpperCase();
22         }
23         
24         public String getTableName() {
25                 return this.tableName;
26         }
27         public void setTableName(String tableName) {
28                 this.tableName = tableName;
29         }
30         
31         public String toString() {
32                 return getCommand() + " " + getTableName() + " " + this.dependentRule;
33         }
34         public String getType() {
35                 return this.type;
36         }
37         public void setType(String type) {
38                 this.type = type;
39         }
40         public String getDependentRule() {
41                 return this.dependentRule;
42         }
43         public void setDependentRule(String dependentRule) {
44                 this.dependentRule = dependentRule;
45         }
46 }