A class that describes a check constraint. More...
#include <CheckConstraint.h>
Public Member Functions | |
| CheckConstraint (const CheckConstraint &rhs) | |
| Copy constructor not allowed. | |
| CheckConstraint (const std::string &name, DataSetType *dt=0, unsigned int id=0) | |
| Constructor. | |
| CheckConstraint (DataSetType *dt=0, unsigned int id=0) | |
| Constructor. | |
| Constraint * | clone () |
| It returns a clone of the object. | |
| virtual DataSetType * | getDataSetType () const |
| It returns the DataSetType associated to the constraint. | |
| const std::string & | getExpression () const |
| It returns the check constraint expression. | |
| virtual unsigned int | getId () const |
| It returns the constraint identifier. | |
| virtual const std::string & | getName () const |
| It returns the constraint name. | |
| ConstraintType | getType () const |
| It returns the constraint type: CHECK. | |
| CheckConstraint & | operator= (const CheckConstraint &rhs) |
| Assignment operator. | |
| virtual void | setDataSetType (DataSetType *dt) |
| It sets the DataSetType associated to the constraint. | |
| void | setExpression (const std::string &e) |
| It sets the check constraint expression. | |
| virtual void | setId (unsigned int id) |
| It sets the constraint identifier. | |
| virtual void | setName (const std::string &name) |
| It sets the constraint name. | |
| ~CheckConstraint () | |
| Destructor. | |
Private Attributes | |
| DataSetType * | m_dt |
| The associated DataSetType. | |
| std::string | m_expression |
| The check constraint expression. | |
| unsigned int | m_id |
| An identification number for the constraint. | |
| std::string | m_name |
| The constraint name. | |
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. |
Referenced by CheckConstraint(), and operator=().
| 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. |
| 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. |
References CheckConstraint().
|
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.
References te::da::Constraint::Constraint().
|
inlinevirtualinherited |
It returns the DataSetType associated to the constraint.
Definition at line 133 of file Constraint.h.
References m_dt.
|
inline |
It returns the check constraint expression.
Definition at line 105 of file CheckConstraint.h.
References m_expression.
|
inlinevirtualinherited |
It returns the constraint identifier.
Definition at line 103 of file Constraint.h.
References m_id.
|
inlinevirtualinherited |
It returns the constraint name.
Definition at line 119 of file Constraint.h.
References m_name.
|
inlinevirtual |
It returns the constraint type: CHECK.
Implements te::da::Constraint.
Definition at line 119 of file CheckConstraint.h.
References te::da::CHECK.
| CheckConstraint & te::da::CheckConstraint::operator= | ( | const CheckConstraint & | rhs | ) |
Assignment operator.
The new object will not have an assigned DataSetType.
| rhs | Right-hand-side instance. |
References CheckConstraint().
|
inlinevirtualinherited |
It sets the DataSetType associated to the constraint.
| dt | The DataSetType associated to this constraint. |
Definition at line 143 of file Constraint.h.
References m_dt.
|
inline |
It sets the check constraint expression.
| name | The check constraint expression. |
Definition at line 112 of file CheckConstraint.h.
References m_expression.
|
inlinevirtualinherited |
It sets the constraint identifier.
| id | A number that identifies the constraint. |
Definition at line 112 of file Constraint.h.
References m_id.
|
inlinevirtualinherited |
It sets the constraint name.
| name | The constraint name. |
Definition at line 126 of file Constraint.h.
References m_name.
|
privateinherited |
The associated DataSetType.
Definition at line 166 of file Constraint.h.
Referenced by getDataSetType(), and setDataSetType().
|
private |
The check constraint expression.
Definition at line 132 of file CheckConstraint.h.
Referenced by getExpression(), and setExpression().
|
privateinherited |
An identification number for the constraint.
Definition at line 165 of file Constraint.h.
|
privateinherited |
The constraint name.
Definition at line 167 of file Constraint.h.