1 package net.sourceforge.backpedal.api.core;
2
3 public interface ParsedStatement {
4 /***
5 * Return one of INSERT, UPDATE or DELETE, depending on what type
6 * of SQL statement this represents.
7 */
8 public String getSqlKeyword();
9
10 /***
11 * Return the name of the table being affected by the SQL statement
12 * this represents.
13 */
14 public String getTableName();
15
16 /***
17 * Return the names of the columns involved in the where clause
18 * of the SQL statement this represents. In the case of
19 * UPDATE TABLE SET A=B, C=D WHERE E=F and G=H, the result would be
20 * E and G.
21 */
22 public String [] getWhereColumnNames();
23
24 /***
25 * Return the names of the columns affected by the SQL statement this
26 * represents. In the case of
27 * UPDATE TABLE SET A=B, C=D WHERE E=F and G=H, the result would be
28 * A and C.
29 */
30 public String []getChangedColumnNames();
31
32 /***
33 * Return the original, unparsed SQL that this represents.
34 */
35 public String unparsedSql();
36 }
This page was automatically generated by Maven