KickJava   Java API By Example, From Geeks To Geeks.

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


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 HolderChange extends AccountTransaction {
8
9     private String JavaDoc _newHolder;
10
11     private HolderChange() {} //Necessary for Skaringa XML serialization
12
public HolderChange(Account account, String JavaDoc newHolder) {
13         super(account);
14         _newHolder = newHolder;
15     }
16
17     public void executeAndQuery(Account account, Date JavaDoc ignored) throws Account.InvalidHolder {
18         account.holder(_newHolder);
19     }
20 }
Popular Tags