A class that describes a check constraint.  
 More...
#include <CheckConstraint.h>
A class that describes a check constraint. 
- See also
 - DataSetType, Constraint, PrimaryKey, UniqueKey, ForeignKey 
 
Definition at line 46 of file CheckConstraint.h.
 
◆ CheckConstraint() [1/3]
      
        
          | te::da::CheckConstraint::CheckConstraint  | 
          ( | 
          DataSetType *  | 
          dt = 0,  | 
        
        
           | 
           | 
          unsigned int  | 
          id = 0  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Constructor. 
- Parameters
 - 
  
    | dt | The DataSetType associated to the check constraint.  | 
    | id | The constraint identifier. | 
  
   
- Note
 - The new constraint will belong to the given DataSetType.
 
- Warning
 - The identifier value (id) may be used by data source implementations. So, don't rely on its value! 
 
 
 
◆ CheckConstraint() [2/3]
      
        
          | te::da::CheckConstraint::CheckConstraint  | 
          ( | 
          const std::string &  | 
          name,  | 
        
        
           | 
           | 
          DataSetType *  | 
          dt = 0,  | 
        
        
           | 
           | 
          unsigned int  | 
          id = 0  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Constructor. 
- Parameters
 - 
  
    | name | The check constraint name.  | 
    | parent | The parent DataSetType of this check constraint.  | 
    | id | The constraint identifier. | 
  
   
- Note
 - The new constraint will belong to the given DataSetType.
 
- Warning
 - The identifier value (id) may be used by data source implementations. So, don't rely on its value! 
 
 
 
◆ CheckConstraint() [3/3]
Copy constructor not allowed. 
The new object will not have an associated DataSetType.
- Parameters
 - 
  
    | rhs | Right-hand-side instance.  | 
  
   
 
 
◆ ~CheckConstraint()
  
  
      
        
          | te::da::CheckConstraint::~CheckConstraint  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
◆ clone()
It returns a clone of the object. 
The new object will not have an associated DataSetType.
- Returns
 - A clone of the object. 
 
Implements te::da::Constraint.
 
 
◆ getDataSetType()
  
  
      
        
          | virtual DataSetType * te::da::Constraint::getDataSetType  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inlinevirtualinherited   | 
  
 
 
◆ getExpression()
  
  
      
        
          | const std::string & te::da::CheckConstraint::getExpression  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
It returns the check constraint expression. 
- Returns
 - The check constraint expression. 
 
Definition at line 105 of file CheckConstraint.h.
 
 
◆ getId()
  
  
      
        
          | virtual unsigned int te::da::Constraint::getId  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inlinevirtualinherited   | 
  
 
It returns the constraint identifier. 
- Returns
 - A number that identifies the constraint.
 
- Warning
 - The identifier value (id) may be used by data source implementations. So, don't rely on its value! 
 
Definition at line 103 of file Constraint.h.
 
 
◆ getName()
  
  
      
        
          | virtual const std::string & te::da::Constraint::getName  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inlinevirtualinherited   | 
  
 
It returns the constraint name. 
- Returns
 - The constraint name. 
 
Definition at line 119 of file Constraint.h.
 
 
◆ getType()
◆ operator=()
Assignment operator. 
The new object will not have an assigned DataSetType.
- Parameters
 - 
  
    | rhs | Right-hand-side instance. | 
  
   
- Returns
 - A reference to this. 
 
 
 
◆ setDataSetType()
  
  
      
        
          | virtual void te::da::Constraint::setDataSetType  | 
          ( | 
          DataSetType *  | 
          dt | ) | 
           | 
         
       
   | 
  
inlinevirtualinherited   | 
  
 
It sets the DataSetType associated to the constraint. 
- Parameters
 - 
  
  
 
- Warning
 - Take care when calling this method. If the constraint belongs to a DataSetType, remember to detach it from the DataSetType before calling this method. 
 
Definition at line 143 of file Constraint.h.
 
 
◆ setExpression()
  
  
      
        
          | void te::da::CheckConstraint::setExpression  | 
          ( | 
          const std::string &  | 
          e | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
It sets the check constraint expression. 
- Parameters
 - 
  
    | name | The check constraint expression.  | 
  
   
Definition at line 112 of file CheckConstraint.h.
 
 
◆ setId()
  
  
      
        
          | virtual void te::da::Constraint::setId  | 
          ( | 
          unsigned int  | 
          id | ) | 
           | 
         
       
   | 
  
inlinevirtualinherited   | 
  
 
It sets the constraint identifier. 
- Parameters
 - 
  
    | id | A number that identifies the constraint. | 
  
   
- Warning
 - The identifier value (id) may be used by data source implementations. So, don't rely on its value! 
 
Definition at line 112 of file Constraint.h.
 
 
◆ setName()
  
  
      
        
          | virtual void te::da::Constraint::setName  | 
          ( | 
          const std::string &  | 
          name | ) | 
           | 
         
       
   | 
  
inlinevirtualinherited   | 
  
 
It sets the constraint name. 
- Parameters
 - 
  
  
 
Definition at line 126 of file Constraint.h.
 
 
◆ m_dt
◆ m_expression
  
  
      
        
          | std::string te::da::CheckConstraint::m_expression | 
         
       
   | 
  
private   | 
  
 
 
◆ m_id
  
  
      
        
          | unsigned int te::da::Constraint::m_id | 
         
       
   | 
  
privateinherited   | 
  
 
An identification number for the constraint. 
Definition at line 165 of file Constraint.h.
 
 
◆ m_name
  
  
      
        
          | std::string te::da::Constraint::m_name | 
         
       
   | 
  
privateinherited   | 
  
 
 
The documentation for this class was generated from the following file:
- /home/castejon/castejon_files/develop/terralib5/git_release/src/terralib/dataaccess/dataset/CheckConstraint.h