%3 ::xotcl::Object ::xotcl::Object ::xo::db::sql::journal_entry ::xo::db::sql::journal_entry → delete → delete_for_object → new ::xo::db::sql::journal_entry->::xotcl::Object

Class ::xo::db::sql::journal_entry

::xo::db::sql::journal_entry[i] create ...

Class Relations

  • class: ::xo::db::Class[i]
  • superclass: ::xotcl::Object[i]
::xo::db::Class create ::xo::db::sql::journal_entry \
     -superclass ::xotcl::Object

Methods (to be applied on the object)

  • delete (scripted, public)

     xo::db::sql::journal_entry[i] delete [ -dbn dbn ] -journal_id journal_id 

    Automatically generated method

    Switches:
    -dbn
    (optional)
    -journal_id
    (required)

    Partial Call Graph (max 5 caller/called nodes):
    %3 db_with_handle db_with_handle (public) xo::db::sql::journal_entry proc delete xo::db::sql::journal_entry proc delete xo::db::sql::journal_entry proc delete->db_with_handle

    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[i] delete_for_object [ -dbn dbn ] \
        -object_id object_id 

    Automatically generated method

    Switches:
    -dbn
    (optional)
    -object_id
    (required)

    Partial Call Graph (max 5 caller/called nodes):
    %3 db_with_handle db_with_handle (public) xo::db::sql::journal_entry proc delete_for_object xo::db::sql::journal_entry proc delete_for_object xo::db::sql::journal_entry proc delete_for_object->db_with_handle

    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[i] 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
    (defaults to "now()") (optional)
    -creation_user
    (optional)
    -creation_ip
    (optional)
    -msg
    (optional)
    -childof
    (optional)

    Partial Call Graph (max 5 caller/called nodes):
    %3 db_with_handle db_with_handle (public) xo::db::sql::journal_entry proc new xo::db::sql::journal_entry proc new xo::db::sql::journal_entry proc new->db_with_handle

    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 ]
    }