fatalmind::oracle::CommandInterface< TM, SLMDC > Class Template Reference

#include <CommandInterface.hh>

Inherits fatalmind::Command< fatalmind::oracle::ResourceType< TM, SLMDC > >.

Inherited by fatalmind::oracle::CommandCommon< TM, SLMDC >, and fatalmind::oracle::Transaction< TM, SLMDC >.

List of all members.


Detailed Description

template<class TM, template< class > class SLMDC>
class fatalmind::oracle::CommandInterface< TM, SLMDC >

this is actually the class which the CommandCommon and Transaction inherit from (public)

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 >


Member Function Documentation

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.


The documentation for this class was generated from the following files:
Generated on Mon Nov 9 16:21:24 2009 for ResourcePool by  doxygen 1.5.3