org.springmodules.orm.orbroker
Interface BrokerCallback


public interface BrokerCallback

Callback interface for data access code that works on an O/R Broker Exeutable. To be used with BrokerTemplate's execute method, assumably often as anonymous classes within a method implementation.

Since:
2005.06.02
Author:
Omar Irbouh
See Also:
BrokerTemplate.execute(BrokerCallback)

Method Summary
 java.lang.Object doInBroker(Executable executable)
          Gets called by BrokerTemplate.execute with an active Executable.
 

Method Detail

doInBroker

java.lang.Object doInBroker(Executable executable)
                            throws BrokerException
Gets called by BrokerTemplate.execute with an active Executable.

Parameters:
executable - O/R broker Executable
Returns:
a result object, or null if none
Throws:
BrokerException - if thrown by Executable methods


Copyright © 2005. All Rights Reserved.