#include <CommandInterface.hh>
Inherits fatalmind::Command< fatalmind::oracle::ResourceType< TM, SLMDC > >.
Inherited by fatalmind::oracle::CommandCommon< TM, SLMDC >, and fatalmind::oracle::Transaction< TM, SLMDC >.
Transaction needs to be friend to be allowed to access the protected methods
Public Types | |
typedef fatalmind::oracle::ResourceType < TM, SLMDC > | pool_type |
Public Member Functions | |
virtual void | execute (oracleResource< TM > &hand) |
virtual void | execute (typename fatalmind::oracle::ResourceType< TM, SLMDC >::resource_t &rr)=0 |
The execute method is the one which actually carries out the work. | |
Protected Member Functions | |
virtual void | _execute (oracleResource< TM > &, StatementCache &) |
const fatalmind::oracle::ResourceType < TM, SLMDC > ::factory_t & | getFactory (const ResourcePool< fatalmind::oracle::ResourceType< TM, SLMDC > > &p) const |
bool | topLevel () const |
void | topLevel (bool tl) |
Friends | |
class | Transaction< TM, SLMDC > |
class | ResourcePool< PT > |
virtual void fatalmind::Command< fatalmind::oracle::ResourceType< TM, SLMDC > >::execute | ( | typename fatalmind::oracle::ResourceType< TM, SLMDC > ::resource_t & | rr | ) | [pure virtual, inherited] |
The execute method is the one which actually carries out the work.
This method gets called by ResourcePool with a (valid) plain resource which was obtained from the pool.
On normal execution (no exception) the resource will be free()ed, on abnormal execution (exception) the resource will be failed. If you need to throw an functional exception which should not cause failing of the resource, derive this exception from NoFailoverException.