KickJava   Java API By Example, From Geeks To Geeks.

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


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 AccountCreation extends BankTransaction {
9
10     private String JavaDoc _holder;
11
12     private AccountCreation() {} //Necessary for Skaringa XML serialization
13
public AccountCreation(String JavaDoc holder) {
14         _holder = holder;
15     }
16
17     protected Object JavaDoc executeAndQuery(Bank bank, Date JavaDoc ignored) throws Account.InvalidHolder {
18         return bank.createAccount(_holder);
19     }
20
21 }
22
Popular Tags