application_data_link::link_exists (public)

 application_data_link::link_exists [ -from_object_id from_object_id ] \
    [ -to_object_id to_object_id ] [ -relation_tag relation_tag ]

Defined in packages/acs-tcl/tcl/application-data-link-procs.tcl

Check if a link exists, only checks in the direction requested. Optionally check if the link has the given tag.

Switches:
-from_object_id (optional)
-to_object_id (optional)
-relation_tag (optional)
Returns:
0 or 1
Author:
Dave Bauer <dave@solutiongrove.com>
Created:
2006-08-31

Partial Call Graph (max 5 caller/called nodes):
%3 test_data_links_with_tag data_links_with_tag (test acs-tcl) application_data_link::link_exists application_data_link::link_exists test_data_links_with_tag->application_data_link::link_exists db_0or1row db_0or1row (public) application_data_link::link_exists->db_0or1row application_data_link::update_links_from application_data_link::update_links_from (public) application_data_link::update_links_from->application_data_link::link_exists

Testcases:
data_links_with_tag
Source code:
    return [db_0or1row link_exists ""]
XQL Not present:
PostgreSQL, Oracle
Generic XQL file:
<fullquery name="application_data_link::link_exists.link_exists">
    <querytext>
	select 1 from acs_data_links
	where object_id_one = :from_object_id
	and object_id_two = :to_object_id
    [application_data_link::relation_tag_where_clause -relation_tag $relation_tag]
    </querytext>
</fullquery>
packages/acs-tcl/tcl/application-data-link-procs.xql

[ hide source ] | [ make this the default ]
Show another procedure: