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

Class ::xo::db::sql::apm_parameter_value

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

Defined in

Class Relations

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

Methods (to be applied on the object)

  • delete (scripted, public)

     xo::db::sql::apm_parameter_value[i] delete [ -dbn dbn ] \
        [ -value_id value_id ]

    Automatically generated method

    Switches:
    -dbn (optional)
    -value_id (optional)

    Testcases:
    No testcase defined.
    #function_args: {VALUE_ID null}
    foreach var [list VALUE_ID]  {
      set varname [string tolower $var]
      if {[info exists $varname]} {
        set $var [set $varname]
        set _$var :$var
      } else {
        set _$var null
      }
    }
    set sql "
    select apm_parameter_value__delete($_VALUE_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::apm_parameter_value[i] new [ -dbn dbn ] \
        [ -value_id value_id ] -package_id package_id  \
        -parameter_id parameter_id  -attr_value attr_value  \
        [ -childof childof ]

    Automatically generated method

    Switches:
    -dbn (optional)
    -value_id (optional)
    -package_id (required)
    -parameter_id (required)
    -attr_value (required)
    -childof (optional)

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