Class ::xo::db::sql::rss_gen_subscr (public)
::xo::db::Class ::xo::db::sql::rss_gen_subscr
Defined in
- Testcases:
-
No testcase defined.
Source code:
namespace eval ::xo::db::sql {}
::nsf::object::alloc ::xo::db::Class ::xo::db::sql::rss_gen_subscr {set :__default_metaclass ::xotcl::Class
set :__default_superclass ::xotcl::Object
set :abstract_p f
set :auto_save false
set :name_method {}
set :object_type ::xo::db::sql::rss_gen_subscr
set :security_inherit_p t
set :sql_package_name rss_gen_subscr
set :supertype acs_object
set :with_table true}
::xo::db::sql::rss_gen_subscr proc name {{-dbn {}} -subscr_id:required} {
foreach var [list SUBSCR_ID] {
set varname [string tolower $var]
if {[info exists $varname]} {
set $var [set $varname]
set _$var :$var
} else {
set _$var null
}
}
set sql "
select rss_gen_subscr__name($_SUBSCR_ID)
"
db_with_handle -dbn $dbn db {
return [ ns_set value [ns_pg_bind 0or1row $db $sql] 0 ]
}
}
::xo::db::sql::rss_gen_subscr proc del {{-dbn {}} -subscr_id:required} {
foreach var [list SUBSCR_ID] {
set varname [string tolower $var]
if {[info exists $varname]} {
set $var [set $varname]
set _$var :$var
} else {
set _$var null
}
}
set sql "
select rss_gen_subscr__del($_SUBSCR_ID)
"
db_with_handle -dbn $dbn db {
return [ ns_set value [ns_pg_bind 0or1row $db $sql] 0 ]
}
}
::xo::db::sql::rss_gen_subscr proc new {{-dbn {}} -p_subscr_id:required -p_impl_id:required -p_summary_context_id:required -p_timeout:required {-p_lastbuild now} -p_object_type:required {-p_creation_date now} -p_creation_user:required -p_creation_ip:required -p_context_id:required -childof} {
foreach var [list P_SUBSCR_ID P_IMPL_ID P_SUMMARY_CONTEXT_ID P_TIMEOUT P_LASTBUILD P_OBJECT_TYPE P_CREATION_DATE P_CREATION_USER P_CREATION_IP P_CONTEXT_ID] {
set varname [string tolower $var]
if {[info exists $varname]} {
set $var [set $varname]
set _$var :$var
} else {
set _$var null
}
}
set sql "
select rss_gen_subscr__new($_P_SUBSCR_ID, $_P_IMPL_ID, $_P_SUMMARY_CONTEXT_ID, $_P_TIMEOUT, $_P_LASTBUILD, $_P_OBJECT_TYPE, $_P_CREATION_DATE, $_P_CREATION_USER, $_P_CREATION_IP, $_P_CONTEXT_ID)
"
db_with_handle -dbn $dbn db {
return [ ns_set value [ns_pg_bind 0or1row $db $sql] 0 ]
}
}
::xo::db::sql::rss_gen_subscr proc delete {{-dbn {}} -subscr_id:required} {
foreach var [list SUBSCR_ID] {
set varname [string tolower $var]
if {[info exists $varname]} {
set $var [set $varname]
set _$var :$var
} else {
set _$var null
}
}
set sql "
select rss_gen_subscr__delete($_SUBSCR_ID)
"
db_with_handle -dbn $dbn db {
return [ ns_set value [ns_pg_bind 0or1row $db $sql] 0 ]
}
}
XQL Not present:Generic, PostgreSQL, Oracle
[
hide source ]
| [
make this the default ]