Class ::xo::db::sql::wp_slide (public)
::xo::db::Class ::xo::db::sql::wp_slide
Defined in
- Testcases:
-
No testcase defined.
Source code:
namespace eval ::xo::db::sql {}
::nsf::object::alloc ::xo::db::Class ::xo::db::sql::wp_slide {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::wp_slide
set :security_inherit_p t
set :sql_package_name wp_slide
set :supertype acs_object
set :with_table true}
::xo::db::sql::wp_slide proc new_revision {{-dbn {}} -creation_date:required -creation_user:required -creation_ip:required -slide_item_id:required -slide_title:required -preamble:required -bullet_items:required -postamble:required -style:required -original_slide_id:required -sort_key:required -include_in_outline_p:required -context_break_after_p:required} {
foreach var [list CREATION_DATE CREATION_USER CREATION_IP SLIDE_ITEM_ID SLIDE_TITLE PREAMBLE BULLET_ITEMS POSTAMBLE STYLE ORIGINAL_SLIDE_ID SORT_KEY INCLUDE_IN_OUTLINE_P CONTEXT_BREAK_AFTER_P] {
set varname [string tolower $var]
if {[info exists $varname]} {
set $var [set $varname]
set _$var :$var
} else {
set _$var null
}
}
set sql "
select wp_slide__new_revision($_CREATION_DATE, $_CREATION_USER, $_CREATION_IP, $_SLIDE_ITEM_ID, $_SLIDE_TITLE, $_PREAMBLE, $_BULLET_ITEMS, $_POSTAMBLE, $_STYLE, $_ORIGINAL_SLIDE_ID, $_SORT_KEY, $_INCLUDE_IN_OUTLINE_P, $_CONTEXT_BREAK_AFTER_P)
"
db_with_handle -dbn $dbn db {
return [ ns_set value [ns_pg_bind 0or1row $db $sql] 0 ]
}
}
::xo::db::sql::wp_slide proc delete_postamble {{-dbn {}} -postamble_item_id:required} {
foreach var [list POSTAMBLE_ITEM_ID] {
set varname [string tolower $var]
if {[info exists $varname]} {
set $var [set $varname]
set _$var :$var
} else {
set _$var null
}
}
set sql "
select wp_slide__delete_postamble($_POSTAMBLE_ITEM_ID)
"
db_with_handle -dbn $dbn db {
return [ ns_set value [ns_pg_bind 0or1row $db $sql] 0 ]
}
}
::xo::db::sql::wp_slide proc delete_preamble {{-dbn {}} -preamble_item_id:required} {
foreach var [list PREAMBLE_ITEM_ID] {
set varname [string tolower $var]
if {[info exists $varname]} {
set $var [set $varname]
set _$var :$var
} else {
set _$var null
}
}
set sql "
select wp_slide__delete_preamble($_PREAMBLE_ITEM_ID)
"
db_with_handle -dbn $dbn db {
return [ ns_set value [ns_pg_bind 0or1row $db $sql] 0 ]
}
}
::xo::db::sql::wp_slide proc new {{-dbn {}} -pres_item_id:required -creation_date:required -creation_user:required -creation_ip:required -slide_title:required -style:required -original_slide_id:required -sort_key:required -preamble:required -bullet_items:required -postamble:required -include_in_outline_p:required -context_break_after_p:required -context_id:required -childof} {
foreach var [list PRES_ITEM_ID CREATION_DATE CREATION_USER CREATION_IP SLIDE_TITLE STYLE ORIGINAL_SLIDE_ID SORT_KEY PREAMBLE BULLET_ITEMS POSTAMBLE INCLUDE_IN_OUTLINE_P CONTEXT_BREAK_AFTER_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 wp_slide__new($_PRES_ITEM_ID, $_CREATION_DATE, $_CREATION_USER, $_CREATION_IP, $_SLIDE_TITLE, $_STYLE, $_ORIGINAL_SLIDE_ID, $_SORT_KEY, $_PREAMBLE, $_BULLET_ITEMS, $_POSTAMBLE, $_INCLUDE_IN_OUTLINE_P, $_CONTEXT_BREAK_AFTER_P, $_CONTEXT_ID)
"
db_with_handle -dbn $dbn db {
return [ ns_set value [ns_pg_bind 0or1row $db $sql] 0 ]
}
}
::xo::db::sql::wp_slide proc delete {{-dbn {}} -slide_item_id:required} {
foreach var [list SLIDE_ITEM_ID] {
set varname [string tolower $var]
if {[info exists $varname]} {
set $var [set $varname]
set _$var :$var
} else {
set _$var null
}
}
set sql "
select wp_slide__delete($_SLIDE_ITEM_ID)
"
db_with_handle -dbn $dbn db {
return [ ns_set value [ns_pg_bind 0or1row $db $sql] 0 ]
}
}
::xo::db::sql::wp_slide proc get_postamble_revision {{-dbn {}} -slide_revision_id:required} {
foreach var [list SLIDE_REVISION_ID] {
set varname [string tolower $var]
if {[info exists $varname]} {
set $var [set $varname]
set _$var :$var
} else {
set _$var null
}
}
set sql "
select wp_slide__get_postamble_revision($_SLIDE_REVISION_ID)
"
db_with_handle -dbn $dbn db {
return [ ns_set value [ns_pg_bind 0or1row $db $sql] 0 ]
}
}
::xo::db::sql::wp_slide proc get_preamble_revision {{-dbn {}} -slide_revision_id:required} {
foreach var [list SLIDE_REVISION_ID] {
set varname [string tolower $var]
if {[info exists $varname]} {
set $var [set $varname]
set _$var :$var
} else {
set _$var null
}
}
set sql "
select wp_slide__get_preamble_revision($_SLIDE_REVISION_ID)
"
db_with_handle -dbn $dbn db {
return [ ns_set value [ns_pg_bind 0or1row $db $sql] 0 ]
}
}
::xo::db::sql::wp_slide proc get_postamble {{-dbn {}} -slide_item_id:required} {
foreach var [list SLIDE_ITEM_ID] {
set varname [string tolower $var]
if {[info exists $varname]} {
set $var [set $varname]
set _$var :$var
} else {
set _$var null
}
}
set sql "
select wp_slide__get_postamble($_SLIDE_ITEM_ID)
"
db_with_handle -dbn $dbn db {
return [ ns_set value [ns_pg_bind 0or1row $db $sql] 0 ]
}
}
::xo::db::sql::wp_slide proc get_bullet_items_revision {{-dbn {}} -slide_revision_id:required} {
foreach var [list SLIDE_REVISION_ID] {
set varname [string tolower $var]
if {[info exists $varname]} {
set $var [set $varname]
set _$var :$var
} else {
set _$var null
}
}
set sql "
select wp_slide__get_bullet_items_revision($_SLIDE_REVISION_ID)
"
db_with_handle -dbn $dbn db {
return [ ns_set value [ns_pg_bind 0or1row $db $sql] 0 ]
}
}
::xo::db::sql::wp_slide proc get_bullet_items {{-dbn {}} -slide_item_id:required} {
foreach var [list SLIDE_ITEM_ID] {
set varname [string tolower $var]
if {[info exists $varname]} {
set $var [set $varname]
set _$var :$var
} else {
set _$var null
}
}
set sql "
select wp_slide__get_bullet_items($_SLIDE_ITEM_ID)
"
db_with_handle -dbn $dbn db {
return [ ns_set value [ns_pg_bind 0or1row $db $sql] 0 ]
}
}
::xo::db::sql::wp_slide proc delete_bullet_items {{-dbn {}} -bullet_items_item_id:required} {
foreach var [list BULLET_ITEMS_ITEM_ID] {
set varname [string tolower $var]
if {[info exists $varname]} {
set $var [set $varname]
set _$var :$var
} else {
set _$var null
}
}
set sql "
select wp_slide__delete_bullet_items($_BULLET_ITEMS_ITEM_ID)
"
db_with_handle -dbn $dbn db {
return [ ns_set value [ns_pg_bind 0or1row $db $sql] 0 ]
}
}
::xo::db::sql::wp_slide proc get_preamble {{-dbn {}} -slide_item_id:required} {
foreach var [list SLIDE_ITEM_ID] {
set varname [string tolower $var]
if {[info exists $varname]} {
set $var [set $varname]
set _$var :$var
} else {
set _$var null
}
}
set sql "
select wp_slide__get_preamble($_SLIDE_ITEM_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 ]