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

Class ::xo::db::sql::acs_mail_gc_object

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

Defined in

Class Relations

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

Methods (to be applied on the object)

  • delete (scripted, public)

     xo::db::sql::acs_mail_gc_object[i] delete [ -dbn dbn ] \
        -gc_object_id gc_object_id 

    Automatically generated method

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

    Testcases:
    No testcase defined.
    #function_args: {GC_OBJECT_ID {}}
    foreach var [list GC_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 acs_mail_gc_object__delete($_GC_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::acs_mail_gc_object[i] new [ -dbn dbn ] \
        [ -gc_object_id gc_object_id ] [ -object_type object_type ] \
        [ -creation_date creation_date ] [ -creation_user creation_user ] \
        [ -creation_ip creation_ip ] [ -context_id context_id ] \
        [ -childof childof ]

    Automatically generated method

    Switches:
    -dbn (optional)
    -gc_object_id (optional)
    -object_type (optional, defaults to "acs_mail_gc_object")
    -creation_date (optional, defaults to "now")
    -creation_user (optional)
    -creation_ip (optional)
    -context_id (optional)
    -childof (optional)

    Testcases:
    No testcase defined.
    #function_args: {GC_OBJECT_ID null} {OBJECT_TYPE acs_mail_gc_object} {CREATION_DATE now} {CREATION_USER null} {CREATION_IP null} {CONTEXT_ID null}
    foreach var [list GC_OBJECT_ID OBJECT_TYPE 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 acs_mail_gc_object__new($_GC_OBJECT_ID$_OBJECT_TYPE$_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 ]
    }

Variables

::xo::db::sql::acs_mail_gc_object set __default_metaclass ::xotcl::Class
::xo::db::sql::acs_mail_gc_object set __default_superclass ::xotcl::Object
::xo::db::sql::acs_mail_gc_object set abstract_p f
::xo::db::sql::acs_mail_gc_object set auto_save false
::xo::db::sql::acs_mail_gc_object set name_method {}
::xo::db::sql::acs_mail_gc_object set object_type ::xo::db::sql::acs_mail_gc_object
::xo::db::sql::acs_mail_gc_object set security_inherit_p t
::xo::db::sql::acs_mail_gc_object set sql_package_name acs_mail_gc_object
::xo::db::sql::acs_mail_gc_object set supertype acs_object
::xo::db::sql::acs_mail_gc_object set with_table true