%3 ::xotcl::Object ::xotcl::Object ::xo::db::sql::notification_request ::xo::db::sql::notification_request → delete → delete_all → delete_all_for_user → new ::xo::db::sql::notification_request->::xotcl::Object

Class ::xo::db::sql::notification_request

::xo::db::sql::notification_request[i] create ...

Class Relations

  • class: ::xo::db::Class[i]
  • superclass: ::xotcl::Object[i]
::xo::db::Class create ::xo::db::sql::notification_request \
     -superclass ::xotcl::Object

Methods (to be applied on the object)

  • delete (scripted, public)

     xo::db::sql::notification_request[i] delete [ -dbn dbn ] \
        -request_id request_id 

    Automatically generated method

    Switches:
    -dbn
    (optional)
    -request_id
    (required)

    Partial Call Graph (max 5 caller/called nodes):
    %3 db_with_handle db_with_handle (public) xo::db::sql::notification_request proc delete xo::db::sql::notification_request proc delete xo::db::sql::notification_request proc delete->db_with_handle

    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[i] delete_all [ -dbn dbn ] \
        -object_id object_id 

    Automatically generated method

    Switches:
    -dbn
    (optional)
    -object_id
    (required)

    Partial Call Graph (max 5 caller/called nodes):
    %3 db_with_handle db_with_handle (public) xo::db::sql::notification_request proc delete_all xo::db::sql::notification_request proc delete_all xo::db::sql::notification_request proc delete_all->db_with_handle

    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[i] delete_all_for_user [ -dbn dbn ] \
        -user_id user_id 

    Automatically generated method

    Switches:
    -dbn
    (optional)
    -user_id
    (required)

    Partial Call Graph (max 5 caller/called nodes):
    %3 db_with_handle db_with_handle (public) xo::db::sql::notification_request proc delete_all_for_user xo::db::sql::notification_request proc delete_all_for_user xo::db::sql::notification_request proc delete_all_for_user->db_with_handle

    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[i] 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
    (defaults to "notification_request") (optional)
    -type_id
    (required)
    -user_id
    (required)
    -object_id
    (required)
    -interval_id
    (required)
    -delivery_method_id
    (required)
    -format
    (required)
    -dynamic_p
    (defaults to "f") (optional)
    -creation_date
    (required)
    -creation_user
    (required)
    -creation_ip
    (required)
    -context_id
    (required)
    -childof
    (optional)

    Partial Call Graph (max 5 caller/called nodes):
    %3 db_with_handle db_with_handle (public) xo::db::sql::notification_request proc new xo::db::sql::notification_request proc new xo::db::sql::notification_request proc new->db_with_handle

    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 ]
    }