%3 ::xotcl::Object ::xotcl::Object ::xo::db::sql::acs_mail_body ::xo::db::sql::acs_mail_body → body_p → clone → delete → new → set_content_object ::xo::db::sql::acs_mail_body->::xotcl::Object

Class ::xo::db::sql::acs_mail_body

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

Class Relations

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

Methods (to be applied on the object)

  • body_p (scripted, public)

     xo::db::sql::acs_mail_body[i] body_p [ -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::acs_mail_body proc body_p xo::db::sql::acs_mail_body proc body_p xo::db::sql::acs_mail_body proc body_p->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 acs_mail_body__body_p($_OBJECT_ID) 
        "
    db_with_handle -dbn $dbn db {
      #ns_log notice "--sql=$sql"
      return [ ns_set value [ns_pg_bind 0or1row $db $sql] 0 ]
    }
  • clone (scripted, public)

     xo::db::sql::acs_mail_body[i] clone [ -dbn dbn ] \
        -old_body_id old_body_id  [ -body_id body_id ] \
        [ -object_type object_type ] [ -creation_date creation_date ] \
        [ -creation_user creation_user ] [ -creation_ip creation_ip ] \
        [ -context_id context_id ]

    Automatically generated method

    Switches:
    -dbn
    (optional)
    -old_body_id
    (required)
    -body_id
    (optional)
    -object_type
    (defaults to "acs_mail_body") (optional)
    -creation_date
    (defaults to "now()") (optional)
    -creation_user
    (optional)
    -creation_ip
    (optional)
    -context_id
    (optional)

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

    Testcases:
    No testcase defined.
    #function_args: {OLD_BODY_ID {}} {BODY_ID null} {OBJECT_TYPE acs_mail_body} {CREATION_DATE now()} {CREATION_USER null} {CREATION_IP null} {CONTEXT_ID null}
    foreach var [list OLD_BODY_ID BODY_ID OBJECT_TYPE 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 acs_mail_body__clone($_OLD_BODY_ID$_BODY_ID$_OBJECT_TYPE$_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 ]
    }
  • delete (scripted, public)

     xo::db::sql::acs_mail_body[i] delete [ -dbn dbn ] -body_id body_id 

    Automatically generated method

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

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

    Testcases:
    No testcase defined.
    #function_args: {BODY_ID {}}
    foreach var [list BODY_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_body__delete($_BODY_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::acs_mail_body[i] new [ -dbn dbn ] [ -body_id body_id ] \
        [ -body_reply_to body_reply_to ] [ -body_from body_from ] \
        [ -body_date body_date ] [ -header_message_id header_message_id ] \
        [ -header_reply_to header_reply_to ] \
        [ -header_subject header_subject ] [ -header_from header_from ] \
        [ -header_to header_to ] [ -content_item_id content_item_id ] \
        [ -object_type object_type ] [ -creation_date creation_date ] \
        [ -creation_user creation_user ] [ -creation_ip creation_ip ] \
        [ -context_id context_id ] [ -childof childof ]

    Automatically generated method

    Switches:
    -dbn
    (optional)
    -body_id
    (optional)
    -body_reply_to
    (optional)
    -body_from
    (optional)
    -body_date
    (optional)
    -header_message_id
    (optional)
    -header_reply_to
    (optional)
    -header_subject
    (optional)
    -header_from
    (optional)
    -header_to
    (optional)
    -content_item_id
    (optional)
    -object_type
    (defaults to "acs_mail_body") (optional)
    -creation_date
    (defaults to "now()") (optional)
    -creation_user
    (optional)
    -creation_ip
    (optional)
    -context_id
    (optional)
    -childof
    (optional)

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

    Testcases:
    No testcase defined.
    #function_args: {BODY_ID null} {BODY_REPLY_TO null} {BODY_FROM null} {BODY_DATE null} {HEADER_MESSAGE_ID null} {HEADER_REPLY_TO null} {HEADER_SUBJECT null} {HEADER_FROM null} {HEADER_TO null} {CONTENT_ITEM_ID null} {OBJECT_TYPE acs_mail_body} {CREATION_DATE now()} {CREATION_USER null} {CREATION_IP null} {CONTEXT_ID null}
    foreach var [list BODY_ID BODY_REPLY_TO BODY_FROM BODY_DATE HEADER_MESSAGE_ID HEADER_REPLY_TO HEADER_SUBJECT HEADER_FROM HEADER_TO CONTENT_ITEM_ID OBJECT_TYPE 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 acs_mail_body__new($_BODY_ID$_BODY_REPLY_TO$_BODY_FROM$_BODY_DATE$_HEADER_MESSAGE_ID$_HEADER_REPLY_TO$_HEADER_SUBJECT$_HEADER_FROM$_HEADER_TO$_CONTENT_ITEM_ID$_OBJECT_TYPE$_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 ]
    }
  • set_content_object (scripted, public)

     xo::db::sql::acs_mail_body[i] set_content_object [ -dbn dbn ] \
        -body_id body_id  -content_item_id content_item_id 

    Automatically generated method

    Switches:
    -dbn
    (optional)
    -body_id
    (required)
    -content_item_id
    (required)

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

    Testcases:
    No testcase defined.
    #function_args: {BODY_ID {}} {CONTENT_ITEM_ID {}}
    foreach var [list BODY_ID CONTENT_ITEM_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_body__set_content_object($_BODY_ID$_CONTENT_ITEM_ID) 
        "
    db_with_handle -dbn $dbn db {
      #ns_log notice "--sql=$sql"
      return [ ns_set value [ns_pg_bind 0or1row $db $sql] 0 ]
    }