te::da::Insert Class Referenceabstract

The Insert object can add the return of a select object. More...

#include <Insert.h>

Inheritance diagram for te::da::Insert:
te::da::Query te::common::BaseVisitable< QueryVisitor >

Public Types

typedef void ReturnType
 
typedef QueryVisitor VisitorType
 

Public Member Functions

virtual ReturnType accept (VisitorType &guest) const =0
 It call the visit method from the guest object. More...
 
Queryclone () const
 It creates a new copy of this Insert. More...
 
DataSetNamegetDataSetName () const
 It returns the associated DataSetName. More...
 
FieldsgetFields () const
 It returns the associated fields. More...
 
SelectgetSelect () const
 It returns the associated select. More...
 
TE_DEFINE_VISITABLE Insert (DataSetName *d, Fields *f, Select *s)
 Constructor. More...
 
 Insert (const DataSetName &d, const Fields &f, const Select &s)
 Constructor. More...
 
 Insert (DataSetName *d, Select *s)
 Constructor. More...
 
 Insert (const DataSetName &d, const Select &s)
 Constructor. More...
 
 Insert (const Insert &rhs)
 Copy constructor. More...
 
Insertoperator= (const Insert &rhs)
 
void setDataSetName (DataSetName *d)
 It sets the DataSetName associated to this object. More...
 
void setFields (Fields *f)
 It sets the Fields associated to this object. More...
 
void setSelect (Select *s)
 It sets the select associated to this object. More...
 
 ~Insert ()
 Destructor. More...
 

Private Attributes

std::auto_ptr< DataSetNamem_dsName
 The associated DataSetName. More...
 
std::auto_ptr< Fieldsm_fields
 The associated Fields. More...
 
std::auto_ptr< Selectm_select
 The associated Select. More...
 

Detailed Description

The Insert object can add the return of a select object.

See also
Select, Field, Fields, DataSet, DataSetName

Definition at line 50 of file Insert.h.

Member Typedef Documentation

typedef void te::common::BaseVisitable< QueryVisitor , void >::ReturnType
inherited

Definition at line 58 of file BaseVisitable.h.

Definition at line 57 of file BaseVisitable.h.

Constructor & Destructor Documentation

TE_DEFINE_VISITABLE te::da::Insert::Insert ( DataSetName d,
Fields f,
Select s 
)

Constructor.

Parameters
dThe name of the dataset to insert data.
fVector with the fields to set data by select.
sThe real SubSelect to be associated to this object.
Note
The Insert will take the ownership of the Select.
te::da::Insert::Insert ( const DataSetName d,
const Fields f,
const Select s 
)

Constructor.

Parameters
dThe name of the dataset to insert data.
fVector with the fields to set data by select.
sThe real SubSelect to be associated to this object.
te::da::Insert::Insert ( DataSetName d,
Select s 
)

Constructor.

Parameters
dThe name of the dataset to insert data.
sThe real SubSelect to be associated to this object.
Note
The Insert will take the ownership of the Select.
te::da::Insert::Insert ( const DataSetName d,
const Select s 
)

Constructor.

Parameters
dThe name of the dataset to insert data.
sThe real SubSelect to be associated to this object.
te::da::Insert::Insert ( const Insert rhs)

Copy constructor.

te::da::Insert::~Insert ( )

Destructor.

Member Function Documentation

virtual ReturnType te::common::BaseVisitable< QueryVisitor , void >::accept ( VisitorType guest) const
pure virtualinherited

It call the visit method from the guest object.

Parameters
guestThe guest or visitor.
Returns
Any valid value define by the template type R.
Query* te::da::Insert::clone ( ) const
virtual

It creates a new copy of this Insert.

Implements te::da::Query.

DataSetName* te::da::Insert::getDataSetName ( ) const

It returns the associated DataSetName.

Returns
The associated DataSetName.
Fields* te::da::Insert::getFields ( ) const

It returns the associated fields.

Returns
The associated fields.
Select* te::da::Insert::getSelect ( ) const

It returns the associated select.

Returns
The associated select.
Insert& te::da::Insert::operator= ( const Insert rhs)

Assignment operator.

void te::da::Insert::setDataSetName ( DataSetName d)

It sets the DataSetName associated to this object.

Parameters
dThe Table to be associated to the Insert object.
Note
The Insert will take the ownership of the FromItem.
void te::da::Insert::setFields ( Fields f)

It sets the Fields associated to this object.

Parameters
fFields to be associated to the Insert object.
Note
The Insert will take the ownership of the Fields.
void te::da::Insert::setSelect ( Select s)

It sets the select associated to this object.

Parameters
sThe Select to be associated to the Insert object.
Note
The Insert will take the ownership of the Select.

Member Data Documentation

std::auto_ptr<DataSetName> te::da::Insert::m_dsName
private

The associated DataSetName.

Definition at line 156 of file Insert.h.

std::auto_ptr<Fields> te::da::Insert::m_fields
private

The associated Fields.

Definition at line 157 of file Insert.h.

std::auto_ptr<Select> te::da::Insert::m_select
private

The associated Select.

Definition at line 158 of file Insert.h.


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