01: /*
02: * TableModifier.java
03: *
04: * Copyright (C) 2002, 2003, 2004, 2005, 2006 Takis Diakoumis
05: *
06: * This program is free software; you can redistribute it and/or
07: * modify it under the terms of the GNU General Public License
08: * as published by the Free Software Foundation; either version 2
09: * of the License, or any later version.
10: *
11: * This program is distributed in the hope that it will be useful,
12: * but WITHOUT ANY WARRANTY; without even the implied warranty of
13: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14: * GNU General Public License for more details.
15: *
16: * You should have received a copy of the GNU General Public License
17: * along with this program; if not, write to the Free Software
18: * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
19: *
20: */
21:
22: package org.executequery.gui.table;
23:
24: import org.executequery.databasemediators.MetaDataValues;
25:
26: // defines those objects with table functions requiring sql output
27: /* ----------------------------------------------------------
28: * CVS NOTE: Changes to the CVS repository prior to the
29: * release of version 3.0.0beta1 has meant a
30: * resetting of CVS revision numbers.
31: * ----------------------------------------------------------
32: */
33:
34: /**
35: *
36: * @author Takis Diakoumis
37: * @version $Revision: 1.5 $
38: * @date $Date: 2006/09/26 16:07:25 $
39: */
40: public interface TableModifier extends CreateTableSQLSyntax {
41:
42: int COLUMN_VALUES = 0;
43: int CONSTRAINT_VALUES = 1;
44:
45: /**
46: * Generates and prints the SQL text.
47: */
48: public void setSQLText();
49:
50: /**
51: * Generates and prints the SQL text with the
52: * specified values as either column values or
53: * constraints values depending on the type parameter.
54: *
55: * @param the values to add to the SQL
56: * @param the type of values - column or constraint
57: */
58: public void setSQLText(String values, int type);
59:
60: /**
61: * Retrieves the currently selected/created table name.
62: *
63: * @return the table name
64: */
65: public String getTableName();
66:
67: }
|