26 #ifndef __TERRALIB_DATAACCESS_INTERNAL_FOREIGNKEY_H 27 #define __TERRALIB_DATAACCESS_INTERNAL_FOREIGNKEY_H 38 namespace dt {
class Property; }
73 ForeignKey(
const std::string& name,
unsigned int id = 0);
103 const std::vector<te::dt::Property*>&
getProperties()
const {
return m_properties; }
121 void setProperties(
const std::vector<te::dt::Property*>& properties) { m_properties = properties; }
248 #endif // __TERRALIB_DATAACCESS_INTERNAL_FOREIGNKEY_H std::vector< te::dt::Property * > m_properties
The properties that are part of the foreign key constraint.
FKActionType m_onDelete
The action to be performed when a referenced element value in the referenced DataSetType is being del...
A class that models the description of a dataset.
FKActionType
Type of action performed on the foreign key data.
DataSetType * m_refDt
The referenced DataSetType of this foreign key constraint.
It models a property definition.
void setReferencedProperties(const std::vector< te::dt::Property * > &properties)
It sets the referenced properties (on the referenced DataSetType) of this foreign key constraint...
ConstraintType
A ConstraintType can have one of the following types:
void setOnDeleteAction(FKActionType a)
It sets the action to be performed when a referenced element value in the referenced DataSetType is b...
FKActionType m_onUpdate
The action to be performed when a referenced element value in the referenced DataSetType is being upd...
void add(te::dt::Property *p)
It adds a property to the foreign key constraint.
DataSetType * getReferencedDataSetType() const
It returns the referenced DataSetType of this foreign key constraint.
It models a foreign key constraint for a DataSetType.
void addRefProperty(te::dt::Property *p)
It adds a reference property (on the referenced DataSetType) of this foreign key constraint.
void setProperties(const std::vector< te::dt::Property * > &properties)
It sets the properties that take part of the foreign key constraint.
A class that describes a constraint.
void setOnUpdateAction(FKActionType a)
It sets the action to be performed when a referenced element value in the referenced DataSetType is b...
std::vector< te::dt::Property * > m_refProperties
The referenced properties (on the referenced DataSetType) of this foreign key constraint.
FKActionType getOnUpdateAction() const
It returns the action performed when a referenced element value in the referenced DataSetType is bein...
void setReferencedDataSetType(DataSetType *refDt)
It sets the referenced DataSetType of this foreign key constraint.
#define TEDATAACCESSEXPORT
You can use this macro in order to export/import classes and functions from this module.
const std::vector< te::dt::Property * > & getProperties() const
It returns the properties that take part of the foreign key constraint.
const std::vector< te::dt::Property * > & getReferencedProperties() const
It returns the referenced properties (on the referenced DataSetType) of this foreign key constraint...
ConstraintType getType() const
It returns the constraint type: FOREIGNKEY.
FKActionType getOnDeleteAction() const
It returns the action performed when a referenced element value in the referenced DataSetType is bein...