KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > prevayler > demos > demo2 > business > transactions > Deposit


1 package org.prevayler.demos.demo2.business.transactions;
2
3 import java.util.Date JavaDoc;
4
5 import org.prevayler.demos.demo2.business.Account;
6
7 public class Deposit extends AccountTransaction {
8
9     private long _amount;
10
11     private Deposit() {} //Necessary for Skaringa XML serialization
12
public Deposit(Account account, long amount) {
13         super(account);
14         _amount = amount;
15     }
16
17     public void executeAndQuery(Account account, Date JavaDoc timestamp) throws Account.InvalidAmount {
18         account.deposit(_amount, timestamp);
19     }
20 }
Popular Tags