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 
FKActionType
Type of action performed on the foreign key data. 
 
std::vector< te::dt::Property * > m_refProperties
The referenced properties (on the referenced DataSetType) of this foreign key constraint. 
 
DataSetType * m_refDt
The referenced DataSetType of this foreign key constraint. 
 
ConstraintType
A ConstraintType can have one of the following types: 
 
A class that describes a constraint. 
 
void setReferencedProperties(const std::vector< te::dt::Property * > &properties)
It sets the referenced properties (on the referenced DataSetType) of this foreign key constraint...
 
void setOnUpdateAction(FKActionType a)
It sets the action to be performed when a referenced element value in the referenced DataSetType is b...
 
It models a foreign key constraint for a DataSetType. 
 
FKActionType getOnDeleteAction() const 
It returns the action performed when a referenced element value in the referenced DataSetType is bein...
 
#define TEDATAACCESSEXPORT
You can use this macro in order to export/import classes and functions from this module. 
 
std::vector< te::dt::Property * > m_properties
The properties that are part of the foreign key constraint. 
 
ConstraintType getType() const 
It returns the constraint type: FOREIGNKEY. 
 
FKActionType m_onDelete
The action to be performed when a referenced element value in the referenced DataSetType is being del...
 
FKActionType m_onUpdate
The action to be performed when a referenced element value in the referenced DataSetType is being upd...
 
FKActionType getOnUpdateAction() const 
It returns the action performed when a referenced element value in the referenced DataSetType is bein...
 
const std::vector< te::dt::Property * > & getProperties() const 
It returns the properties that take part of the foreign key constraint. 
 
A class that models the description of a dataset. 
 
void add(te::dt::Property *p)
It adds a property to the foreign key constraint. 
 
It models a property definition. 
 
void setReferencedDataSetType(DataSetType *refDt)
It sets the referenced DataSetType of this foreign key constraint. 
 
void addRefProperty(te::dt::Property *p)
It adds a reference property (on the referenced DataSetType) of this 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...
 
void setOnDeleteAction(FKActionType a)
It sets the action to be performed when a referenced element value in the referenced DataSetType is b...
 
DataSetType * getReferencedDataSetType() const 
It returns 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.