hasCardinality()

Determines whether an attribute has a specified cardinality.

Syntax

unsigned char hasCardinality(char * card);
 

Parameters

card [in]
Is the cardinality value to use for checking. Valid cardinality values are:
1 - single cardinality
 
n - multiple cardinality
 

Return values

TRUE if the attribute has the specified cardinality or FALSE if it does not.

Notes

This operation applies only to attributes that contain child business objects.

If you specify the cardinality as null, the hasCardinality() method returns FALSE.

See also

getCardinality(), getRelationType(), isMultipleCard()

Copyright IBM Corp. 1997, 2003