Class ::xo::db::sql::acs_mail_nt

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

Defined in

Class Relations

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

Methods (to be applied on the object)

  • cancel_request (scripted, public)

     xo::db::sql::acs_mail_nt[i] cancel_request [ -dbn dbn ] \
        -message_id message_id 

    Automatically generated method

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

    Testcases:
    No testcase defined.
    #function_args: {MESSAGE_ID {}}
    foreach var [list MESSAGE_ID]  {
      set varname [string tolower $var]
      if {[info exists $varname]} {
        set $var [set $varname]
        set _$var :$var
      } else {
        set _$var null
      }
    }
    set sql "
    select acs_mail_nt__cancel_request($_MESSAGE_ID) 
        "
    db_with_handle -dbn $dbn db {
      #ns_log notice "--sql=$sql"
      return [ ns_set value [ns_pg_bind 0or1row $db $sql] 0 ]
    }
  • expand_requests (scripted, public)

     xo::db::sql::acs_mail_nt[i] expand_requests [ -dbn dbn ]

    Automatically generated method

    Switches:
    -dbn (optional)

    Testcases:
    No testcase defined.
    #function_args: 
    foreach var [list ]  {
      set varname [string tolower $var]
      if {[info exists $varname]} {
        set $var [set $varname]
        set _$var :$var
      } else {
        set _$var null
      }
    }
    set sql "
    select acs_mail_nt__expand_requests() 
        "
    db_with_handle -dbn $dbn db {
      #ns_log notice "--sql=$sql"
      return [ ns_set value [ns_pg_bind 0or1row $db $sql] 0 ]
    }
  • post_request (scripted, public)

     xo::db::sql::acs_mail_nt[i] post_request [ -dbn dbn ] \
        -party_from party_from  -party_to party_to  -subject subject  \
        -message message 

    Automatically generated method

    Switches:
    -dbn (optional)
    -party_from (required)
    -party_to (required)
    -subject (required)
    -message (required)

    Testcases:
    No testcase defined.
    #function_args: {PARTY_FROM {}} {PARTY_TO {}} {SUBJECT {}} {MESSAGE {}}
    foreach var [list PARTY_FROM PARTY_TO SUBJECT MESSAGE]  {
      set varname [string tolower $var]
      if {[info exists $varname]} {
        set $var [set $varname]
        set _$var :$var
      } else {
        set _$var null
      }
    }
    set sql "
    select acs_mail_nt__post_request($_PARTY_FROM$_PARTY_TO$_SUBJECT$_MESSAGE) 
        "
    db_with_handle -dbn $dbn db {
      #ns_log notice "--sql=$sql"
      return [ ns_set value [ns_pg_bind 0or1row $db $sql] 0 ]
    }
  • process_queue (scripted, public)

     xo::db::sql::acs_mail_nt[i] process_queue [ -dbn dbn ] -host host  \
        [ -port port ]

    Automatically generated method

    Switches:
    -dbn (optional)
    -host (required)
    -port (optional, defaults to "25")

    Testcases:
    No testcase defined.
    #function_args: {HOST {}} {PORT 25}
    foreach var [list HOST PORT]  {
      set varname [string tolower $var]
      if {[info exists $varname]} {
        set $var [set $varname]
        set _$var :$var
      } else {
        set _$var null
      }
    }
    set sql "
    select acs_mail_nt__process_queue($_HOST$_PORT) 
        "
    db_with_handle -dbn $dbn db {
      #ns_log notice "--sql=$sql"
      return [ ns_set value [ns_pg_bind 0or1row $db $sql] 0 ]
    }
  • schedule_process (scripted, public)

     xo::db::sql::acs_mail_nt[i] schedule_process [ -dbn dbn ] \
        -interval interval  -host host  [ -port port ]

    Automatically generated method

    Switches:
    -dbn (optional)
    -interval (required)
    -host (required)
    -port (optional, defaults to "25")

    Testcases:
    No testcase defined.
    #function_args: {INTERVAL {}} {HOST {}} {PORT 25}
    foreach var [list INTERVAL HOST PORT]  {
      set varname [string tolower $var]
      if {[info exists $varname]} {
        set $var [set $varname]
        set _$var :$var
      } else {
        set _$var null
      }
    }
    set sql "
    select acs_mail_nt__schedule_process($_INTERVAL$_HOST$_PORT) 
        "
    db_with_handle -dbn $dbn db {
      #ns_log notice "--sql=$sql"
      return [ ns_set value [ns_pg_bind 0or1row $db $sql] 0 ]
    }
  • update_requests (scripted, public)

     xo::db::sql::acs_mail_nt[i] update_requests [ -dbn dbn ]

    Automatically generated method

    Switches:
    -dbn (optional)

    Testcases:
    No testcase defined.
    #function_args: 
    foreach var [list ]  {
      set varname [string tolower $var]
      if {[info exists $varname]} {
        set $var [set $varname]
        set _$var :$var
      } else {
        set _$var null
      }
    }
    set sql "
    select acs_mail_nt__update_requests() 
        "
    db_with_handle -dbn $dbn db {
      #ns_log notice "--sql=$sql"
      return [ ns_set value [ns_pg_bind 0or1row $db $sql] 0 ]
    }