26 #ifndef __TERRALIB_DATAACCESS_INTERNAL_UNIQUEKEY_H
27 #define __TERRALIB_DATAACCESS_INTERNAL_UNIQUEKEY_H
32 #include "../../datatype/Property.h"
106 const std::vector<te::dt::Property*>&
getProperties()
const {
return m_properties; }
136 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 unique key (uk) constraint.
Constraint * clone()
It returns a clone of the object.
UniqueKey(const UniqueKey &rhs)
Copy constructor.
const std::vector< te::dt::Property * > & getProperties() const
It returns the properties that form the unique key.
void replace(const std::string &propName, const te::dt::Property *pp)
UniqueKey(DataSetType *dt=0, unsigned int id=0)
Constructor.
UniqueKey & operator=(const UniqueKey &rhs)
Assignment operator.
void add(const te::dt::Property *p)
It adds the property to the list of properties that participates in the unique key.
void setAssociatedIndex(const Index *idx)
It sets the associated index.
ConstraintType getType() const
It returns the constraint type: UNIQUEKEY.
Index * m_index
A pointer to an associated index.
bool has(const std::string &propertyName) const
It verifies if Property is associated to the unique key.
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.
UniqueKey(const std::string &name, DataSetType *dt=0, unsigned int id=0)
Constructor.
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.