1 package org.prevayler.demos.demo2.business.transactions; 2 3 import java.util.Date ; 4 5 import org.prevayler.demos.demo2.business.*; 6 7 8 public class AccountCreation extends BankTransaction { 9 10 private String _holder; 11 12 private AccountCreation() {} public AccountCreation(String holder) { 14 _holder = holder; 15 } 16 17 protected Object executeAndQuery(Bank bank, Date ignored) throws Account.InvalidHolder { 18 return bank.createAccount(_holder); 19 } 20 21 } 22 | Popular Tags |