01: /*
02: * Bossa Workflow System
03: *
04: * $Id: HistorianTransaction.java,v 1.2 2004/01/15 22:13:32 gdvieira Exp $
05: *
06: * Copyright (C) 2004 OpenBR Sistemas S/C Ltda.
07: *
08: * This file is part of Bossa.
09: *
10: * Bossa is free software; you can redistribute it and/or modify it
11: * under the terms of version 2 of the GNU General Public License as
12: * published by the Free Software Foundation.
13: *
14: * This program is distributed in the hope that it will be useful,
15: * but WITHOUT ANY WARRANTY; without even the implied warranty of
16: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17: * General Public License for more details.
18: *
19: * You should have received a copy of the GNU General Public
20: * License along with this program; if not, write to the
21: * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
22: * Boston, MA 02111-1307, USA.
23: */
24:
25: package com.bigbross.bossa.history;
26:
27: import com.bigbross.bossa.Bossa;
28: import com.bigbross.bossa.BossaTransaction;
29:
30: /**
31: * This class represents all transactions applied to the <code>Historian</code>
32: * object. <p>
33: *
34: * @author <a href="http://www.bigbross.com">BigBross Team</a>
35: */
36: abstract class HistorianTransaction extends BossaTransaction {
37:
38: /**
39: * @see BossaTransaction#execute(Bossa)
40: */
41: public Object execute(Bossa bossa) {
42: return execute(bossa.getHistorian());
43: }
44:
45: /**
46: * Executes a transaction in a historian. <p>
47: *
48: * @param historian the historian.
49: * @return the value returned by the transaction.
50: */
51: protected abstract Object execute(Historian historian);
52: }
|