source: trunk/gsdl3/src/java/org/greenstone/gsdl3/gs3build/database/GS3SQLDelete.java@ 7305

Last change on this file since 7305 was 5798, checked in by cs025, 21 years ago

Adding gs3build code

  • 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.