ALBA
Public Member Functions | Protected Attributes | List of all members
albaRelationalDatabaseAbstractConnector Class Referenceabstract

#include <albaRelationalDatabaseAbstractConnector.h>

Inheritance diagram for albaRelationalDatabaseAbstractConnector:
Inheritance graph
[legend]
Collaboration diagram for albaRelationalDatabaseAbstractConnector:
Collaboration graph
[legend]

Public Member Functions

 albaRelationalDatabaseAbstractConnector (const char *query="")
 
virtual ~albaRelationalDatabaseAbstractConnector ()
 
 albaAbstractTypeMacro (albaRelationalDatabaseAbstractConnector, albaObject)
 
void SetRelationalDatabaseInformation (albaRelationalDatabaseInformation info)
 
const albaRelationalDatabaseInformationGetRelationalDatabaseInformation () const
 
void SetQuery (const char *queryString)
 
const char * GetQuery () const
 
virtual void QueryExecute ()=0
 
virtual bool IsFailed () const
 
int GetNumberOfRecords () const
 
int GetNumberOfFields () const
 
WebRowSetStringDataTable GetQueryResultAsStringMatrix () const
 
WebRowSetColumnTypeVector GetColumnsTypeAsStringVector () const
 
WebRowSetColumnNameVector GetColumnsNameAsStringVector () const
 
WebRowSetQueryObjectsTable GetQueryResultAsObjectsMatrix () const
 
- Public Member Functions inherited from albaObject
 albaObject ()
 
virtual ~albaObject ()
 
virtual void Delete ()
 
virtual const char * GetTypeName () const
 
virtual bool IsA (const char *type_name) const
 
virtual bool IsA (const albaTypeID &type_id) const
 
virtual albaObjectNewObjectInstance () const =0
 
virtual const albaTypeIDGetTypeId () const
 
virtual void Print (std::ostream &os, const int indent=0) const
 
 albaObject (const albaObject &c)
 

Protected Attributes

albaResultQueryAbstractHandlerm_ResultQueryHandler
 
- Protected Attributes inherited from albaObject
bool m_HeapFlag
 

Additional Inherited Members

- Static Public Member Functions inherited from albaObject
static const char * GetStaticTypeName ()
 
static bool IsStaticType (const char *type_name)
 
static bool IsStaticType (const albaTypeID &type_id)
 
static const albaTypeIDGetStaticTypeId ()
 
static albaObjectSafeDownCast (albaObject *o)
 

Detailed Description

class name : albaRelationalDatabaseAbstractConnector class that handle all the process of connection, retrieving data executing query ad by albaResultQueryAbstractHandler load them

Definition at line 48 of file albaRelationalDatabaseAbstractConnector.h.

Constructor & Destructor Documentation

◆ albaRelationalDatabaseAbstractConnector()

albaRelationalDatabaseAbstractConnector::albaRelationalDatabaseAbstractConnector ( const char *  query = "")

constructor

◆ ~albaRelationalDatabaseAbstractConnector()

virtual albaRelationalDatabaseAbstractConnector::~albaRelationalDatabaseAbstractConnector ( )
virtual

destructor

Member Function Documentation

◆ albaAbstractTypeMacro()

albaRelationalDatabaseAbstractConnector::albaAbstractTypeMacro ( albaRelationalDatabaseAbstractConnector  ,
albaObject   
)

RTTI macro.

◆ SetRelationalDatabaseInformation()

void albaRelationalDatabaseAbstractConnector::SetRelationalDatabaseInformation ( albaRelationalDatabaseInformation  info)

Set information for connection to database.

◆ GetRelationalDatabaseInformation()

const albaRelationalDatabaseInformation & albaRelationalDatabaseAbstractConnector::GetRelationalDatabaseInformation ( ) const

Get information for connection to database.

◆ SetQuery()

void albaRelationalDatabaseAbstractConnector::SetQuery ( const char *  queryString)

Set the current query that will be used.

◆ GetQuery()

const char * albaRelationalDatabaseAbstractConnector::GetQuery ( ) const

Get the current query that will be used.

◆ QueryExecute()

virtual void albaRelationalDatabaseAbstractConnector::QueryExecute ( )
pure virtual

execute the query

◆ IsFailed()

virtual bool albaRelationalDatabaseAbstractConnector::IsFailed ( ) const
virtual

check the validation of execution

◆ GetNumberOfRecords()

int albaRelationalDatabaseAbstractConnector::GetNumberOfRecords ( ) const

return the number of records in terms of row

◆ GetNumberOfFields()

int albaRelationalDatabaseAbstractConnector::GetNumberOfFields ( ) const

return the number of records in terms of row

◆ GetQueryResultAsStringMatrix()

WebRowSetStringDataTable albaRelationalDatabaseAbstractConnector::GetQueryResultAsStringMatrix ( ) const

retrieve result in form of string matrix, as WebRowSetStringDataTable (typedef std::vector<std::vector<std::string> >)

◆ GetColumnsTypeAsStringVector()

WebRowSetColumnTypeVector albaRelationalDatabaseAbstractConnector::GetColumnsTypeAsStringVector ( ) const

retrieve result in form of string matrix, as WebRowSetColumnTypeVector (typedef std::vector<std::string >)

◆ GetColumnsNameAsStringVector()

WebRowSetColumnNameVector albaRelationalDatabaseAbstractConnector::GetColumnsNameAsStringVector ( ) const

retrieve result in form of string matrix, as WebRowSetColumnNameVector (typedef std::vector<std::string >)

◆ GetQueryResultAsObjectsMatrix()

WebRowSetQueryObjectsTable albaRelationalDatabaseAbstractConnector::GetQueryResultAsObjectsMatrix ( ) const

retrieve result in form of object matrix, as WebRowSetQueryObjectsTable (typedef std::vector<std::vector<albaQueryObject> >)

Member Data Documentation

◆ m_ResultQueryHandler

albaResultQueryAbstractHandler* albaRelationalDatabaseAbstractConnector::m_ResultQueryHandler
protected

Definition at line 98 of file albaRelationalDatabaseAbstractConnector.h.


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