KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > jonas > stests > appli > DistrictID


1 package org.objectweb.jonas.stests.appli;
2
3 import java.io.Serializable JavaDoc;
4
5 /**
6  * The primary key for a district.
7  */

8 public class DistrictID implements Serializable JavaDoc {
9
10     public int districtId;
11     public String JavaDoc warehouseId;
12
13     /**
14      * Creates a district key
15      * @param did an int that represents the district id
16      * @param wid a string that represents the warehouse id
17      */

18     public DistrictID(int did, String JavaDoc wid) {
19         districtId = did;
20         warehouseId = wid;
21     }
22
23     /**
24      * Creates a district key
25      */

26     public DistrictID() {
27     }
28
29     public String JavaDoc toString(){
30         return districtId+warehouseId;
31     }
32 }
33
34
Popular Tags