It describes an index associated to a DataSetType. More...
#include <Index.h>
Public Member Functions | |
| void | add (te::dt::Property *p) | 
| It adds the property to the list of properties of the index.  More... | |
| Index * | clone () | 
| It returns a clone of the object.  More... | |
| DataSetType * | getDataSetType () const | 
| It returns the DataSetType associated to the index.  More... | |
| unsigned int | getId () const | 
| It returns the index identifier.  More... | |
| IndexType | getIndexType () const | 
| It gets the index type.  More... | |
| const std::string & | getName () const | 
| It returns the index name.  More... | |
| const std::vector < te::dt::Property * > &  | getProperties () const | 
| It returns the properties that take part of the index.  More... | |
| bool | has (te::dt::Property *p) | 
| It verifies if Property is associated to the index.  More... | |
| Index (DataSetType *parent=0, unsigned int id=0) | |
| Constructor.  More... | |
| Index (const std::string &name, IndexType t=B_TREE_TYPE, DataSetType *dt=0, unsigned int id=0) | |
| Constructor.  More... | |
| Index (const std::string &name, IndexType t, const std::vector< te::dt::Property * > &properties, DataSetType *dt=0, unsigned int id=0) | |
| Constructor.  More... | |
| Index (const Index &rhs) | |
| Copy constructor.  More... | |
| Index & | operator= (const Index &rhs) | 
| Assignment operator.  More... | |
| void | replace (te::dt::Property *p, te::dt::Property *pp) | 
| It changes the reference to property p to pp.  More... | |
| void | setDataSetType (DataSetType *dt) | 
| It sets the DataSetType associated to the index.  More... | |
| void | setId (unsigned int id) | 
| It sets the DataSetType identifier.  More... | |
| void | setIndexType (IndexType t) | 
| It sets the index type.  More... | |
| void | setName (const std::string &name) | 
| It sets the index name.  More... | |
| void | setProperties (const std::vector< te::dt::Property * > &properties) | 
| It sets the properties that take part of the index.  More... | |
| ~Index () | |
| Destructor.  More... | |
Private Attributes | |
| DataSetType * | m_dt | 
| The parent DataSetType.  More... | |
| unsigned int | m_id | 
| An identification number for the index.  More... | |
| std::string | m_name | 
| The index name.  More... | |
| std::vector< te::dt::Property * > | m_properties | 
| The list of properties that form the index.  More... | |
| IndexType | m_type | 
| The index type.  More... | |
It describes an index associated to a DataSetType.
| te::da::Index::Index | ( | DataSetType * | parent = 0,  | 
        
| unsigned int | id = 0  | 
        ||
| ) | 
Constructor.
| dt | The DataSetType associated to this index. | 
| id | The index identifier. | 
Definition at line 31 of file Index.cpp.
References te::da::DataSetType::add(), and m_dt.
| te::da::Index::Index | ( | const std::string & | name, | 
| IndexType | t = B_TREE_TYPE,  | 
        ||
| DataSetType * | dt = 0,  | 
        ||
| unsigned int | id = 0  | 
        ||
| ) | 
Constructor.
| name | The index name. | 
| t | The index type. | 
| dt | The DataSetType associated to this index. | 
| id | The index identifier. | 
Definition at line 40 of file Index.cpp.
References te::da::DataSetType::add(), and m_dt.
| te::da::Index::Index | ( | const std::string & | name, | 
| IndexType | t, | ||
| const std::vector< te::dt::Property * > & | properties, | ||
| DataSetType * | dt = 0,  | 
        ||
| unsigned int | id = 0  | 
        ||
| ) | 
Constructor.
| name | The index name. | 
| t | The index type. | 
| properties | The properties that form the index. | 
| dt | The DataSetType associated to this index. | 
| id | The index identifier. | 
Definition at line 50 of file Index.cpp.
References te::da::DataSetType::add(), and m_dt.
| te::da::Index::Index | ( | const Index & | rhs | ) | 
Copy constructor.
The new object will not have an associated DataSetType.
| rhs | Right-hand-side instance. | 
      
  | 
  inline | 
