2.3.8.2.8. ForeignKey::getChildIndex()

2.3.8.2.9. ForeignKey::getParentColumnNo()

Description.
This method gets the sequence number of a foreign key column
in the parent table for a given index. See the documentation
for Column::getColumnNo() for
information about handling columns in the NDB API.

Signature.

int getParentColumnNo
(
unsigned no
) const

Parameters. None.

Return value.
The sequence number of the column.

2.3.8.2.10. ForeignKey::getChildColumnNo()

Description.
This method gets the sequence number of a foreign key column
in the child table for a given index. See the documentation
for Column::getColumnNo() for
information about handling columns in the NDB API.

Signature.

int getChildColumnNo
(
unsigned no
) const

Parameters. None.

Return value.
The sequence number of the column.

2.3.8.2.11. ForeignKey::getOnUpdateAction()

Description.
Get the foreign key's ON UPDATE
action. This is a
ForeignKey::FkAction and has
one of the values NoAction,
Restrict, Cascade, or
SetNull.

Signature.

FkAction getOnUpdateAction
(
void
) const

Parameters. None.

Return value.
The sequence number of the column.

2.3.8.2.12. ForeignKey::getOnDeleteAction()

Description.
Get the foreign key's ON DELETE
action. This is a
ForeignKey::FkAction and has
one of the values NoAction,
Restrict, Cascade, or
SetNull.

Signature.

FkAction getOnDeleteAction
(
void
) const

Parameters. None.

Return value.
The sequence number of the column.

2.3.8.2.13. ForeignKey::setName()

Description.
Set the name of the ForeignKey instance for
which the method is invoked.

Signature.

void setName
(
const char*
)

Parameters.
The name of the ForeignKey.

Return value. None.

2.3.8.2.14. ForeignKey::setParent()

Description.
Set the parent table of a ForeignKey, given
a reference to the table, and optionally, an index to use as
the foreign key.