KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > collections > ship > entity > Supplier


1 /*-
2  * See the file LICENSE for redistribution information.
3  *
4  * Copyright (c) 2002,2006 Oracle. All rights reserved.
5  *
6  * $Id: Supplier.java,v 1.10 2006/10/30 21:13:58 bostic Exp $
7  */

8
9 package collections.ship.entity;
10
11 /**
12  * A Supplier represents the combined key/data pair for a supplier entity.
13  *
14  * <p> In this sample, Supplier is created from the stored key/data entry
15  * using a SerialSerialBinding. See {@link SampleViews.SupplierBinding} for
16  * details. Since this class is not used directly for data storage, it does
17  * not need to be Serializable. </p>
18  *
19  * @author Mark Hayes
20  */

21 public class Supplier {
22
23     private String JavaDoc number;
24     private String JavaDoc name;
25     private int status;
26     private String JavaDoc city;
27
28     public Supplier(String JavaDoc number, String JavaDoc name, int status, String JavaDoc city) {
29
30         this.number = number;
31         this.name = name;
32         this.status = status;
33         this.city = city;
34     }
35
36     public final String JavaDoc getNumber() {
37
38         return number;
39     }
40
41     public final String JavaDoc getName() {
42
43         return name;
44     }
45
46     public final int getStatus() {
47
48         return status;
49     }
50
51     public final String JavaDoc getCity() {
52
53         return city;
54     }
55
56     public String JavaDoc toString() {
57
58         return "[Supplier: number=" + number +
59                " name=" + name +
60                " status=" + status +
61                " city=" + city + ']';
62     }
63 }
64
Popular Tags