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

Class ::xo::db::sql::acs_sc_operation

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

Class Relations

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

Methods (to be applied on the object)

  • delete (scripted, public)

     xo::db::sql::acs_sc_operation[i] delete [ -dbn dbn ] \
        -operation_id operation_id 

    Automatically generated method

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

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

    Testcases:
    No testcase defined.
    #function_args: {OPERATION_ID {}}
    foreach var [list OPERATION_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_operation__delete($_OPERATION_ID) 
        "
    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_operation[i] get_id [ -dbn dbn ] \
        -contract_name contract_name  -operation_name operation_name 

    Automatically generated method

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

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

    Testcases:
    No testcase defined.
    #function_args: {CONTRACT_NAME {}} {OPERATION_NAME {}}
    foreach var [list CONTRACT_NAME OPERATION_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_operation__get_id($_CONTRACT_NAME$_OPERATION_NAME) 
        "
    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_operation[i] new [ -dbn dbn ] \
        -contract_name contract_name  -operation_name operation_name  \
        -operation_desc operation_desc  \
        [ -operation_iscachable_p operation_iscachable_p ] \
        -operation_nargs operation_nargs  \
        -operation_inputtype operation_inputtype  \
        -operation_outputtype operation_outputtype  [ -childof childof ]

    Automatically generated method

    Switches:
    -dbn
    (optional)
    -contract_name
    (required)
    -operation_name
    (required)
    -operation_desc
    (required)
    -operation_iscachable_p
    (defaults to "f") (optional)
    -operation_nargs
    (required)
    -operation_inputtype
    (required)
    -operation_outputtype
    (required)
    -childof
    (optional)

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

    Testcases:
    No testcase defined.
    #function_args: {CONTRACT_NAME {}} {OPERATION_NAME {}} {OPERATION_DESC {}} {OPERATION_ISCACHABLE_P f} {OPERATION_NARGS {}} {OPERATION_INPUTTYPE {}} {OPERATION_OUTPUTTYPE {}}
    foreach var [list CONTRACT_NAME OPERATION_NAME OPERATION_DESC OPERATION_ISCACHABLE_P OPERATION_NARGS OPERATION_INPUTTYPE OPERATION_OUTPUTTYPE]  {
      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_operation__new($_CONTRACT_NAME$_OPERATION_NAME$_OPERATION_DESC$_OPERATION_ISCACHABLE_P$_OPERATION_NARGS$_OPERATION_INPUTTYPE$_OPERATION_OUTPUTTYPE) 
        "
    db_with_handle -dbn $dbn db {
      #ns_log notice "--sql=$sql"
      return [ ns_set value [ns_pg_bind 0or1row $db $sql] 0 ]
    }