KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > easybeans > tests > common > ejbs > entity > entitytest00 > Telephone


1 /**
2  * EasyBeans
3  * Copyright (C) 2006 Bull S.A.S.
4  * Contact: easybeans@objectweb.org
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 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
19  * USA
20  *
21  * --------------------------------------------------------------------------
22  * $Id: Telephone.java 975 2006-07-28 11:14:14Z pinheirg $
23  * --------------------------------------------------------------------------
24  */

25 package org.objectweb.easybeans.tests.common.ejbs.entity.entitytest00;
26
27 import javax.persistence.Embeddable;
28
29 /**
30  * The telephone data.
31  * @author Gisele Pinheiro Souza
32  * @author Eduardo Studzinski Estima de Castro
33  *
34  */

35 @Embeddable
36 public class Telephone {
37
38     /**
39      * The mobile number.
40      */

41     private String JavaDoc mobile;
42
43     /**
44      * The home number.
45      */

46     private String JavaDoc homePhone;
47
48     /**
49      * The work number.
50      */

51     private String JavaDoc workPhone;
52
53     /**
54      * Returns the home telephone number.
55      * @return the telephone number.
56      */

57     public String JavaDoc getHomePhone() {
58         return homePhone;
59     }
60
61     /**
62      * Sets the home telephone number.
63      * @param homePhone the telephone number.
64      */

65     public void setHomePhone(final String JavaDoc homePhone) {
66         this.homePhone = homePhone;
67     }
68
69     /**
70      * Returns the mobile telephone number.
71      * @return the telephone number.
72      */

73     public String JavaDoc getMobile() {
74         return mobile;
75     }
76
77     /**
78      * Sets the mobile telephone number.
79      * @param mobile the telephone number.
80      */

81     public void setMobile(final String JavaDoc mobile) {
82         this.mobile = mobile;
83     }
84
85
86     /**
87      * Returns the work telephone number.
88      * @return the telephone number.
89      */

90     public String JavaDoc getWorkPhone() {
91         return workPhone;
92     }
93
94     /**
95      * Sets the work telephone number.
96      * @param workPhone the telephone number.
97      */

98     public void setWorkPhone(final String JavaDoc workPhone) {
99         this.workPhone = workPhone;
100     }
101
102
103
104 }
105
Popular Tags