Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
virtual P6R::P6ERR P6R::p6IKeystore2::createLink ( P6UUID pSourceUUID,
P6UUID pTargetUUID,
const P6WCHAR pLinkType,
const P6WCHAR pMetaData,
P6UUID pUUID 
)
pure virtual

Creates a new link between two entries in the keystore.

A link is an association between two entries in the keystore. The source of the link essentially points to the target of the link. Note, that deleting either the source or target entries out of the keystore will also automatically delete all links between those two entries.

Parameters
pSourceUUID[ in ] An identifier for the source of the link
pTargetUUID[ in ] An identifier for the target of the link
pLinkType[ in ] An application defined meaning for the link
pMetaData[ in ] (optional) data to be associated with the link (e.g., weight)
pUUID[ out ] Optional, can be NULL. Return the P6UUID associated with the link in the keystore.
Returns
SuccessP6R::eOk 
FailureP6R::eInvalidArgOne of the parameters is NULL.
P6R::eNotInitializedA successful call to initialize was not made before this call.
P6R::eInvalidStateA successful call to open() was not made before this call.
P6R::eTooBigpLinkType is larger than P6KSMAXLINKTYPE or pMetaData is larger than P6KSMAXLINKMETA.
P6R::eTooSmallpLinkType has length of zero.
P6R::eNotFoundObjects identified by pSourceUUID or pTargetUUID do not exist in keystore.