26 #ifndef __TERRALIB_DATAACCESS_INTERNAL_PRIMARYKEY_H
27 #define __TERRALIB_DATAACCESS_INTERNAL_PRIMARYKEY_H
32 #include "../../datatype/Property.h"
105 const std::vector<te::dt::Property*>&
getProperties()
const {
return m_properties; }
135 bool has(
const std::string& propertyName)
const;
A class that describes a constraint.
A class that models the description of a dataset.
It describes an index associated to a DataSetType.
It describes a primary key (pk) constraint.
PrimaryKey(DataSetType *dt=0, unsigned int id=0)
Constructor.
Index * getAssociatedIndex() const
It returns the associated index if one exists.
std::vector< te::dt::Property * > m_properties
The properties that take part of primary key constraint.
Index * m_index
A pointer to an associated index.
void replace(const std::string &propName, const te::dt::Property *pp)
It changes a reference to property p to pp.
bool has(const std::string &propertyName) const
It verifies if Property is associated to the primary key.
PrimaryKey & operator=(const PrimaryKey &rhs)
Assignment operator.
ConstraintType getType() const
It returns the constraint type: PRIMARYKEY.
PrimaryKey(const PrimaryKey &rhs)
Copy constructor.
PrimaryKey(const std::string &name, DataSetType *dt=0, unsigned int id=0)
Constructor.
void add(const te::dt::Property *p)
It adds a property to the list of properties of the primary key.
const std::vector< te::dt::Property * > & getProperties() const
It returns the properties that take part of the primary key.
Constraint * clone()
It returns a clone of the object.
void setAssociatedIndex(const Index *idx)
It sets the associated index.
It models a property definition.
virtual Property * clone() const =0
It returns a clone of the object.
ConstraintType
A ConstraintType can have one of the following types:
An implementation of R-tree data structure for main memory.
#define TEDATAACCESSEXPORT
You can use this macro in order to export/import classes and functions from this module.