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

Class ::xo::db::sql::bt_patch

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

Defined in

Class Relations

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

Methods (to be applied on the object)

  • delete (scripted, public)

     xo::db::sql::bt_patch[i] delete [ -dbn dbn ] -patch_id patch_id 

    Automatically generated method

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

    Testcases:
    No testcase defined.
    #function_args: {PATCH_ID {}}
    foreach var [list PATCH_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_patch__delete($_PATCH_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_patch[i] name [ -dbn dbn ] -patch_id patch_id 

    Automatically generated method

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

    Testcases:
    No testcase defined.
    #function_args: {PATCH_ID {}}
    foreach var [list PATCH_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_patch__name($_PATCH_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_patch[i] new [ -dbn dbn ] -patch_id patch_id  \
        -project_id project_id  -component_id component_id  \
        -summary summary  -description description  \
        -description_format description_format  -content content  \
        -generated_from_version generated_from_version  \
        -creation_user creation_user  -creation_ip creation_ip  \
        [ -childof childof ]

    Automatically generated method

    Switches:
    -dbn (optional)
    -patch_id (required)
    -project_id (required)
    -component_id (required)
    -summary (required)
    -description (required)
    -description_format (required)
    -content (required)
    -generated_from_version (required)
    -creation_user (required)
    -creation_ip (required)
    -childof (optional)

    Testcases:
    No testcase defined.
    #function_args: {PATCH_ID {}} {PROJECT_ID {}} {COMPONENT_ID {}} {SUMMARY {}} {DESCRIPTION {}} {DESCRIPTION_FORMAT {}} {CONTENT {}} {GENERATED_FROM_VERSION {}} {CREATION_USER {}} {CREATION_IP {}}
    foreach var [list PATCH_ID PROJECT_ID COMPONENT_ID SUMMARY DESCRIPTION DESCRIPTION_FORMAT CONTENT GENERATED_FROM_VERSION CREATION_USER CREATION_IP]  {
      set varname [string tolower $var]
      if {[info exists $varname]} {
        set $var [set $varname]
        set _$var :$var
      } else {
        set _$var null
      }
    }
    set sql "
    select bt_patch__new($_PATCH_ID$_PROJECT_ID$_COMPONENT_ID$_SUMMARY$_DESCRIPTION$_DESCRIPTION_FORMAT$_CONTENT$_GENERATED_FROM_VERSION$_CREATION_USER$_CREATION_IP) 
        "
    db_with_handle -dbn $dbn db {
      #ns_log notice "--sql=$sql"
      return [ ns_set value [ns_pg_bind 0or1row $db $sql] 0 ]
    }