version 1.1.2.17, 2004/11/02 16:18:46
|
version 1.1.2.18, 2004/11/10 13:57:53
|
|
|
:SelectStatement() | :SelectStatement() |
{ | { |
_rep = new CQLSelectStatementRep(); | _rep = new CQLSelectStatementRep(); |
|
|
|
// Set the _rep into the base class also |
|
SelectStatement::_rep = _rep; |
} | } |
| |
CQLSelectStatement::CQLSelectStatement(String& inQlang, String& inQuery, QueryContext& inCtx) | CQLSelectStatement::CQLSelectStatement(String& inQlang, String& inQuery, QueryContext& inCtx) |
:SelectStatement() | :SelectStatement() |
{ | { |
_rep = new CQLSelectStatementRep(inQlang,inQuery,inCtx); | _rep = new CQLSelectStatementRep(inQlang,inQuery,inCtx); |
|
|
|
// Set the _rep into the base class also |
|
SelectStatement::_rep = _rep; |
} | } |
| |
CQLSelectStatement::CQLSelectStatement(const CQLSelectStatement& statement) | CQLSelectStatement::CQLSelectStatement(const CQLSelectStatement& statement) |
:SelectStatement() | :SelectStatement() |
{ | { |
_rep = new CQLSelectStatementRep(*statement._rep); | _rep = new CQLSelectStatementRep(*statement._rep); |
|
|
|
// Set the _rep into the base class also |
|
SelectStatement::_rep = _rep; |
} | } |
| |
CQLSelectStatement::~CQLSelectStatement() | CQLSelectStatement::~CQLSelectStatement() |
{ | { |
if(_rep) | if(_rep) |
delete _rep; | delete _rep; |
|
|
|
// Note - no need to delete the rep in the base class |
} | } |
| |
CQLSelectStatement& CQLSelectStatement::operator=(const CQLSelectStatement& rhs) | CQLSelectStatement& CQLSelectStatement::operator=(const CQLSelectStatement& rhs) |
|
|
{ | { |
if(_rep) delete _rep; | if(_rep) delete _rep; |
_rep = new CQLSelectStatementRep(*rhs._rep); | _rep = new CQLSelectStatementRep(*rhs._rep); |
|
|
|
// Set the _rep into the base class also |
|
SelectStatement::_rep = _rep; |
} | } |
| |
return *this; | return *this; |