Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members  

uesqlc::TQuery< TInstance, TDataSource, TObjectIdentifierFactory > Class Template Reference

#include <query.hh>

List of all members.

Public Methods

TQuery & operator= (const TQuery &rktQUERY)
void swap (TQuery &)

Protected Methods

void close (void)
 closes associated cursor

void open (void)
 Opens associated cursor.


Static Protected Methods

mpcl::text::TString _getObjectIdentifier (void)

Protected Attributes

bool gIsDeclared
 Is true when the cursor has been declared.

bool gIsOpened
 Is true when the cursor has been open.

long int liCurrent
 It points to the last fetched instance. Starts at 0.

long int liTarget
 It points to where we want to go. Starts at 0.

mpcl::util::collection::TMap<
long int, value_type > 
tInstanceMap
 Here we have a cache of recently fetched instances.

TString yCursorName
 The cursor we use to fetch data.

size_type zTupleCount
 It counts how many tuples were selected with current cursor.


Detailed Description

template<typename TInstance, typename TDataSource, typename TObjectIdentifierFactory = mpcl::util::strategy::TIdentifierGenerator>
class uesqlc::TQuery< TInstance, TDataSource, TObjectIdentifierFactory >

This is a container-like class for queries.
Parameters:
TInstance  Type with the attributes.
TBackend  Type with the query backend methods.
TObjectIdentifierFactory  Object identifier factory class.
See also:
mpcl::util::strategy::TIdentifierGenerator, TBaseDataSource.

Definition at line 49 of file query.hh.


Member Function Documentation

template<typename TInstance, typename TDataSource, typename TObjectIdentifierFactory = mpcl::util::strategy::TIdentifierGenerator>
mpcl::text::TString uesqlc::TQuery< TInstance, TDataSource, TObjectIdentifierFactory >::_getObjectIdentifier void    [inline, static, protected]
 

This method must generate an unique cursor name for this class,

Warning:
This method must be done thread safe in the future.

Definition at line 246 of file query.hh.

References mpcl::text::Format().

Referenced by uesqlc::TQuery< TInstance, TDataSource, TObjectIdentifierFactory >::operator=().

template<typename TInstance, typename TDataSource, typename TObjectIdentifierFactory = mpcl::util::strategy::TIdentifierGenerator>
TQuery& uesqlc::TQuery< TInstance, TDataSource, TObjectIdentifierFactory >::operator= const TQuery< TInstance, TDataSource, TObjectIdentifierFactory > &    rktQUERY [inline]
 

Warning:
this is an mutating sequence operation, and its semantics is unclear to me now, so I don't implement it.

Definition at line 216 of file query.hh.

References uesqlc::TQuery< TInstance, TDataSource, TObjectIdentifierFactory >::_getObjectIdentifier(), uesqlc::TQuery< TInstance, TDataSource, TObjectIdentifierFactory >::gIsDeclared, uesqlc::TQuery< TInstance, TDataSource, TObjectIdentifierFactory >::gIsOpened, uesqlc::TQuery< TInstance, TDataSource, TObjectIdentifierFactory >::liCurrent, uesqlc::TQuery< TInstance, TDataSource, TObjectIdentifierFactory >::liTarget, uesqlc::TQuery< TInstance, TDataSource, TObjectIdentifierFactory >::tInstanceMap, uesqlc::TQuery< TInstance, TDataSource, TObjectIdentifierFactory >::tLastInstance, and uesqlc::TQuery< TInstance, TDataSource, TObjectIdentifierFactory >::zTupleCount.

template<typename TInstance, typename TDataSource, typename TObjectIdentifierFactory = mpcl::util::strategy::TIdentifierGenerator>
void uesqlc::TQuery< TInstance, TDataSource, TObjectIdentifierFactory >::swap TQuery< TInstance, TDataSource, TObjectIdentifierFactory > &    [inline]
 

Warning:
this is an mutating sequence operation, and its semantics is unclear to me now, so I don't implement it.

Definition at line 233 of file query.hh.


The documentation for this class was generated from the following file:
Generated on Mon Oct 13 02:40:12 2003 for UESQLC by doxygen1.2.18