KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > ojb > broker > ProjectUnidirectional


1 /*
2  * ObJectRelationalBridge - Bridging Java Objects and Relational Databases
3  * http://objectbridge.sourceforge.net
4  * Copyright (C) 2000, 2001 Thomas Mahler, et al.
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or (at your option) any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library; if not, write to the Free Software
18  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19  */

20
21 package org.apache.ojb.broker;
22
23 import java.io.Serializable JavaDoc;
24
25 public class ProjectUnidirectional implements Serializable JavaDoc
26 {
27     private int id;
28     private String JavaDoc title;
29     private String JavaDoc description;
30
31
32     public ProjectUnidirectional()
33     {
34     }
35
36     public ProjectUnidirectional(int pId, String JavaDoc pTitle, String JavaDoc pDescription)
37     {
38         id = pId;
39         title = pTitle;
40         description = pDescription;
41     }
42
43
44     public int getId()
45     {
46         return id;
47     }
48
49     public void setId(int id)
50     {
51         this.id = id;
52     }
53
54     public String JavaDoc getTitle()
55     {
56         return title;
57     }
58
59     public void setTitle(String JavaDoc title)
60     {
61         this.title = title;
62     }
63
64     public String JavaDoc getDescription()
65     {
66         return description;
67     }
68
69     public void setDescription(String JavaDoc description)
70     {
71         this.description = description;
72     }
73
74     public String JavaDoc toString()
75     {
76         String JavaDoc result = title;
77         result += " ";
78
79         return result;
80     }
81 }
82
Popular Tags