- Methods: All Methods Documented Methods Hide Methods
- Source: Display Source Hide Source
- Variables: Show Variables Hide Variables
Class ::xo::db::sql::acs_sc_contract
::xo::db::sql::acs_sc_contract create ...
Class Relations
::xo::db::Class create ::xo::db::sql::acs_sc_contract \ -superclass ::xotcl::ObjectMethods (to be applied on the object)
delete (scripted, public)
xo::db::sql::acs_sc_contract delete [ -dbn dbn ] \ -contract_name contract_nameAutomatically 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 get_id [ -dbn dbn ] \ -contract_name contract_nameAutomatically 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 get_name [ -dbn dbn ] \ -contract_id contract_idAutomatically 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 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 ] }
- Methods: All Methods Documented Methods Hide Methods
- Source: Display Source Hide Source
- Variables: Show Variables Hide Variables