notification::request::request_exists (public)

 notification::request::request_exists -type_id type_id \
    -object_id object_id

Defined in packages/notifications/tcl/notification-request-procs.tcl

returns true if at least one request exists for this object and type

Switches:
-type_id
(required)
-object_id
(required)

Partial Call Graph (max 5 caller/called nodes):
%3 notification::new notification::new (public) notification::request::request_exists notification::request::request_exists notification::new->notification::request::request_exists db_0or1row db_0or1row (public) notification::request::request_exists->db_0or1row

Testcases:
No testcase defined.
Source code:
        return [db_0or1row exists {
            select 1 from notification_requests
            where type_id = :type_id
            and object_id = :object_id
            fetch first 1 rows only
        }]
Generic XQL file:
packages/notifications/tcl/notification-request-procs.xql

PostgreSQL XQL file:
packages/notifications/tcl/notification-request-procs-postgresql.xql

Oracle XQL file:
packages/notifications/tcl/notification-request-procs-oracle.xql

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