|
/***********************************************************************
* Module: TSgADODataSet.cpp
* Author: 000667
* Modified: Montag, 4. Oktober 2004 13:29:16
* Purpose: Implementation of the class TSgADODataSet
* Comment: TADODataSet as Singleton class
***********************************************************************/
#include "stdafx.h"
#include "TSgADODataSet.h"
AdoNS::_RecordsetPtr TSgADODataSet::_db_dataset("ADODB.RecordSet");
////////////////////////////////////////////////////////////////////////
// Name: TSgADODataSet::TSgADODataSet()
// Purpose: Implementation of TSgADODataSet::TSgADODataSet()
// Return:
////////////////////////////////////////////////////////////////////////
TSgADODataSet::TSgADODataSet()
{
}
////////////////////////////////////////////////////////////////////////
// Name: TSgADODataSet::TSgADODataSet(const TSgADODataSet& oldTSgADODataSet)
// Purpose: Implementation of TSgADODataSet::TSgADODataSet()
// Parameters:
// - oldTSgADODataSet
// Return:
////////////////////////////////////////////////////////////////////////
TSgADODataSet::TSgADODataSet(const TSgADODataSet& oldTSgADODataSet)
{
}
////////////////////////////////////////////////////////////////////////
// Name: TSgADODataSet::operator=(TSgADODataSet& tdbquery)
// Purpose: Implementation of TSgADODataSet::operator=()
// Parameters:
// - tdbquery
// Return: void
////////////////////////////////////////////////////////////////////////
void TSgADODataSet::operator=(TSgADODataSet& tdbquery)
{
// TODO : implement
}
////////////////////////////////////////////////////////////////////////
// Name: TSgADODataSet::getInstance()
// Purpose: Implementation of TSgADODataSet::getInstance()
// Return: TADODataSet*
////////////////////////////////////////////////////////////////////////
AdoNS::_RecordsetPtr TSgADODataSet::getInstance(void)
{
if (_db_dataset == 0){
//_db_dataset->Open(vtMissing,(IDispatch*)(TSgADOConnection::getInstance()),AdoNS::adOpenUnspecified,AdoNS::adLockUnspecified,-1);
}
return _db_dataset;
}
////////////////////////////////////////////////////////////////////////
// Name: TSgADODataSet::deleteInstance()
// Purpose: Implementation of TSgADODataSet::deleteInstance()
// Return: void
////////////////////////////////////////////////////////////////////////
void TSgADODataSet::deleteInstance(void)
{
if (_db_dataset != 0)
delete _db_dataset;
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.
A list of licenses authors might use can be found here
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.