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 abstract class AccountTransaction extends BankTransaction { 9 10 private long _accountNumber; 11 12 13 AccountTransaction() {} protected AccountTransaction(Account account) { 15 _accountNumber = account.number(); 16 } 17 18 protected Object executeAndQuery(Bank bank, Date timestamp) throws Exception { 19 executeAndQuery(bank.findAccount(_accountNumber), timestamp); 20 return null; 21 } 22 23 protected abstract void executeAndQuery(Account account, Date timestamp) throws Exception ; 24 } | Popular Tags |