A class that describes a check constraint. More...
#include <CheckConstraint.h>
  
 Public Member Functions | |
| CheckConstraint (DataSetType *dt=0, unsigned int id=0) | |
| Constructor.  More... | |
| CheckConstraint (const std::string &name, DataSetType *dt=0, unsigned int id=0) | |
| Constructor.  More... | |
| CheckConstraint (const CheckConstraint &rhs) | |
| Copy constructor not allowed.  More... | |
| Constraint * | clone () | 
| It returns a clone of the object.  More... | |
| virtual DataSetType * | getDataSetType () const | 
| It returns the DataSetType associated to the constraint.  More... | |
| const std::string & | getExpression () const | 
| It returns the check constraint expression.  More... | |
| virtual unsigned int | getId () const | 
| It returns the constraint identifier.  More... | |
| virtual const std::string & | getName () const | 
| It returns the constraint name.  More... | |
| ConstraintType | getType () const | 
| It returns the constraint type: CHECK.  More... | |
| CheckConstraint & | operator= (const CheckConstraint &rhs) | 
| Assignment operator.  More... | |
| virtual void | setDataSetType (DataSetType *dt) | 
| It sets the DataSetType associated to the constraint.  More... | |
| void | setExpression (const std::string &e) | 
| It sets the check constraint expression.  More... | |
| virtual void | setId (unsigned int id) | 
| It sets the constraint identifier.  More... | |
| virtual void | setName (const std::string &name) | 
| It sets the constraint name.  More... | |
| ~CheckConstraint () | |
| Destructor.  More... | |
Private Attributes | |
| std::string | m_expression | 
| The check constraint expression.  More... | |
A class that describes a check constraint.
Definition at line 46 of file CheckConstraint.h.
| te::da::CheckConstraint::CheckConstraint | ( | DataSetType * | dt = 0,  | 
        
| unsigned int | id = 0  | 
        ||
| ) | 
Constructor.
| dt | The DataSetType associated to the check constraint. | 
| id | The constraint identifier. | 
Definition at line 31 of file CheckConstraint.cpp.
References te::da::DataSetType::add().
| te::da::CheckConstraint::CheckConstraint | ( | const std::string & | name, | 
| DataSetType * | dt = 0,  | 
        ||
| unsigned int | id = 0  | 
        ||
| ) | 
Constructor.
| name | The check constraint name. | 
| parent | The parent DataSetType of this check constraint. | 
| id | The constraint identifier. | 
Definition at line 38 of file CheckConstraint.cpp.
References te::da::DataSetType::add().
| te::da::CheckConstraint::CheckConstraint | ( | const CheckConstraint & | rhs | ) | 
Copy constructor not allowed.
The new object will not have an associated DataSetType.
| rhs | Right-hand-side instance. | 
Definition at line 47 of file CheckConstraint.cpp.
      
  | 
  inline | 
Destructor.
Definition at line 87 of file CheckConstraint.h.
      
  | 
  virtual | 
It returns a clone of the object.
The new object will not have an associated DataSetType.
Implements te::da::Constraint.
Definition at line 65 of file CheckConstraint.cpp.
      
  | 
  inlinevirtualinherited | 
It returns the DataSetType associated to the constraint.
Definition at line 133 of file Constraint.h.
Referenced by te::da::DataSourceCatalog::dropDependentFKs(), and te::da::DataSetType::remove().
      
  | 
  inline | 
It returns the check constraint expression.
Definition at line 105 of file CheckConstraint.h.
Referenced by te::pgis::Transactor::addCheckConstraint(), and DSInfo::getCheckConstraintInfo().
      
  | 
  inlinevirtualinherited | 
It returns the constraint identifier.
Definition at line 103 of file Constraint.h.
      
  | 
  inlinevirtualinherited | 
