A uniqueness constraint. More...
#include <sqludr.h>
Public Member Functions | |
| UniqueConstraintInfo () | |
| int | getNumUniqueColumns () const |
| int | getUniqueColumn (int i) const |
| void | addColumn (int c) |
A uniqueness constraint.
A list of columns that, together, form a unique key
| UniqueConstraintInfo::UniqueConstraintInfo | ( | ) |
Default constructor for an empty uniqueness constraint.
Use method addColumn() to add columns.
| void UniqueConstraintInfo::addColumn | ( | int | c | ) |
Add a column to a uniqueness constraint.
| c | Column number/ordinal of one of the unique columns in the constraint. |
| int UniqueConstraintInfo::getNumUniqueColumns | ( | ) | const |
Get the number of columns that form the unique key.
| int UniqueConstraintInfo::getUniqueColumn | ( | int | i | ) | const |
Get a column of the uniqueness constraint by iterator.
Like in other methods, we use an integer to iterate over the columns in the set. Note that the columns form a set, so this number i is merely there to iterate over the set of columns.
| i | A number between 0 and getNumUniqueColumns()-1. |
| UDRException |
1.6.1