- Methods: All Methods Documented Methods Hide Methods
- Source: Display Source Hide Source
- Variables: Show Variables Hide Variables
Class ::xo::db::sql::journal_entry
::xo::db::sql::journal_entry create ...
Defined in
Class Relations
::xo::db::Class create ::xo::db::sql::journal_entry \ -superclass ::xotcl::ObjectMethods (to be applied on the object)
delete (scripted, public)
xo::db::sql::journal_entry delete [ -dbn dbn ] -journal_id journal_idAutomatically generated method
- Switches:
- -dbn (optional)
- -journal_id (required)
- Testcases:
- No testcase defined.
#function_args: {JOURNAL_ID {}} foreach var [list JOURNAL_ID] { set varname [string tolower $var] if {[info exists $varname]} { set $var [set $varname] set _$var :$var } else { set _$var null } } set sql " select journal_entry__delete($_JOURNAL_ID) " db_with_handle -dbn $dbn db { #ns_log notice "--sql=$sql" return [ ns_set value [ns_pg_bind 0or1row $db $sql] 0 ] }delete_for_object (scripted, public)
xo::db::sql::journal_entry delete_for_object [ -dbn dbn ] \ -object_id object_idAutomatically generated method
- Switches:
- -dbn (optional)
- -object_id (required)
- Testcases:
- No testcase defined.
#function_args: {OBJECT_ID {}} foreach var [list OBJECT_ID] { set varname [string tolower $var] if {[info exists $varname]} { set $var [set $varname] set _$var :$var } else { set _$var null } } set sql " select journal_entry__delete_for_object($_OBJECT_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::journal_entry new [ -dbn dbn ] [ -journal_id journal_id ] \ -object_id object_id -action action \ [ -action_pretty action_pretty ] [ -creation_date creation_date ] \ [ -creation_user creation_user ] [ -creation_ip creation_ip ] \ [ -msg msg ] [ -childof childof ]Automatically generated method
- Switches:
- -dbn (optional)
- -journal_id (optional)
- -object_id (required)
- -action (required)
- -action_pretty (optional)
- -creation_date (optional, defaults to
"now()"
)- -creation_user (optional)
- -creation_ip (optional)
- -msg (optional)
- -childof (optional)
- Testcases:
- No testcase defined.
#function_args: {JOURNAL_ID null} {OBJECT_ID {}} {ACTION {}} {ACTION_PRETTY null} {CREATION_DATE now()} {CREATION_USER null} {CREATION_IP null} {MSG null} foreach var [list JOURNAL_ID OBJECT_ID ACTION ACTION_PRETTY CREATION_DATE CREATION_USER CREATION_IP MSG] { set varname [string tolower $var] if {[info exists $varname]} { set $var [set $varname] set _$var :$var } else { set _$var null } } set sql " select journal_entry__new($_JOURNAL_ID, $_OBJECT_ID, $_ACTION, $_ACTION_PRETTY, $_CREATION_DATE, $_CREATION_USER, $_CREATION_IP, $_MSG) " 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::journal_entry set __default_metaclass ::xotcl::Class ::xo::db::sql::journal_entry set __default_superclass ::xotcl::Object ::xo::db::sql::journal_entry set abstract_p f ::xo::db::sql::journal_entry set auto_save false ::xo::db::sql::journal_entry set name_method {} ::xo::db::sql::journal_entry set object_type ::xo::db::sql::journal_entry ::xo::db::sql::journal_entry set security_inherit_p t ::xo::db::sql::journal_entry set sql_package_name journal_entry ::xo::db::sql::journal_entry set supertype acs_object ::xo::db::sql::journal_entry set with_table true
- Methods: All Methods Documented Methods Hide Methods
- Source: Display Source Hide Source
- Variables: Show Variables Hide Variables