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; }
127 void setAssociatedIndex(
const Index* idx);
136 bool has(
const std::string& propertyName)
const;
173 #endif // __TERRALIB_DATAACCESS_INTERNAL_UNIQUEKEY_H A class that models the description of a dataset.
void add(const te::dt::Property *p)
It adds the property to the list of properties that participates in the unique key.
virtual Property * clone() const =0
It returns a clone of the object.
It models a property definition.
ConstraintType
A ConstraintType can have one of the following types:
It describes an index associated to a DataSetType.
ConstraintType getType() const
It returns the constraint type: UNIQUEKEY.
const std::vector< te::dt::Property * > & getProperties() const
It returns the properties that form the unique key.
It describes a unique key (uk) constraint.
A class that describes a constraint.
Index * m_index
A pointer to an associated index.
std::vector< te::dt::Property * > m_properties
The properties that take part of primary key constraint.
#define TEDATAACCESSEXPORT
You can use this macro in order to export/import classes and functions from this module.
Index * getAssociatedIndex() const
It returns the associated index if one exists.
It describes an index associated to a DataSetType.