SQL Plugin copied from Quantum plugin and refactored for PHPEclipse
[phpeclipse.git] / archive / net.sourceforge.phpeclipse.sql / src / net / sourceforge / phpdt / sql / sql / TableRow.java
1 package net.sourceforge.phpdt.sql.sql;
2
3 public class TableRow {
4         private String[] columnNames;
5         private String[] tableData;
6         private String table;
7         
8         public TableRow(String tableName, String[] columnNames, String[] tableData) {
9                 this.table = tableName;
10                 this.tableData = tableData;
11                 this.columnNames = columnNames;
12         }
13         
14         public int getColumnCount() {
15                 return columnNames.length;
16         }
17         
18         public String[] getColumnNames() {
19                 return columnNames;
20         }
21
22         public String getTable() {
23                 return table;
24         }
25
26         public void setColumnNames(String[] columnNames) {
27                 this.columnNames = columnNames;
28         }
29
30         public void setTable(String table) {
31                 this.table = table;
32         }
33
34         public String[] getTableData() {
35                 return tableData;
36         }
37
38         public void setTableData(String[] tableData) {
39                 this.tableData = tableData;
40         }
41
42 }