01: /*
02: * Copyright (c) 2001 - 2005 ivata limited.
03: * All rights reserved.
04: * -----------------------------------------------------------------------------
05: * ivata groupware may be redistributed under the GNU General Public
06: * License as published by the Free Software Foundation;
07: * version 2 of the License.
08: *
09: * These programs are free software; you can redistribute them and/or
10: * modify them under the terms of the GNU General Public License
11: * as published by the Free Software Foundation; version 2 of the License.
12: *
13: * These programs are distributed in the hope that they will be useful,
14: * but WITHOUT ANY WARRANTY; without even the implied warranty of
15: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16: *
17: * See the GNU General Public License in the file LICENSE.txt for more
18: * details.
19: *
20: * If you would like a copy of the GNU General Public License write to
21: *
22: * Free Software Foundation, Inc.
23: * 59 Temple Place - Suite 330
24: * Boston, MA 02111-1307, USA.
25: *
26: *
27: * To arrange commercial support and licensing, contact ivata at
28: * http://www.ivata.com/contact.jsp
29: * -----------------------------------------------------------------------------
30: * $Log: TimestampDO.java,v $
31: * Revision 1.7 2005/10/09 09:39:27 colinmacleod
32: * Merged changes from ivata groupware v0.11.2 back into main trunk.
33: *
34: * Revision 1.3.2.1 2005/10/08 17:31:37 colinmacleod
35: * Used @hibernate.version tag for modified field.
36: *
37: * Revision 1.3 2005/04/10 20:10:04 colinmacleod
38: * Added new themes.
39: * Changed id type to String.
40: * Changed i tag to em and b tag to strong.
41: * Improved PicoContainerFactory with NanoContainer scripts.
42: *
43: * Revision 1.2 2005/04/09 17:19:58 colinmacleod
44: * Changed copyright text to GPL v2 explicitly.
45: *
46: * Revision 1.1.1.1 2005/03/10 17:51:32 colinmacleod
47: * Restructured ivata op around Hibernate/PicoContainer.
48: * Renamed ivata groupware.
49: *
50: * Revision 1.1 2004/09/30 15:16:00 colinmacleod
51: * Split off addressbook elements into security subproject.
52: *
53: * Revision 1.1 2004/07/13 19:41:15 colinmacleod
54: * Moved project to POJOs from EJBs.
55: * Applied PicoContainer to services layer (replacing session EJBs).
56: * Applied Hibernate to persistence layer (replacing entity EJBs).
57: * -----------------------------------------------------------------------------
58: */
59: package com.ivata.groupware.container.persistence;
60:
61: import java.sql.Timestamp;
62:
63: /**
64: * @author Colin MacLeod
65: * <a href='mailto:colin.macleod@ivata.com'>colin.macleod@ivata.com</a>
66: * @since Mar 28, 2004
67: * @version $Revision: 1.7 $
68: */
69: public interface TimestampDO {
70:
71: /**
72: * <p>Get the date and time when the DO was created.</p>
73: *
74: * @return the date and time when the DO was created.
75: * @hibernate.property
76: */
77: public abstract Timestamp getCreated();
78:
79: /**
80: * <p>Get the date and time when the DO was last modified.</p>
81: *
82: * @return the date and time when the DO was last modified.
83: * @hibernate.version
84: */
85: public abstract Timestamp getModified();
86:
87: /**
88: * <copyDoc>Refer to {@link #getCreated}.</copyDoc>
89: * @param createdParam The created to set.
90: */
91: public abstract void setCreated(Timestamp createdParam);
92:
93: /**
94: * <copyDoc>Refer to {@link #getModified}.</copyDoc>
95: * @param modifiedParam The modified to set.
96: */
97: public abstract void setModified(Timestamp modifiedParam);
98:
99: }
|