It returns the constraint name.
Definition at line 119 of file Constraint.h.
Referenced by te::pgis::Transactor::addCheckConstraint(), te::qt::widgets::ConstraintsIndexesListWidget::addConstraint(), te::pgis::Transactor::addForeignKey(), te::pgis::Transactor::addPrimaryKey(), te::sqlite::DataSourceTransactor::addUniqueKey(), te::pgis::Transactor::addUniqueKey(), te::pgis::Transactor::createDataSet(), te::da::DataSetType::DataSetType(), te::da::DataSetTypeConverter::DataSetTypeConverter(), DSInfo::getCheckConstraintInfo(), te::pgis::Transactor::getConstraints(), te::attributefill::RasterToVector::getDataSetType(), DSInfo::getForeignKeyInfo(), te::sqlite::DataSourceCatalogLoader::getIndex(), te::pgis::Transactor::getIndexes(), te::pgis::Transactor::getPrimaryKey(), DSInfo::getPrimaryKeyInfo(), te::qt::widgets::TableLinkDialog::getProperties(), te::pgis::Transactor::getUniqueKey(), DSInfo::getUniqueKeyInfo(), te::qt::widgets::ConstraintsIndexesListWidget::onEditToolButtonClicked(), te::stmem::Transactor::primaryKeyExists(), te::qt::widgets::ConstraintsIndexesListWidget::removePrimaryKey(), te::qt::widgets::ConstraintsIndexesListWidget::removeUniqueKey(), te::qt::widgets::PrimaryKeyConstraintWidget::setConstraint(), and te::qt::widgets::UniqueKeyConstraintWidget::setConstraint().
      
  | 
  inlinevirtual | 
It returns the constraint type: CHECK.
Implements te::da::Constraint.
Definition at line 119 of file CheckConstraint.h.
References te::da::CHECK.
| te::da::CheckConstraint & te::da::CheckConstraint::operator= | ( | const CheckConstraint & | rhs | ) | 
Assignment operator.
The new object will not have an assigned DataSetType.
| rhs | Right-hand-side instance. | 
Definition at line 53 of file CheckConstraint.cpp.
References m_expression, and te::da::Constraint::operator=().
      
  | 
  inlinevirtualinherited | 
It sets the DataSetType associated to the constraint.
| dt | The DataSetType associated to this constraint. | 
Definition at line 143 of file Constraint.h.
Referenced by te::da::DataSetType::add(), te::da::DataSetType::DataSetType(), and te::da::DataSetType::setPrimaryKey().
      
  | 
  inline | 
It sets the check constraint expression.
| name | The check constraint expression. | 
Definition at line 112 of file CheckConstraint.h.
Referenced by te::pgis::Transactor::getCheckConstraint(), te::ado::Transactor::getCheckConstraints(), and te::pgis::Transactor::getConstraints().
      
  | 
  inlinevirtualinherited | 
It sets the constraint identifier.
| id | A number that identifies the constraint. | 
Definition at line 112 of file Constraint.h.
Referenced by te::pgis::Transactor::getCheckConstraint(), and te::pgis::Transactor::getConstraints().
      
  | 
  inlinevirtualinherited | 
It sets the constraint name.
| name | The constraint name. | 
Definition at line 126 of file Constraint.h.
Referenced by te::pgis::Transactor::addPrimaryKey(), te::qt::widgets::DataSetOptionsWizardPage::applyChanges(), te::qt::plugins::terralib4::TL4ConverterWizard::commit(), te::sqlite::DataSourceTransactor::createDataSet(), te::qt::widgets::DirectExchangerDialog::exchangeToDatabase(), te::qt::widgets::PrimaryKeyConstraintWidget::getConstraint(), te::qt::widgets::UniqueKeyConstraintWidget::getConstraint(), te::attributefill::RasterToVector::getDataSetType(), and te::qt::widgets::DataSetOptionsWizardPage::set().
      
  | 
  private | 
The check constraint expression.
Definition at line 132 of file CheckConstraint.h.
Referenced by operator=().