create or replace package wmp_api_dblink as function substitute_dblink(p_query in varchar2, p_is_portlet in varchar2 := null, p_back_url in varchar2 := null, p_reference_path in varchar2 := null, p_preference_path in varchar2 := null) return varchar2; function substitute_dblink(p_query in varchar2, p_repository_id in number) return varchar2; function populate_dblink(p_query in varchar2, p_dblink in varchar2) return varchar2; end wmp_api_dblink;