01: /*
02: * Copyright (c) 2001 - 2005 ivata limited.
03: * All rights reserved.
04: * -----------------------------------------------------------------------------
05: * ivata masks 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: TimestampValueObject.java,v $
31: * Revision 1.3 2005/10/11 18:55:29 colinmacleod
32: * Fixed some checkstyle and javadoc issues.
33: *
34: * Revision 1.2 2005/10/03 10:17:25 colinmacleod
35: * Fixed some style and javadoc issues.
36: *
37: * Revision 1.1 2005/09/14 12:50:42 colinmacleod
38: * First version.
39: * Extracted from ivata groupware class
40: * TimestampDO.
41: *
42: * -----------------------------------------------------------------------------
43: */
44: package com.ivata.mask.valueobject;
45:
46: import java.sql.Timestamp;
47:
48: /**
49: * All value objects which implement timestamp accessors and modifiers should
50: * implement this interface. It is used by the hibernate persistence to check
51: * whether or no the value object is unsaved.
52: *
53: * @since ivata masks 1.0 (14-Sep-2005)
54: * @author Colin MacLeod
55: * <a href='mailto:colin.macleod@ivata.com'>colin.macleod@ivata.com</a>
56: * @version $Revision: 1.3 $
57: */
58: public interface TimestampValueObject {
59:
60: /**
61: * <p>Get the date and time when the value object was created.</p>
62: *
63: * @return the date and time when the value object was created.
64: */
65: Timestamp getCreated();
66:
67: /**
68: * <p>Get the date and time when the value object was last modified.</p>
69: *
70: * @return the date and time when the value object was last modified.
71: * @hibernate.timestamp
72: */
73: Timestamp getModified();
74:
75: /**
76: * <copyDoc>Refer to {@link #getCreated}.</copyDoc>
77: * @param createdParam The created to set.
78: */
79: void setCreated(Timestamp createdParam);
80:
81: /**
82: * <copyDoc>Refer to {@link #getModified}.</copyDoc>
83: * @param modifiedParam The modified to set.
84: */
85: void setModified(Timestamp modifiedParam);
86: }
|