MDBL Library
Public Member Functions | Protected Attributes | Private Member Functions | Static Private Member Functions | Static Private Attributes | Friends
CResultSet Class Reference

#include <ResultSet.hpp>

List of all members.

Public Member Functions

 CResultSet (const CTable &oTable)
 CResultSet (const CTable &oTable, CRow *pRow)
 CResultSet (const CResultSet &oResultSet)
 CResultSet (const CTable &oTable, const CRowSet &oRowSet)
virtual ~CResultSet ()
CResultSetoperator= (const CResultSet &oRHS)
size_t Count () const
CRowRow (size_t n) const
CRowoperator[] (size_t n) const
size_t Add (CRow &oRow)
void Truncate ()
void OrderBy (const CSortColumns &oColumns)
void OrderBy (size_t nColumn, CSortColumns::Dir eDir)
CValue Sum (size_t nColumn) const
CValue Min (size_t nColumn) const
CValue Max (size_t nColumn) const
CValueSet Distinct (size_t nColumn) const
CGroupSet GroupBy (size_t nColumn) const
CResultSet Select (const CWhere &oQuery) const
bool Exists (const CWhere &oQuery) const
void Dump (WCL::IOutputStream &rStream) const

Protected Attributes

const CTablem_pTable

Private Member Functions

 CResultSet ()

Static Private Member Functions

static int Compare (const void *ppRow1, const void *ppRow2)

Static Private Attributes

static const CSortColumnsg_pSortOrder = NULL

Friends

class CJoinedSet

Constructor & Destructor Documentation

CResultSet::CResultSet ( const CTable oTable)
CResultSet::CResultSet ( const CTable oTable,
CRow pRow 
)
CResultSet::CResultSet ( const CResultSet oResultSet)
CResultSet::CResultSet ( const CTable oTable,
const CRowSet oRowSet 
)
CResultSet::~CResultSet ( ) [virtual]
CResultSet::CResultSet ( ) [private]

Member Function Documentation

CResultSet & CResultSet::operator= ( const CResultSet oRHS)
size_t CResultSet::Count ( ) const [inline]
CRow & CResultSet::Row ( size_t  n) const [inline]
CRow & CResultSet::operator[] ( size_t  n) const [inline]
size_t CResultSet::Add ( CRow oRow) [inline]
void CResultSet::Truncate ( ) [inline]
void CResultSet::OrderBy ( const CSortColumns oColumns)
void CResultSet::OrderBy ( size_t  nColumn,
CSortColumns::Dir  eDir 
) [inline]
CValue CResultSet::Sum ( size_t  nColumn) const
CValue CResultSet::Min ( size_t  nColumn) const
CValue CResultSet::Max ( size_t  nColumn) const
CValueSet CResultSet::Distinct ( size_t  nColumn) const
CGroupSet CResultSet::GroupBy ( size_t  nColumn) const
CResultSet CResultSet::Select ( const CWhere oQuery) const
bool CResultSet::Exists ( const CWhere oQuery) const
void CResultSet::Dump ( WCL::IOutputStream &  rStream) const
int CResultSet::Compare ( const void *  ppRow1,
const void *  ppRow2 
) [static, private]

Friends And Related Function Documentation

friend class CJoinedSet [friend]

Member Data Documentation

const CTable* CResultSet::m_pTable [protected]
const CSortColumns * CResultSet::g_pSortOrder = NULL [static, private]

The documentation for this class was generated from the following files: