source: trunk/gsdl3/src/java/org/greenstone/gsdl3/gs3build/database/GS3SQLAction.java@ 6701

Last change on this file since 6701 was 6701, checked in by cs025, 20 years ago

Added date support

  • Property svn:keywords set to Author Date Id Revision
File size: 675 bytes
Line 
1package org.greenstone.gsdl3.gs3build.database;
2
3import java.util.List;
4import java.util.ArrayList;
5
6public class GS3SQLAction
7{ String table;
8 List values;
9
10 public GS3SQLAction(String table)
11 {
12 this.table = table;
13 this.values = new ArrayList();
14 }
15
16 public void addValue(String field, String value, String type)
17 { this.values.add(new GS3SQLValue(field, value, type));
18 }
19
20 public void addValue(String field, String value)
21 { this.values.add(new GS3SQLValue(field, value));
22 }
23
24 public void addDate(String field, java.sql.Date date)
25 {
26 }
27
28 public void addField(String field)
29 { this.values.add(new GS3SQLValue(field, null));
30 }
31}
32
Note: See TracBrowser for help on using the repository browser.