KickJava   Java API By Example, From Geeks To Geeks.

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


1 /*
2  * Created on Feb 17, 2005
3  * by alex
4  *
5  */

6 package com.nightlabs.ipanema.accounting;
7
8 import com.nightlabs.ipanema.security.User;
9 import com.nightlabs.ipanema.accounting.Invoice;
10 import com.nightlabs.ipanema.transfer.Anchor;
11 import com.nightlabs.ipanema.transfer.Transfer;
12 import com.nightlabs.ipanema.transfer.TransferRegistry;
13
14 /**
15  * PayMoneyTransfers are generated on payments. One anchor anchor of PayMoneyTransfer is
16  * always null, meaning that money comes from or is going to
17  * somewhere outside the datastore.
18  * In Spite of other MoneyTransfer s that are used for bookings and are assigned to one invoice only
19  * the invoice-member (inherited from MoneyTransfer) of PayMoneyTransfer will be null. A PayMoneyTransfer
20  * can be assigned to a multiple of Invoice s.
21  *
22  * @author Alexander Bieber <alex[AT]nightlabs[DOT]de>
23  *
24  * @jdo.persistence-capable
25  * identity-type = "application"
26  * persistence-capable-superclass = "com.nightlabs.ipanema.accounting.MoneyTransfer"
27  * detachable = "true"
28  *
29  * @jdo.inheritance strategy = "new-table"
30  */

31 public class PayMoneyTransfer extends MoneyTransfer {
32     
33     /**
34      *
35      */

36     public PayMoneyTransfer() {
37         super();
38     }
39
40     /**
41      * @param transferRegistry
42      * @param container
43      * @param initiator
44      * @param from
45      * @param to
46      * @param invoice
47      * @param currency
48      * @param amount
49      */

50     public PayMoneyTransfer(TransferRegistry transferRegistry,
51             Transfer container, User initiator, Anchor from, Anchor to,
52             Invoice[] invoices, Currency currency, long amount)
53     {
54         super(transferRegistry, container, initiator, from, to, invoices, currency,
55                 amount);
56     }
57 }
58
Popular Tags