01: package com.knowgate.addrbook;
02:
03: import java.sql.SQLException;
04:
05: import com.knowgate.jdc.JDCConnection;
06: import com.knowgate.dataobjs.DB;
07: import com.knowgate.dataobjs.DBPersist;
08: import com.knowgate.misc.Gadgets;
09:
10: /**
11: * <p>Personal To Do List</p>
12: * @author Sergio Montoro Ten
13: * @version 2.0
14: */
15:
16: public class ToDo extends DBPersist {
17: public ToDo() {
18: super (DB.k_to_do, "ToDo");
19: }
20:
21: public boolean store(JDCConnection oConn) throws SQLException {
22: if (!AllVals.containsKey(DB.gu_to_do))
23: put(DB.gu_to_do, Gadgets.generateUUID());
24:
25: return super .store(oConn);
26: }
27:
28: // **********************************************************
29: // Public Constants
30:
31: public static final String STATUS_PENDING = "PENDING";
32: public static final String STATUS_DONE = "DONE";
33:
34: public static final short ClassId = 23;
35: }
|