The Insert object can add the return of a select object. More...
#include <Insert.h>
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... | |
| Query * | clone () const |
| It creates a new copy of this Insert. More... | |
| DataSetName * | getDataSetName () const |
| It returns the associated DataSetName. More... | |
| Fields * | getFields () const |
| It returns the associated fields. More... | |
| Select * | getSelect () 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... | |
| Insert & | operator= (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::unique_ptr< DataSetName > | m_dsName |
| The associated DataSetName. More... | |
| std::unique_ptr< Fields > | m_fields |
| The associated Fields. More... | |
| std::unique_ptr< Select > | m_select |
| The associated Select. More... | |
The Insert object can add the return of a select object.
|
inherited |
Definition at line 58 of file BaseVisitable.h.
|
inherited |
Definition at line 57 of file BaseVisitable.h.
| te::da::Insert::Insert | ( | DataSetName * | d, |
| Fields * | f, | ||
| Select * | s | ||
| ) |
| te::da::Insert::Insert | ( | const DataSetName & | d, |
| const Fields & | f, | ||
| const Select & | s | ||
| ) |
Constructor.
| d | The name of the dataset to insert data. |
| f | Vector with the fields to set data by select. |
| s | The real SubSelect to be associated to this object. |
Definition at line 36 of file Insert.cpp.
References m_fields.
| te::da::Insert::Insert | ( | DataSetName * | d, |
| Select * | s | ||
| ) |
Constructor.
| d | The name of the dataset to insert data. |
| s | The real SubSelect to be associated to this object. |
Definition at line 44 of file Insert.cpp.
| te::da::Insert::Insert | ( | const DataSetName & | d, |
| const Select & | s | ||
| ) |
Constructor.
| d | The name of the dataset to insert data. |
| s | The real SubSelect to be associated to this object. |
Definition at line 50 of file Insert.cpp.
| te::da::Insert::Insert | ( | const Insert & | rhs | ) |
|
default |
Destructor.
Referenced by Insert().
|
pure virtualinherited |
It call the visit method from the guest object.
| guest | The guest or visitor. |
|
virtual |
It creates a new copy of this Insert.
Implements te::da::Query.
Definition at line 78 of file Insert.cpp.
References Insert().
| te::da::DataSetName * te::da::Insert::getDataSetName | ( | ) | const |
It returns the associated DataSetName.
Definition at line 83 of file Insert.cpp.
References m_dsName.
Referenced by te::da::SQLVisitor::visit().
| te::da::Fields * te::da::Insert::getFields | ( | ) | const |
It returns the associated fields.
Definition at line 93 of file Insert.cpp.
References m_fields.
Referenced by te::da::SQLVisitor::visit().
| te::da::Select * te::da::Insert::getSelect | ( | ) | const |
It returns the associated select.
Definition at line 103 of file Insert.cpp.
References m_select.
Referenced by te::da::SQLVisitor::visit().
| te::da::Insert & te::da::Insert::operator= | ( | const Insert & | rhs | ) |
Assignment operator.
Definition at line 66 of file Insert.cpp.
| void te::da::Insert::setDataSetName | ( | DataSetName * | d | ) |
It sets the DataSetName associated to this object.
| d | The Table to be associated to the Insert object. |
Definition at line 88 of file Insert.cpp.
References m_dsName.
| void te::da::Insert::setFields | ( | Fields * | f | ) |
It sets the Fields associated to this object.
| f | Fields to be associated to the Insert object. |
Definition at line 98 of file Insert.cpp.
References m_fields.
| void te::da::Insert::setSelect | ( | Select * | s | ) |
|
private |
The associated DataSetName.
Definition at line 156 of file Insert.h.
Referenced by getDataSetName(), Insert(), operator=(), and setDataSetName().
|
private |
The associated Fields.
Definition at line 157 of file Insert.h.
Referenced by getFields(), Insert(), operator=(), and setFields().
|
private |
The associated Select.
Definition at line 158 of file Insert.h.
Referenced by getSelect(), Insert(), operator=(), and setSelect().