%3 ::xotcl::Object ::xotcl::Object ::xo::db::sql::search_observer ::xo::db::sql::search_observer → dequeue → enqueue ::xo::db::sql::search_observer->::xotcl::Object

Class ::xo::db::sql::search_observer

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

Defined in

Class Relations

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

Methods (to be applied on the object)

  • dequeue (scripted, public)

     xo::db::sql::search_observer[i] dequeue [ -dbn dbn ] \
        -object_id object_id  -event_date event_date  -event event 

    Automatically generated method

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

    Testcases:
    No testcase defined.
    #function_args: {OBJECT_ID {}} {EVENT_DATE {}} {EVENT {}}
    foreach var [list OBJECT_ID EVENT_DATE EVENT]  {
      set varname [string tolower $var]
      if {[info exists $varname]} {
        set $var [set $varname]
        set _$var :$var
      } else {
        set _$var null
      }
    }
    set sql "
    select search_observer__dequeue($_OBJECT_ID$_EVENT_DATE$_EVENT) 
        "
    db_with_handle -dbn $dbn db {
      #ns_log notice "--sql=$sql"
      return [ ns_set value [ns_pg_bind 0or1row $db $sql] 0 ]
    }
  • enqueue (scripted, public)

     xo::db::sql::search_observer[i] enqueue [ -dbn dbn ] \
        -object_id object_id  -event event 

    Automatically generated method

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

    Testcases:
    No testcase defined.
    #function_args: {OBJECT_ID {}} {EVENT {}}
    foreach var [list OBJECT_ID EVENT]  {
      set varname [string tolower $var]
      if {[info exists $varname]} {
        set $var [set $varname]
        set _$var :$var
      } else {
        set _$var null
      }
    }
    set sql "
    select search_observer__enqueue($_OBJECT_ID$_EVENT) 
        "
    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::search_observer set __default_metaclass ::xotcl::Class
::xo::db::sql::search_observer set __default_superclass ::xotcl::Object
::xo::db::sql::search_observer set abstract_p f
::xo::db::sql::search_observer set auto_save false
::xo::db::sql::search_observer set name_method {}
::xo::db::sql::search_observer set object_type ::xo::db::sql::search_observer
::xo::db::sql::search_observer set security_inherit_p t
::xo::db::sql::search_observer set sql_package_name search_observer
::xo::db::sql::search_observer set supertype acs_object
::xo::db::sql::search_observer set with_table true