Main Page | Class Hierarchy | Data Structures | Directories | File List | Data Fields | Related Pages

Supplier.java

00001 /*-
00002  * See the file LICENSE for redistribution information.
00003  *
00004  * Copyright (c) 2002-2005
00005  *      Sleepycat Software.  All rights reserved.
00006  *
00007  * $Id: Supplier.java,v 12.2 2005/06/16 20:22:42 bostic Exp $
00008  */
00009 
00010 package collections.ship.sentity;
00011 
00012 import java.io.Serializable;
00013 
00032 public class Supplier implements Serializable {
00033 
00034     private transient String number;
00035     private String name;
00036     private int status;
00037     private String city;
00038 
00039     public Supplier(String number, String name, int status, String city) {
00040 
00041         this.number = number;
00042         this.name = name;
00043         this.status = status;
00044         this.city = city;
00045     }
00046 
00051     void setKey(String number) {
00052 
00053         this.number = number;
00054     }
00055 
00056     public final String getNumber() {
00057 
00058         return number;
00059     }
00060 
00061     public final String getName() {
00062 
00063         return name;
00064     }
00065 
00066     public final int getStatus() {
00067 
00068         return status;
00069     }
00070 
00071     public final String getCity() {
00072 
00073         return city;
00074     }
00075 
00076     public String toString() {
00077 
00078         return "[Supplier: number=" + number +
00079                " name=" + name +
00080                " status=" + status +
00081                " city=" + city + ']';
00082     }
00083 }

Generated on Sun Dec 25 12:14:27 2005 for Berkeley DB 4.4.16 by  doxygen 1.4.2