source: trunk/greenstone3-extensions/gs3build/src/org/greenstone/gsdl3/gs3build/database/GS3SQLDelete.java@ 12188

Last change on this file since 12188 was 12188, checked in by kjdon, 18 years ago

Initial revision

  • Property svn:keywords set to Author Date Id Revision
File size: 565 bytes
Line 
1package org.greenstone.gsdl3.gs3build.database;
2
3public class GS3SQLDelete
4{
5 GS3SQLWhere where;
6 String table;
7
8 public GS3SQLDelete(String table)
9 { this.table = table;
10 this.where = null;
11 }
12
13 public void setWhere(GS3SQLWhere where)
14 { this.where = where;
15 }
16
17 public String toString()
18 {
19 StringBuffer reply = new StringBuffer();
20 reply.append("DELETE FROM ");
21 reply.append(this.table);
22
23 if (this.where != null)
24 { reply.append(" WHERE ");
25 reply.append(where.toString());
26 }
27
28 return reply.toString();
29 }
30}
31
32
33
34
35
Note: See TracBrowser for help on using the repository browser.