Go to the documentation of this file.
   26 #ifndef __TERRALIB_DATAACCESS_INTERNAL_FOREIGNKEY_H 
   27 #define __TERRALIB_DATAACCESS_INTERNAL_FOREIGNKEY_H 
   31 #include "../../datatype/Property.h" 
   71         ForeignKey(
const std::string& name, 
unsigned int id = 0);
 
  101         const std::vector<te::dt::Property*>& 
getProperties()
 const { 
return m_properties; }
 
  177         bool has(
const std::string& propertyName);
 
  228 #endif  // __TERRALIB_DATAACCESS_INTERNAL_FOREIGNKEY_H 
  
 
FKActionType m_onUpdate
The action to be performed when a referenced element value in the referenced DataSetType is being upd...
 
bool has(const std::string &propertyName)
It verifies if Property takes part of the foreign key.
 
ConstraintType getType() const
It returns the constraint type: FOREIGNKEY.
 
DataSetType * m_refDt
The referenced DataSetType of this foreign key constraint.
 
FKActionType
Type of action performed on the foreign key data.
 
void add(const te::dt::Property *p)
It adds a property to the foreign key constraint.
 
void addRefProperty(const 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 setOnUpdateAction(FKActionType a)
It sets the action to be performed when a referenced element value in the referenced DataSetType is b...
 
A class that describes a constraint.
 
FKActionType m_onDelete
The action to be performed when a referenced element value in the referenced DataSetType is being del...
 
ForeignKey & operator=(const ForeignKey &rhs)
Assignment operator.
 
FKActionType getOnUpdateAction() const
It returns the action performed when a referenced element value in the referenced DataSetType is bein...
 
std::vector< te::dt::Property * > m_properties
The properties that are part of the 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.
 
DataSetType * getReferencedDataSetType() const
It returns the referenced DataSetType of this foreign key constraint.
 
std::vector< te::dt::Property * > m_refProperties
The referenced properties (on the referenced DataSetType) of this foreign key constraint.
 
Constraint * clone()
It returns a clone of the object.
 
It models a foreign key constraint for a DataSetType.
 
ForeignKey(const std::string &name, unsigned int id=0)
Constructor.
 
ForeignKey(const ForeignKey &rhs)
Copy constructor not allowed.
 
FKActionType getOnDeleteAction() const
It returns the action performed when a referenced element value in the referenced DataSetType is bein...
 
void setOnDeleteAction(FKActionType a)
It sets the action to be performed when a referenced element value in the referenced DataSetType is b...
 
void setReferencedDataSetType(DataSetType *refDt)
It sets the referenced DataSetType of this foreign key constraint.
 
It models a property definition.
 
ConstraintType
A ConstraintType can have one of the following types:
 
A class that models the description of a dataset.
 
virtual Property * clone() const =0
It returns a clone of the object.
 
bool isReferenced(const std::string &propertyName)
It verifies if Property is referenced by the foreign key.
 
ForeignKey(unsigned int id=0)
Constructor.
 
void replace(const std::string &propName, const te::dt::Property *pp)
It changes a reference to property p to pp.