26 #ifndef __TERRALIB_DATAACCESS_INTERNAL_PRIMARYKEY_H
27 #define __TERRALIB_DATAACCESS_INTERNAL_PRIMARYKEY_H
38 namespace dt {
class Property; }
109 const std::vector<te::dt::Property*>&
getProperties()
const {
return m_properties; }
116 void setProperties(
const std::vector<te::dt::Property*>& properties) { m_properties = properties; }
183 #endif // __TERRALIB_DATAACCESS_INTERNAL_PRIMARYKEY_H
void add(te::dt::Property *p)
It adds a property to the list of properties of the primary key.
std::vector< te::dt::Property * > m_properties
The properties that take part of primary key constraint.
A class that models the description of a dataset.
It models a property definition.
Index * m_index
A pointer to an associated index.
const std::vector< te::dt::Property * > & getProperties() const
It returns the properties that take part of the primary key.
ConstraintType
A ConstraintType can have one of the following types:
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 primary key.
ConstraintType getType() const
It returns the constraint type: PRIMARYKEY.
A class that describes a constraint.
void setAssociatedIndex(Index *idx)
It sets the associated index.
It describes a primary key (pk) 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.