It adds the property to the list of properties of the index.
| p | The property that will take part of the index. | 
Definition at line 197 of file Index.h.
Referenced by te::graph::DataSourceGraphMetadata::createGraphAttributesTable(), te::graph::DataSourceGraphMetadata::createGraphMetadataTable(), te::graph::DataSourceGraphMetadata::createGraphTableEdgeModel(), te::graph::DataSourceGraphMetadata::createVertexAttrTable(), te::qt::widgets::DirectExchangerDialog::exchangeToDatabase(), te::qt::widgets::IndexWidget::getIndex(), te::pgis::Transactor::getIndex(), te::pgis::Transactor::getIndexes(), te::sqlite::DataSourceCatalogLoader::getSpatialIndexes(), te::qt::widgets::SHP2PostGISDialog::onOkPushButtonClicked(), and te::graph::DataSourceGraphMetadata::saveProperty().
| te::da::Index * te::da::Index::clone | ( | ) | 
      
  | 
  inline | 
It returns the DataSetType associated to the index.
      
  | 
  inline | 
      
  | 
  inline | 
It gets the index type.
Definition at line 169 of file Index.h.
Referenced by te::sqlite::DataSourceTransactor::addIndex(), te::pgis::Transactor::addIndex(), DSInfo::getIndexesKeyInfo(), and te::qt::widgets::IndexWidget::setIndex().
      
  | 
  inline | 
It returns the index name.
Definition at line 155 of file Index.h.
Referenced by te::qt::widgets::ConstraintsIndexesListWidget::addIndex(), te::sqlite::DataSourceTransactor::addIndex(), te::ado::Transactor::addIndex(), te::pgis::Transactor::addIndex(), te::da::DataSetType::DataSetType(), DSInfo::getIndexesKeyInfo(), te::qt::widgets::ConstraintsIndexesListWidget::removeIndex(), and te::qt::widgets::IndexWidget::setIndex().
      
  | 
  inline | 
It returns the properties that take part of the index.
Definition at line 183 of file Index.h.
Referenced by te::qt::widgets::ConstraintsIndexesListWidget::addIndex(), te::sqlite::DataSourceTransactor::addIndex(), te::ado::Transactor::addIndex(), te::pgis::Transactor::addIndex(), te::da::DataSetType::DataSetType(), Utils::getIdxPropertiesNames(), and te::qt::widgets::IndexWidget::setIndex().
| bool te::da::Index::has | ( | te::dt::Property * | p | ) | 
| te::da::Index & te::da::Index::operator= | ( | const Index & | rhs | ) | 
Assignment operator.
The new object will not have an assigned DataSetType.
| rhs | Right-hand-side instance. | 
Definition at line 74 of file Index.cpp.
References m_id, m_name, m_properties, and m_type.
| void te::da::Index::replace | ( | te::dt::Property * | p, | 
| te::dt::Property * | pp | ||
| ) | 
      
  | 
  inline | 
It sets the DataSetType associated to the index.
| dt | The DataSetType to which this index belongs. | 
Definition at line 214 of file Index.h.
Referenced by te::da::DataSetType::add(), and te::da::DataSetType::DataSetType().
      
  | 
  inline | 
It sets the DataSetType identifier.
| id | A unique number that identifies the DataSetType in its DataSource. | 
      
  | 
  inline | 
It sets the index type.
| t | The index type. | 
Definition at line 176 of file Index.h.
Referenced by te::qt::widgets::DirectExchangerDialog::exchangeToDatabase(), te::qt::widgets::IndexWidget::getIndex(), and te::qt::widgets::SHP2PostGISDialog::onOkPushButtonClicked().
      
  | 
  inline | 
It sets the index name.
| name | The index name. | 
Definition at line 162 of file Index.h.
Referenced by te::qt::widgets::DirectExchangerDialog::exchangeToDatabase(), te::qt::widgets::IndexWidget::getIndex(), te::ado::Transactor::getIndexes(), and te::qt::widgets::SHP2PostGISDialog::onOkPushButtonClicked().
      
  | 
  inline | 
It sets the properties that take part of the index.
| properties | The properties that take part of the index. | 
Definition at line 190 of file Index.h.
Referenced by te::da::DataSetType::DataSetType(), and te::ado::Transactor::getIndexes().
      
  | 
  private | 
      
  | 
  private | 
An identification number for the index.
Definition at line 246 of file Index.h.
Referenced by operator=().
      
  | 
  private | 
      
  | 
  private | 
The list of properties that form the index.
Definition at line 250 of file Index.h.
Referenced by operator=().
      
  | 
  private |