This class describes the primary key of the tables. More...
#include <ildblink/ildrel.h>
Public Member Functions | |
| const IldColumn * | getColumn (IlUShort index) const |
| Get a column from the relation. More... | |
| IlUShort | getCount () const |
| Get the number of columns in the key. More... | |
| IldKeyType | getKeyType () const |
| Get the type of the key. More... | |
| const char * | getName () const |
| Get the name. More... | |
| IlBoolean | isForeign () const |
| Tell if the key is foreign. More... | |
| IlBoolean | isPrimary () const |
| Tell is the key is a primary key. More... | |
| IlBoolean | isSpecialColumn () const |
| Tell if this key is a special columns key. More... | |
This class describes the primary key of the tables.
Library: dbkernel
It is also the base class for the foreign keys, indexes, and special-column description.
Get a column from the relation.
| index | The column index. |
index of the current key. | IlUShort IldKey::getCount | ( | ) | const |
Get the number of columns in the key.
| IldKeyType IldKey::getKeyType | ( | ) | const |
Get the type of the key.
IldKeyType. | const char * IldKey::getName | ( | ) | const |
Get the name.
If the key is not named, a null pointer is returned.
| IlBoolean IldKey::isForeign | ( | ) | const |
Tell if the key is foreign.
IlTrue if the current object is a foreign key descriptor, or IlFalse otherwise. | IlBoolean IldKey::isPrimary | ( | ) | const |
Tell is the key is a primary key.
IlTrue if the current object is a primary key descriptor, IlFalse otherwise. | IlBoolean IldKey::isSpecialColumn | ( | ) | const |
Tell if this key is a special columns key.
IlTrue if the current object describes the special columns of the relation, IlFalse otherwise.