KickJava   Java API By Example, From Geeks To Geeks.

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


1 /*
2  * Created on Feb 26, 2005
3  */

4 package com.nightlabs.ipanema.accounting;
5
6 import com.nightlabs.ipanema.trade.OfferItem;
7
8 /**
9  * This is a pseudo <tt>PriceConfig</tt> which manages <tt>Price</tt> instances
10  * whenever a <tt>Price</tt> is needed outside of a real <tt>PriceConfig</tt>
11  * (for example in <tt>Offer</tt>s).
12  *
13  * @author Marco Schulze - marco at nightlabs dot de
14  *
15  * @jdo.persistence-capable
16  * identity-type = "application"
17  * persistence-capable-superclass = "com.nightlabs.ipanema.accounting.PriceConfig"
18  * detachable = "true"
19  *
20  * @jdo.inheritance strategy = "new-table"
21  */

22 public class AccountingPriceConfig extends PriceConfig
23 {
24
25     protected AccountingPriceConfig()
26     {
27     }
28
29     /**
30      * @param organisationID
31      * @param priceConfigID
32      */

33     public AccountingPriceConfig(String JavaDoc organisationID, long priceConfigID)
34     {
35         super(organisationID, priceConfigID);
36     }
37
38     /**
39      * @see com.nightlabs.ipanema.accounting.PriceConfig#getPrice(com.nightlabs.ipanema.trade.OfferItem)
40      */

41     public Price getPrice(OfferItem offerItem)
42     {
43         throw new UnsupportedOperationException JavaDoc("This pseudo PriceConfig is not intended to be used in this context!");
44     }
45
46     /**
47      * @see com.nightlabs.ipanema.accounting.PriceConfig#isDependentOnOffer()
48      */

49     public boolean isDependentOnOffer()
50     {
51         return false;
52     }
53
54     /**
55      * @see com.nightlabs.ipanema.accounting.PriceConfig#isDependentOnProductPackage()
56      */

57     public boolean isDependentOnProductPackage()
58     {
59         return false;
60     }
61
62 }
63
Popular Tags