KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > nightlabs > ipanema > accounting > Currency


1 /*
2  * Created on 27.10.2004
3  */

4 package com.nightlabs.ipanema.accounting;
5
6 import java.io.Serializable JavaDoc;
7
8 /**
9  * @author Marco Schulze - marco at nightlabs dot de
10  *
11  * @jdo.persistence-capable
12  * identity-type = "application"
13  * objectid-class = "com.nightlabs.ipanema.accounting.id.CurrencyID"
14  * detachable = "true"
15  *
16  * @jdo.inheritance strategy = "new-table"
17  */

18 public class Currency
19     implements Serializable JavaDoc
20 {
21     /**
22      * This is the ISO or whatever standard for the currency. Usually a two or three-letter-abbreviation.
23      *
24      * @jdo.field primary-key="true"
25      * @jdo.column length="100"
26      */

27     private String JavaDoc currencyID;
28     
29     protected Currency() { }
30     
31     public Currency(String JavaDoc currencyID) {
32         if (currencyID == null)
33             throw new NullPointerException JavaDoc("currencyID must not be null!");
34
35         this.currencyID = currencyID;
36     }
37
38     /**
39      * @return Returns the currencyID.
40      */

41     public String JavaDoc getCurrencyID()
42     {
43         return currencyID;
44     }
45 }
46
Popular Tags