26 #ifndef __TERRALIB_DATAACCESS_INTERNAL_UNIQUEKEY_H 27 #define __TERRALIB_DATAACCESS_INTERNAL_UNIQUEKEY_H 39 namespace dt {
class Property; }
110 const std::vector<te::dt::Property*>&
getProperties()
const {
return m_properties; }
117 void setProperties(
const std::vector<te::dt::Property*>& properties) { m_properties = properties; }
184 #endif // __TERRALIB_DATAACCESS_INTERNAL_UNIQUEKEY_H void add(te::dt::Property *p)
It adds the property to the list of properties that participates in the unique key.
Index * getAssociatedIndex() const
It returns the associated index if one exists.
void setProperties(const std::vector< te::dt::Property * > &properties)
It sets the properties that form the unique key.
A class that models the description of a dataset.
ConstraintType getType() const
It returns the constraint type: UNIQUEKEY.
It models a property definition.
ConstraintType
A ConstraintType can have one of the following types:
It describes a unique key (uk) constraint.
void setAssociatedIndex(Index *idx)
It sets the associated index.
A class that describes a constraint.
const std::vector< te::dt::Property * > & getProperties() const
It returns the properties that form the unique key.
Index * m_index
A pointer to an associated index.
std::vector< te::dt::Property * > m_properties
The properties that are part of the unique key constraint.
#define TEDATAACCESSEXPORT
You can use this macro in order to export/import classes and functions from this module.
It describes an index associated to a DataSetType.