KickJava   Java API By Example, From Geeks To Geeks.

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


1 package org.prevayler.demos.demo2.business.transactions;
2
3 import java.util.Date JavaDoc;
4
5 import org.prevayler.demos.demo2.business.*;
6
7
8 public class AccountDeletion extends BankTransaction {
9
10     private long _accountNumber;
11
12     private AccountDeletion() {} //Necessary for Skaringa XML serialization
13
public AccountDeletion(Account account) {
14         _accountNumber = account.number();
15     }
16
17     protected Object JavaDoc executeAndQuery(Bank bank, Date JavaDoc ignored) throws Bank.AccountNotFound {
18         bank.deleteAccount(_accountNumber);
19         return null;
20     }
21 }
Popular Tags