KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > nightlabs > ipanema > store > id > ProductID


1 /*
2  * Created on 24.09.2004
3  *
4  */

5 package com.nightlabs.ipanema.store.id;
6
7 import com.nightlabs.jdo.BaseObjectID;
8 import com.nightlabs.jdo.ObjectIDException;
9
10 /**
11  * @author Niklas Schiffler <nick@nightlabs.de>
12  *
13  */

14 public class ProductID extends BaseObjectID
15 {
16     public String JavaDoc organisationID;
17     public String JavaDoc productID;
18
19     public ProductID() { }
20
21     public ProductID(String JavaDoc keyStr)
22     throws ObjectIDException
23     {
24         super(keyStr);
25     }
26
27     public static ProductID create(String JavaDoc organisationID, String JavaDoc productID)
28     {
29         ProductID n = new ProductID();
30         n.organisationID = organisationID;
31         n.productID = productID;
32         return n;
33     }
34
35 }
36
Popular Tags