Class ::xo::db::sql::acs_sc_contract

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

Class Relations

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

Methods (to be applied on the object)

  • delete (scripted, public)

     xo::db::sql::acs_sc_contract[i] delete [ -dbn dbn ] \
        -contract_name contract_name 

    Automatically generated method

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

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

     xo::db::sql::acs_sc_contract[i] get_id [ -dbn dbn ] \
        -contract_name contract_name 

    Automatically generated method

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

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

     xo::db::sql::acs_sc_contract[i] get_name [ -dbn dbn ] \
        -contract_id contract_id 

    Automatically generated method

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

    Testcases:
    No testcase defined.
    #function_args: {CONTRACT_ID {}}
    foreach var [list CONTRACT_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_sc_contract__get_name($_CONTRACT_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_sc_contract[i] new [ -dbn dbn ] \
        -contract_name contract_name  -contract_desc contract_desc  \
        [ -childof childof ]

    Automatically generated method

    Switches:
    -dbn (optional)
    -contract_name (required)
    -contract_desc (required)
    -childof (optional)

    Testcases:
    No testcase defined.
    #function_args: {CONTRACT_NAME {}} {CONTRACT_DESC {}}
    foreach var [list CONTRACT_NAME CONTRACT_DESC]  {
      set varname [string tolower $var]
      if {[info exists $varname]} {
        set $var [set $varname]
        set _$var :$var
      } else {
        set _$var null
      }
    }
    set sql "
    select acs_sc_contract__new($_CONTRACT_NAME$_CONTRACT_DESC) 
        "
    db_with_handle -dbn $dbn db {
      #ns_log notice "--sql=$sql"
      return [ ns_set value [ns_pg_bind 0or1row $db $sql] 0 ]
    }