1 /*
2 * Created on 2003-6-6 15:34:15 by joel guo
3 *
4 * vTradEx Information Technology Inc.
5 */
6 package com.cyclops.dbdigger.sql;
7 import java.util.ArrayList;
8 import java.util.List;
9
10 import com.cyclops.dbdigger.schema.Table;
11 /*** Add description <font color="red">HERE</font>!
12 *
13 * @author <a href="mailto:joeblack.guo@vtradex.com">joel guo</a>
14 * @since 2003-6-6 15:34:15
15 */
16 public class Update extends SQL {
17 /*** Empty Array */
18 public static final Update[] EMPTY_ARRAY = new Update[0];
19 /*** Keyword */
20 public static final String OPERATION = "UPDATE";
21 private List sets = new ArrayList();
22 private List tables = new ArrayList();
23 private Condition where;
24 /*** Constructor of class Update
25 */
26 public Update() {
27 super(OPERATION);
28 }
29 /*** Method getSets()
30 * @return Array of Equal objects
31 */
32 public Equal[] getSets() {
33 return (Equal[]) sets.toArray(Equal.EMPTY_ARRAY);
34 }
35 /*** Method getTables()
36 * @return Array of table objects
37 */
38 public Table[] getTables() {
39 return (Table[]) tables.toArray(Table.EMPTY_ARRAY);
40 }
41 /*** Method getWhere()
42 * @return Condition object
43 */
44 public Condition getWhere() {
45 return where;
46 }
47 }
This page was automatically generated by Maven