%3 ::xotcl::Object ::xotcl::Object ::xo::db::sql::bt_bug ::xo::db::sql::bt_bug → bug_type_sort_order → delete → name → new ::xo::db::sql::bt_bug->::xotcl::Object

Class ::xo::db::sql::bt_bug

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

Class Relations

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

Methods (to be applied on the object)

  • bug_type_sort_order (scripted, public)

     xo::db::sql::bt_bug[i] bug_type_sort_order [ -dbn dbn ] \
        -bug_type bug_type 

    Automatically generated method

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

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

    Testcases:
    No testcase defined.
    #function_args: {BUG_TYPE {}}
    foreach var [list BUG_TYPE]  {
      set varname [string tolower $var]
      if {[info exists $varname]} {
        set $var [set $varname]
        set _$var :$var
      } else {
        set _$var null
      }
    }
    set sql "
    select bt_bug__bug_type_sort_order($_BUG_TYPE) 
        "
    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::bt_bug[i] delete [ -dbn dbn ] -bug_id bug_id 

    Automatically generated method

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

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

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

     xo::db::sql::bt_bug[i] name [ -dbn dbn ] -bug_id bug_id 

    Automatically generated method

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

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

    Testcases:
    No testcase defined.
    #function_args: {BUG_ID {}}
    foreach var [list BUG_ID]  {
      set varname [string tolower $var]
      if {[info exists $varname]} {
        set $var [set $varname]
        set _$var :$var
      } else {
        set _$var null
      }
    }
    set sql "
    select bt_bug__name($_BUG_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::bt_bug[i] new [ -dbn dbn ] -bug_id bug_id  \
        -bug_number bug_number  -package_id package_id  \
        -component_id component_id  -found_in_version found_in_version  \
        -summary summary  -user_agent user_agent  \
        -comment_content comment_content  -comment_formt comment_formt  \
        -creation_date creation_date  -creation_user creation_user  \
        -creation_ip creation_ip  [ -item_subtype item_subtype ] \
        [ -content_type content_type ] [ -childof childof ]

    Automatically generated method

    Switches:
    -dbn
    (optional)
    -bug_id
    (required)
    -bug_number
    (required)
    -package_id
    (required)
    -component_id
    (required)
    -found_in_version
    (required)
    -summary
    (required)
    -user_agent
    (required)
    -comment_content
    (required)
    -comment_formt
    (required)
    -creation_date
    (required)
    -creation_user
    (required)
    -creation_ip
    (required)
    -item_subtype
    (defaults to "bt_bug") (optional)
    -content_type
    (defaults to "bt_bug_revision") (optional)
    -childof
    (optional)

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

    Testcases:
    No testcase defined.
    #function_args: {BUG_ID {}} {BUG_NUMBER {}} {PACKAGE_ID {}} {COMPONENT_ID {}} {FOUND_IN_VERSION {}} {SUMMARY {}} {USER_AGENT {}} {COMMENT_CONTENT {}} {COMMENT_FORMT {}} {CREATION_DATE {}} {CREATION_USER {}} {CREATION_IP {}} {ITEM_SUBTYPE bt_bug} {CONTENT_TYPE bt_bug_revision}
    foreach var [list BUG_ID BUG_NUMBER PACKAGE_ID COMPONENT_ID FOUND_IN_VERSION SUMMARY USER_AGENT COMMENT_CONTENT COMMENT_FORMT CREATION_DATE CREATION_USER CREATION_IP ITEM_SUBTYPE CONTENT_TYPE]  {
      set varname [string tolower $var]
      if {[info exists $varname]} {
        set $var [set $varname]
        set _$var :$var
      } else {
        set _$var null
      }
    }
    set sql "
    select bt_bug__new($_BUG_ID$_BUG_NUMBER$_PACKAGE_ID$_COMPONENT_ID$_FOUND_IN_VERSION$_SUMMARY$_USER_AGENT$_COMMENT_CONTENT$_COMMENT_FORMT$_CREATION_DATE$_CREATION_USER$_CREATION_IP$_ITEM_SUBTYPE$_CONTENT_TYPE) 
        "
    db_with_handle -dbn $dbn db {
      #ns_log notice "--sql=$sql"
      return [ ns_set value [ns_pg_bind 0or1row $db $sql] 0 ]
    }