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):
- 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