com.bigbross.bossa
Class BossaTransaction

java.lang.Object
  extended bycom.bigbross.bossa.BossaTransaction
All Implemented Interfaces:
Serializable, org.prevayler.TransactionWithQuery

public abstract class BossaTransaction
extends Object
implements org.prevayler.TransactionWithQuery

This class represents all transactions applied to a Bossa engine.

Author:
BigBross Team
See Also:
Serialized Form

Constructor Summary
BossaTransaction()
           
 
Method Summary
abstract  Object execute(Bossa bossa)
          Executes a transaction in a Bossa engine.
 Object executeAndQuery(Object system, Date time)
          Executes a transaction in a prevalent system.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BossaTransaction

public BossaTransaction()
Method Detail

executeAndQuery

public Object executeAndQuery(Object system,
                              Date time)
                       throws Exception
Executes a transaction in a prevalent system.

This method sets the engine time source to the time provided. It should only be called by the prevayler instance providing persistence to the engine.

Specified by:
executeAndQuery in interface org.prevayler.TransactionWithQuery
Throws:
Exception
See Also:
TransactionWithQuery.executeAndQuery(Object, Date)

execute

public abstract Object execute(Bossa bossa)
                        throws BossaException
Executes a transaction in a Bossa engine.

This method uses the time currently set in the engine time source.

Parameters:
bossa - the Bossa engine.
Returns:
the value returned by the transaction.
Throws:
BossaException - if a Bossa error occurs.


Copyright © 2003,2004 OpenBR Sistemas S/C Ltda.