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.
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!
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!
Copy constructor not allowed.
The new object will not have an associated DataSetType.
- Parameters
-
rhs | Right-hand-side instance. |
te::da::CheckConstraint::~CheckConstraint |
( |
| ) |
|
|
inline |
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.
virtual DataSetType* te::da::Constraint::getDataSetType |
( |
| ) |
const |
|
inlinevirtualinherited |
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.
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.
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.
Assignment operator.
The new object will not have an assigned DataSetType.
- Parameters
-
rhs | Right-hand-side instance. |
- Returns
- A reference to this.
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.
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.
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.
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.
std::string te::da::CheckConstraint::m_expression |
|
private |
The documentation for this class was generated from the following file:
- /home/castejon/castejon_files/develop/terralib5/git_master/src/terralib/dataaccess/dataset/CheckConstraint.h