01: /*-
02: * See the file LICENSE for redistribution information.
03: *
04: * Copyright (c) 2002,2008 Oracle. All rights reserved.
05: *
06: * $Id: Supplier.java,v 1.10.2.2 2008/01/07 15:14:00 cwl Exp $
07: */
08:
09: 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 number;
24: private String name;
25: private int status;
26: private String city;
27:
28: public Supplier(String number, String name, int status, String city) {
29:
30: this .number = number;
31: this .name = name;
32: this .status = status;
33: this .city = city;
34: }
35:
36: public final String getNumber() {
37:
38: return number;
39: }
40:
41: public final String getName() {
42:
43: return name;
44: }
45:
46: public final int getStatus() {
47:
48: return status;
49: }
50:
51: public final String getCity() {
52:
53: return city;
54: }
55:
56: public String toString() {
57:
58: return "[Supplier: number=" + number + " name=" + name
59: + " status=" + status + " city=" + city + ']';
60: }
61: }
|