- Methods: All Methods Documented Methods Hide Methods
- Source: Display Source Hide Source
- Variables: Show Variables Hide Variables
Class ::xo::db::sql::pa_collection
::xo::db::sql::pa_collection create ...
Defined in
Class Relations
::xo::db::Class create ::xo::db::sql::pa_collection \ -superclass ::xotcl::ObjectMethods (to be applied on the object)
delete (scripted, public)
xo::db::sql::pa_collection delete [ -dbn dbn ] \ -collection_id collection_idAutomatically generated method
- Switches:
- -dbn (optional)
- -collection_id (required)
- Testcases:
- No testcase defined.
#function_args: {COLLECTION_ID {}} foreach var [list COLLECTION_ID] { set varname [string tolower $var] if {[info exists $varname]} { set $var [set $varname] set _$var :$var } else { set _$var null } } set sql " select pa_collection__delete($_COLLECTION_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::pa_collection new [ -dbn dbn ] \ [ -collection_id collection_id ] [ -owner_id owner_id ] \ -title title [ -creation_date creation_date ] \ [ -creation_user creation_user ] [ -creation_ip creation_ip ] \ [ -context_id context_id ] [ -childof childof ]Automatically generated method
- Switches:
- -dbn (optional)
- -collection_id (optional)
- -owner_id (optional)
- -title (required)
- -creation_date (optional, defaults to
"now()"
)- -creation_user (optional)
- -creation_ip (optional)
- -context_id (optional)
- -childof (optional)
- Testcases:
- No testcase defined.
#function_args: {COLLECTION_ID null} {OWNER_ID null} {TITLE {}} {CREATION_DATE now()} {CREATION_USER null} {CREATION_IP null} {CONTEXT_ID null} foreach var [list COLLECTION_ID OWNER_ID TITLE CREATION_DATE CREATION_USER CREATION_IP 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 pa_collection__new($_COLLECTION_ID, $_OWNER_ID, $_TITLE, $_CREATION_DATE, $_CREATION_USER, $_CREATION_IP, $_CONTEXT_ID) " db_with_handle -dbn $dbn db { #ns_log notice "--sql=$sql" return [ ns_set value [ns_pg_bind 0or1row $db $sql] 0 ] }title (scripted, public)
xo::db::sql::pa_collection title [ -dbn dbn ] \ -collection_id collection_idAutomatically generated method
- Switches:
- -dbn (optional)
- -collection_id (required)
- Testcases:
- No testcase defined.
#function_args: {COLLECTION_ID {}} foreach var [list COLLECTION_ID] { set varname [string tolower $var] if {[info exists $varname]} { set $var [set $varname] set _$var :$var } else { set _$var null } } set sql " select pa_collection__title($_COLLECTION_ID) " db_with_handle -dbn $dbn db { #ns_log notice "--sql=$sql" return [ ns_set value [ns_pg_bind 0or1row $db $sql] 0 ] }Variables
::xo::db::sql::pa_collection set __default_metaclass ::xotcl::Class ::xo::db::sql::pa_collection set __default_superclass ::xotcl::Object ::xo::db::sql::pa_collection set abstract_p f ::xo::db::sql::pa_collection set auto_save false ::xo::db::sql::pa_collection set name_method {} ::xo::db::sql::pa_collection set object_type ::xo::db::sql::pa_collection ::xo::db::sql::pa_collection set security_inherit_p t ::xo::db::sql::pa_collection set sql_package_name pa_collection ::xo::db::sql::pa_collection set supertype acs_object ::xo::db::sql::pa_collection set with_table true
- Methods: All Methods Documented Methods Hide Methods
- Source: Display Source Hide Source
- Variables: Show Variables Hide Variables