hasAllKeys()

Determines if the current business object has values for all its primary- and foreign-key attributes.

Syntax

public final boolean hasAllKeys();

Parameters

None.

Return values

Returns true if the current business object has values for all primary and foreign key attributes; otherwise returns false.

Exceptions

WrongAttributeException
Thrown if the key is set on a multiple cardinality attribute.
AttributeNotFoundException
Thrown if a key attribute cannot be found within the business object definition.

Notes

The hasAllKeys() method checks if all the primary and foreign keys have been populated. This method is typically used to identify the row for updates.

See also

areAllPrimaryKeysTheSame(),, hasAnyActivePrimaryKey(),, hasAllPrimaryKeys()

Copyright IBM Corporation 1997, 2004. All Rights Reserved.