- Methods: All Methods Documented Methods Hide Methods
- Source: Display Source Hide Source
- Variables: Show Variables Hide Variables
Class ::xo::db::sql::notification_request
::xo::db::sql::notification_request create ...
Defined in
Class Relations
::xo::db::Class create ::xo::db::sql::notification_request \ -superclass ::xotcl::ObjectMethods (to be applied on the object)
delete (scripted, public)
xo::db::sql::notification_request delete [ -dbn dbn ] \ -request_id request_idAutomatically generated method
- Switches:
- -dbn (optional)
- -request_id (required)
- Testcases:
- No testcase defined.
#function_args: {REQUEST_ID {}} foreach var [list REQUEST_ID] { set varname [string tolower $var] if {[info exists $varname]} { set $var [set $varname] set _$var :$var } else { set _$var null } } set sql " select notification_request__delete($_REQUEST_ID) " db_with_handle -dbn $dbn db { #ns_log notice "--sql=$sql" return [ ns_set value [ns_pg_bind 0or1row $db $sql] 0 ] }delete_all (scripted, public)
xo::db::sql::notification_request delete_all [ -dbn dbn ] \ -object_id object_idAutomatically generated method
- Switches:
- -dbn (optional)
- -object_id (required)
- Testcases:
- No testcase defined.
#function_args: {OBJECT_ID {}} foreach var [list OBJECT_ID] { set varname [string tolower $var] if {[info exists $varname]} { set $var [set $varname] set _$var :$var } else { set _$var null } } set sql " select notification_request__delete_all($_OBJECT_ID) " db_with_handle -dbn $dbn db { #ns_log notice "--sql=$sql" return [ ns_set value [ns_pg_bind 0or1row $db $sql] 0 ] }delete_all_for_user (scripted, public)
xo::db::sql::notification_request delete_all_for_user [ -dbn dbn ] \ -user_id user_idAutomatically generated method
- Switches:
- -dbn (optional)
- -user_id (required)
- Testcases:
- No testcase defined.
#function_args: {USER_ID {}} foreach var [list USER_ID] { set varname [string tolower $var] if {[info exists $varname]} { set $var [set $varname] set _$var :$var } else { set _$var null } } set sql " select notification_request__delete_all_for_user($_USER_ID) " db_with_handle -dbn $dbn db { #ns_log notice "--sql=$sql" return [ ns_set value [ns_pg_bind 0or1row $db $sql] 0 ] }new (scripted, public)
xo::db::sql::notification_request new [ -dbn dbn ] \ -request_id request_id [ -object_type object_type ] \ -type_id type_id -user_id user_id -object_id object_id \ -interval_id interval_id -delivery_method_id delivery_method_id \ -format format [ -dynamic_p dynamic_p ] \ -creation_date creation_date -creation_user creation_user \ -creation_ip creation_ip -context_id context_id \ [ -childof childof ]Automatically generated method
- Switches:
- -dbn (optional)
- -request_id (required)
- -object_type (optional, defaults to
"notification_request"
)- -type_id (required)
- -user_id (required)
- -object_id (required)
- -interval_id (required)
- -delivery_method_id (required)
- -format (required)
- -dynamic_p (optional, defaults to
"f"
)- -creation_date (required)
- -creation_user (required)
- -creation_ip (required)
- -context_id (required)
- -childof (optional)
- Testcases:
- No testcase defined.
#function_args: {REQUEST_ID {}} {OBJECT_TYPE notification_request} {TYPE_ID {}} {USER_ID {}} {OBJECT_ID {}} {INTERVAL_ID {}} {DELIVERY_METHOD_ID {}} {FORMAT {}} {DYNAMIC_P f} {CREATION_DATE {}} {CREATION_USER {}} {CREATION_IP {}} {CONTEXT_ID {}} foreach var [list REQUEST_ID OBJECT_TYPE TYPE_ID USER_ID OBJECT_ID INTERVAL_ID DELIVERY_METHOD_ID FORMAT DYNAMIC_P CREATION_DATE CREATION_USER CREATION_IP CONTEXT_ID] { set varname [string tolower $var] if {[info exists $varname]} { set $var [set $varname] set _$var :$var } else { set _$var null } } set sql " select notification_request__new($_REQUEST_ID, $_OBJECT_TYPE, $_TYPE_ID, $_USER_ID, $_OBJECT_ID, $_INTERVAL_ID, $_DELIVERY_METHOD_ID, $_FORMAT, $_DYNAMIC_P, $_CREATION_DATE, $_CREATION_USER, $_CREATION_IP, $_CONTEXT_ID) " db_with_handle -dbn $dbn db { #ns_log notice "--sql=$sql" return [ ns_set value [ns_pg_bind 0or1row $db $sql] 0 ] }
- Methods: All Methods Documented Methods Hide Methods
- Source: Display Source Hide Source
- Variables: Show Variables Hide Variables