01: /*
02: * Copyright 2004,2005 The Apache Software Foundation.
03: *
04: * Licensed under the Apache License, Version 2.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.apache.org/licenses/LICENSE-2.0
09: *
10: * Unless required by applicable law or agreed to in writing, software
11: * distributed under the License is distributed on an "AS IS" BASIS,
12: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13: * See the License for the specific language governing permissions and
14: * limitations under the License.
15: */
16: package org.wso2.esb.persistence.dataobject;
17:
18: import java.util.Date;
19:
20: /**
21: * Base data object for all DO's used in the ESB
22: */
23: public abstract class BaseDO {
24:
25: private Long id;
26: private Date lastUpdatedTime;
27:
28: protected BaseDO() {
29: lastUpdatedTime = new Date();
30: }
31:
32: public Long getId() {
33: return id;
34: }
35:
36: public void setId(Long id) {
37: this .id = id;
38: }
39:
40: public Date getLastUpdatedTime() {
41: return lastUpdatedTime;
42: }
43:
44: public void setLastUpdatedTime(Date lastUpdatedTime) {
45: this .lastUpdatedTime = lastUpdatedTime;
46: }
47:
48: public String toString() {
49: return "BaseDO{" + "id=" + id + ", lastUpdatedTime="
50: + lastUpdatedTime + '}';
51: }
52: }
|