Class ::xo::db::sql::workflow_case_log_entry

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

Defined in

Class Relations

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

Methods (to be applied on the object)

  • new (scripted, public)

     xo::db::sql::workflow_case_log_entry[i] new [ -dbn dbn ] \
        -entry_id entry_id  [ -content_type content_type ] \
        -case_id case_id  -action_id action_id  -comment comment  \
        -comment_mime_type comment_mime_type  \
        -creation_user creation_user  -creation_ip creation_ip  \
        -package_id package_id  [ -childof childof ]

    Automatically generated method

    Switches:
    -dbn (optional)
    -entry_id (required)
    -content_type (optional, defaults to "workflow_case_log_entry")
    -case_id (required)
    -action_id (required)
    -comment (required)
    -comment_mime_type (required)
    -creation_user (required)
    -creation_ip (required)
    -package_id (required)
    -childof (optional)

    Testcases:
    No testcase defined.
    #function_args: {ENTRY_ID {}} {CONTENT_TYPE workflow_case_log_entry} {CASE_ID {}} {ACTION_ID {}} {COMMENT {}} {COMMENT_MIME_TYPE {}} {CREATION_USER {}} {CREATION_IP {}} {PACKAGE_ID {}}
    foreach var [list ENTRY_ID CONTENT_TYPE CASE_ID ACTION_ID COMMENT COMMENT_MIME_TYPE CREATION_USER CREATION_IP PACKAGE_ID]  {
      set varname [string tolower $var]
      if {[info exists $varname]} {
        set $var [set $varname]
        set _$var :$var
      } else {
        set _$var null
      }
    }
    set sql "
    select workflow_case_log_entry__new($_ENTRY_ID$_CONTENT_TYPE$_CASE_ID$_ACTION_ID$_COMMENT$_COMMENT_MIME_TYPE$_CREATION_USER$_CREATION_IP$_PACKAGE_ID) 
        "
    db_with_handle -dbn $dbn db {
      #ns_log notice "--sql=$sql"
      return [ ns_set value [ns_pg_bind 0or1row $db $sql] 0 ]
    }