KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > knowgate > training > Evaluation


1 package com.knowgate.training;
2
3 /*
4   Copyright (C) 2003-2005 Know Gate S.L. All rights reserved.
5                            C/Oņa, 107 1š2 28050 Madrid (Spain)
6
7   Redistribution and use in source and binary forms, with or without
8   modification, are permitted provided that the following conditions
9   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 JavaDoc;
36 import java.sql.SQLException JavaDoc;
37 import java.sql.PreparedStatement JavaDoc;
38 import java.sql.CallableStatement JavaDoc;
39 import java.sql.ResultSet JavaDoc;
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 JavaDoc{
61     if (!AllVals.containsKey(DB.dt_modified))
62       AllVals.put(DB.dt_modified, new Date JavaDoc());
63     return super.store(oConn);
64   }
65
66   // **********************************************************
67
// Public Constants
68

69   public static final short ClassId = 63;
70
71 }
72
Popular Tags