01: package com.knowgate.training;
02:
03: /*
04: Copyright (C) 2003-2005 Know Gate S.L. All rights reserved.
05: C/Oņa, 107 1š2 28050 Madrid (Spain)
06:
07: Redistribution and use in source and binary forms, with or without
08: modification, are permitted provided that the following conditions
09: are met:
10:
11: 1. Redistributions of source code must retain the above copyright
12: notice, this list of conditions and the following disclaimer.
13:
14: 2. The end-user documentation included with the redistribution,
15: if any, must include the following acknowledgment:
16: "This product includes software parts from hipergate
17: (http://www.hipergate.org/)."
18: Alternately, this acknowledgment may appear in the software itself,
19: if and wherever such third-party acknowledgments normally appear.
20:
21: 3. The name hipergate must not be used to endorse or promote products
22: derived from this software without prior written permission.
23: Products derived from this software may not be called hipergate,
24: nor may hipergate appear in their name, without prior written
25: permission.
26:
27: This library is distributed in the hope that it will be useful,
28: but WITHOUT ANY WARRANTY; without even the implied warranty of
29: MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
30:
31: You should have received a copy of hipergate License with this code;
32: if not, visit http://www.hipergate.org or mail to info@hipergate.org
33: */
34:
35: import java.util.Date;
36: import java.sql.SQLException;
37: import java.sql.PreparedStatement;
38: import java.sql.CallableStatement;
39: import java.sql.ResultSet;
40:
41: import com.knowgate.jdc.JDCConnection;
42:
43: import com.knowgate.dataobjs.DB;
44: import com.knowgate.dataobjs.DBPersist;
45:
46: import com.knowgate.misc.Gadgets;
47:
48: /**
49: * @author Sergio Montoro Ten
50: * @version 1.0
51: */
52:
53: public class Evaluation extends DBPersist {
54: public Evaluation() {
55: super (DB.k_evaluations, "Evaluation");
56: }
57:
58: // ---------------------------------------------------------------------------
59:
60: public boolean store(JDCConnection oConn) throws SQLException {
61: if (!AllVals.containsKey(DB.dt_modified))
62: AllVals.put(DB.dt_modified, new Date());
63: return super .store(oConn);
64: }
65:
66: // **********************************************************
67: // Public Constants
68:
69: public static final short ClassId = 63;
70:
71: }
|