#include <Constraint.h>
Public Member Functions | |
| virtual Constraint * | clone ()=0 |
| It returns a clone of the object. | |
| Constraint (const Constraint &rhs) | |
| Copy constructor not allowed. | |
| Constraint (const std::string &name, unsigned int id=0) | |
| Constructor. | |
| Constraint (unsigned int id=0) | |
| Constructor. | |
| virtual DataSetType * | getDataSetType () const |
| It returns the DataSetType associated to the constraint. | |
| virtual unsigned int | getId () const |
| It returns the constraint identifier. | |
| virtual const std::string & | getName () const |
| It returns the constraint name. | |
| virtual ConstraintType | getType () const =0 |
| It returns the constraint type. | |
| Constraint & | operator= (const Constraint &rhs) |
| Assignment operator not allowed. | |
| virtual void | setDataSetType (DataSetType *dt) |
| It sets the DataSetType associated to the constraint. | |
| virtual void | setId (unsigned int id) |
| It sets the constraint identifier. | |
| virtual void | setName (const std::string &name) |
| It sets the constraint name. | |
| virtual | ~Constraint () |
| Virtual destructor. | |
Private Attributes | |
| DataSetType * | m_dt |
| The associated DataSetType. | |
| unsigned int | m_id |
| An identification number for the constraint. | |
| std::string | m_name |
| The constraint name. | |
Definition at line 50 of file Constraint.h.
| te::da::Constraint::Constraint | ( | unsigned int | id = 0 | ) |
Constructor.
| id | The constraint identifier. |
Referenced by te::da::CheckConstraint::clone(), clone(), te::da::ForeignKey::clone(), te::da::PrimaryKey::clone(), te::da::UniqueKey::clone(), Constraint(), and operator=().
| te::da::Constraint::Constraint | ( | const std::string & | name, |
| unsigned int | id = 0 ) |
Constructor.
| name | The constraint name. |
| id | The constraint identifier. |
| te::da::Constraint::Constraint | ( | const Constraint & | rhs | ) |
Copy constructor not allowed.
The new object will not have an associated DataSetType.
| rhs | Right-hand-side instance. |
References Constraint().
|
inlinevirtual |
Virtual destructor.
Definition at line 85 of file Constraint.h.
|
pure virtual |
It returns a clone of the object.
The new object will not have an associated DataSetType.
Implemented in te::da::CheckConstraint, te::da::ForeignKey, te::da::PrimaryKey, and te::da::UniqueKey.
References Constraint().
|
inlinevirtual |
It returns the DataSetType associated to the constraint.
Definition at line 133 of file Constraint.h.
References m_dt.
|
inlinevirtual |
It returns the constraint identifier.
Definition at line 103 of file Constraint.h.
References m_id.
|
inlinevirtual |
It returns the constraint name.
Definition at line 119 of file Constraint.h.
References m_name.
|
pure virtual |
It returns the constraint type.
Implemented in te::da::CheckConstraint, te::da::ForeignKey, te::da::PrimaryKey, and te::da::UniqueKey.
| Constraint & te::da::Constraint::operator= | ( | const Constraint & | rhs | ) |
Assignment operator not allowed.
| rhs | Right-hand-side instance. |
References Constraint().
|
inlinevirtual |
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.
|
inlinevirtual |
It sets the constraint identifier.
| id | A number that identifies the constraint. |
Definition at line 112 of file Constraint.h.
References m_id.
|
inlinevirtual |
It sets the constraint name.
| name | The constraint name. |
Definition at line 126 of file Constraint.h.
References m_name.
|
private |
The associated DataSetType.
Definition at line 166 of file Constraint.h.
Referenced by getDataSetType(), and setDataSetType().
|
private |
An identification number for the constraint.
Definition at line 165 of file Constraint.h.
|
private |
The constraint name.
Definition at line 167 of file Constraint.h.