| TerraLib 4.1

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files
- Examples

- Class List
- Class Index
- Class Hierarchy
- Class Members

Public Member Functions
TeDatabaseIndex Class Reference

An abstract database index class. More...

`#include <TeDatabaseIndex.h>`

List of all members.

## Public Member Functions

| TeDatabaseIndex ()
| Empty constructor.
virtual | ~TeDatabaseIndex ()
| Destructor.
Members
Methods to access class private members
void | setIndexName (const std::string &name)
| Set the name of the index.
std::string | getIndexName ()
| Return the name of the index.
void | setColumns (const std::vector< std::string > &columns)
| Set the attributes vector.
std::vector< std::string > | getColumns ()
| Return the attributes vector.
void | setIsPrimaryKey (bool isPk)
| Set the primary key boolean.
bool | isPrimaryKey ()
| return the primary key boolean

## Detailed Description

An abstract database index class.

Instances of this classes represent a database index. It includes the index name, a string vector of attributes names and a boolean that says if is a primary key or not. It should be used when is necessary work with database indexes in TerraLib applications.

## Constructor & Destructor Documentation

TeDatabaseIndex::TeDatabaseIndex | ( |  | ) |

Empty constructor.

TeDatabaseIndex::~TeDatabaseIndex | ( |  | ) | `[virtual]`

Destructor.

## Member Function Documentation

std::vector< std::string > TeDatabaseIndex::getColumns | ( |  | ) |

Return the attributes vector.

std::string TeDatabaseIndex::getIndexName | ( |  | ) |

Return the name of the index.

bool TeDatabaseIndex::isPrimaryKey | ( |  | ) |

return the primary key boolean

void TeDatabaseIndex::setColumns | ( | const std::vector< std::string > & | columns | ) |

Set the attributes vector.

void TeDatabaseIndex::setIndexName | ( | const std::string & | name | ) |

Set the name of the index.

void TeDatabaseIndex::setIsPrimaryKey | ( | bool | isPk | ) |

Set the primary key boolean.

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

- E:/Projetos_Primeiro_Semestre_2012/TerraView/terralib/src/terralib/kernel/TeDatabaseIndex.h
- E:/Projetos_Primeiro_Semestre_2012/TerraView/terralib/src/terralib/kernel/TeDatabaseIndex.cpp

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines