KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > enterprise > customer_cmp_ejb > persistence > SubscriptionType


1 /*
2  * Copyright 2004-2005 Sun Microsystems, Inc. All rights reserved.
3  * Use is subject to license terms.
4  */

5
6 package enterprise.customer_cmp_ejb.persistence;
7
8 import java.io.Serializable JavaDoc;
9
10
11 /**
12  * This is a dependent value class.
13  *
14  * @author Rahul Biswas
15  */

16 public class SubscriptionType implements Serializable JavaDoc {
17
18     private String JavaDoc type;
19
20     public static final String JavaDoc MAGAZINE = "Magazine";
21
22     public static final String JavaDoc JOURNAL = "Journal";
23
24     public static final String JavaDoc NEWS_PAPER = "News Paper";
25
26     public static final String JavaDoc OTHER = "Other";
27
28     private SubscriptionType (String JavaDoc type) {
29         this.type = type;
30     }
31
32     public String JavaDoc getType() {
33         return type;
34     }
35
36     public String JavaDoc toString() {
37         return type;
38     }
39 }
40
Popular Tags