View Javadoc

1   /**
2    * Copyright 2007 Björn Voß
3    *
4    * Licensed under the Apache License, Version 2.0 (the "License"); you may not
5    * use this file except in compliance with the License. You may obtain a copy of
6    * the License at
7    *
8    * http://www.apache.org/licenses/LICENSE-2.0
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
12   * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13   * License for the specific language governing permissions and limitations under
14   * the License.
15   */
16  package net.sf.oxclient.beans;
17  
18  import java.io.Serializable;
19  import java.sql.Timestamp;
20  import org.apache.commons.lang.builder.ToStringBuilder;
21  
22  /**
23   * @author Björn Voß
24   *
25   */
26  public abstract class OXBean implements Serializable {
27  
28  	private String id = null;
29  	private Folder parent = null;
30  	private Timestamp created = null;
31  
32  	public Timestamp getCreated() {
33  		return this.created;
34  	}
35  
36  	public String getId() {
37  		return this.id;
38  	}
39  
40  	public Folder getParent() {
41  		return this.parent;
42  	}
43  
44  	public void setCreated(final Timestamp created) {
45  		this.created = created;
46  	}
47  
48  	public void setId(final String id) {
49  		this.id = id;
50  	}
51  
52  	public void setParent(final Folder parent) {
53  		this.parent = parent;
54  	}
55  
56  	/**
57  	 * @see java.lang.Object#toString()
58  	 */
59  	@Override
60  	public String toString() {
61  		return new ToStringBuilder(this)
62  				.append("created", this.created)
63  				.append("id", this.id)
64  				.toString();
65  	}
66  }