Validate a Reference
Use this API to validate the definition specified for the given object id.
Name
CDR_PUB_DEF_FACTORY_VALIDATE.ValidateReference
Signature
FUNCTION VALIDATEREFERENCE( P_API_VERSION IN NUMBER, P_INIT_MSG_LIST IN VARCHAR2 := CDR_PUB_DEF_CONSTANTS.G_FALSE, P_COMMIT IN VARCHAR2 := CDR_PUB_DEF_CONSTANTS.G_FALSE, P_VALIDATION_LEVEL IN NUMBER := CDR_PUB_DEF_CONSTANTS.G_VALID_LEVEL_FULL, PIO_SOURCECDRNAMING IN OUT CDR_NAMING_VERSION_OBJ_TYPE ) RETURN BOOLEAN;
Return
Type BOOLEAN
If the function returns True, then the reference is valid. Otherwise, it's invalid.
- True: The referenced object is valid.
- False: The references object is not valid.
Parameters
This API has standard parameters (see Standard Parameters) and the following parameter:
PIO_SOURCECDRNAMING (Mandatory) This is a parameter of table type CDR_NAMING_VERSIONS_OBJ_TYPE that contains CDR Naming Version attributes.
For OBJECT_TYPE_RC enter the appropriate value for the object for which you want to validate a reference.
Other required attributes are: COMPANY_ID,OBJ_ID,OBJ_VER,OBJECT_TYPE_RC,NAMESPACE_OBJ_ID,NAMESPACE_OBJ_VER,REF_COMPANY_ID,REF_OBJ_ID,REF_OBJ_VER
Parent topic: Get Factory Validations