%3 ::xotcl::Object ::xotcl::Object ::xo::db::sql::download_rep ::xo::db::sql::download_rep → delete → edit → new ::xo::db::sql::download_rep->::xotcl::Object

Class ::xo::db::sql::download_rep

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

Class Relations

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

Methods (to be applied on the object)

  • delete (scripted, public)

     xo::db::sql::download_rep[i] delete [ -dbn dbn ] \
        -repository_id repository_id 

    Automatically generated method

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

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

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

     xo::db::sql::download_rep[i] edit [ -dbn dbn ] \
        -repository_id repository_id  -title title  \
        -description description  -help_text help_text  \
        -last_modified last_modified  -modifying_user modifying_user  \
        -modifying_ip modifying_ip 

    Automatically generated method

    Switches:
    -dbn
    (optional)
    -repository_id
    (required)
    -title
    (required)
    -description
    (required)
    -help_text
    (required)
    -last_modified
    (required)
    -modifying_user
    (required)
    -modifying_ip
    (required)

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

    Testcases:
    No testcase defined.
    #function_args: {REPOSITORY_ID {}} {TITLE {}} {DESCRIPTION {}} {HELP_TEXT {}} {LAST_MODIFIED {}} {MODIFYING_USER {}} {MODIFYING_IP {}}
    foreach var [list REPOSITORY_ID TITLE DESCRIPTION HELP_TEXT LAST_MODIFIED MODIFYING_USER MODIFYING_IP]  {
      set varname [string tolower $var]
      if {[info exists $varname]} {
        set $var [set $varname]
        set _$var :$var
      } else {
        set _$var null
      }
    }
    set sql "
    select download_rep__edit($_REPOSITORY_ID$_TITLE$_DESCRIPTION$_HELP_TEXT$_LAST_MODIFIED$_MODIFYING_USER$_MODIFYING_IP) 
        "
    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::download_rep[i] new [ -dbn dbn ] \
        -repository_id repository_id  -title title  \
        -description description  [ -help_text help_text ] \
        [ -creation_date creation_date ] [ -creation_user creation_user ] \
        [ -parent_id parent_id ] [ -context_id context_id ] \
        [ -creation_ip creation_ip ] [ -childof childof ]

    Automatically generated method

    Switches:
    -dbn
    (optional)
    -repository_id
    (required)
    -title
    (required)
    -description
    (required)
    -help_text
    (optional)
    -creation_date
    (defaults to "now()") (optional)
    -creation_user
    (optional)
    -parent_id
    (optional)
    -context_id
    (optional)
    -creation_ip
    (optional)
    -childof
    (optional)

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

    Testcases:
    No testcase defined.
    #function_args: {REPOSITORY_ID {}} {TITLE {}} {DESCRIPTION {}} {HELP_TEXT null} {CREATION_DATE now()} {CREATION_USER null} {PARENT_ID null} {CONTEXT_ID null} {CREATION_IP null}
    foreach var [list REPOSITORY_ID TITLE DESCRIPTION HELP_TEXT CREATION_DATE CREATION_USER PARENT_ID CONTEXT_ID 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 download_rep__new($_REPOSITORY_ID$_TITLE$_DESCRIPTION$_HELP_TEXT$_CREATION_DATE$_CREATION_USER$_PARENT_ID$_CONTEXT_ID$_CREATION_IP) 
        "
    db_with_handle -dbn $dbn db {
      #ns_log notice "--sql=$sql"
      return [ ns_set value [ns_pg_bind 0or1row $db $sql] 0 ]
    }