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

Class ::xo::db::sql::calendar

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

Class Relations

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

Methods (to be applied on the object)

  • delete (scripted, public)

     xo::db::sql::calendar[i] delete [ -dbn dbn ] -calendar_id calendar_id 

    Automatically generated method

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

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

    Testcases:
    No testcase defined.
    #function_args: {CALENDAR_ID {}}
    foreach var [list CALENDAR_ID]  {
      set varname [string tolower $var]
      if {[info exists $varname]} {
        set $var [set $varname]
        set _$var :$var
      } else {
        set _$var null
      }
    }
    set sql "
    select calendar__delete($_CALENDAR_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::calendar[i] new [ -dbn dbn ] -calendar_id calendar_id  \
        -calendar_name calendar_name  [ -object_type object_type ] \
        -owner_id owner_id  -private_p private_p  -package_id package_id  \
        -context_id context_id  -creation_date creation_date  \
        -creation_user creation_user  -creation_ip creation_ip  \
        [ -childof childof ]

    Automatically generated method

    Switches:
    -dbn
    (optional)
    -calendar_id
    (required)
    -calendar_name
    (required)
    -object_type
    (defaults to "calendar") (optional)
    -owner_id
    (required)
    -private_p
    (required)
    -package_id
    (required)
    -context_id
    (required)
    -creation_date
    (required)
    -creation_user
    (required)
    -creation_ip
    (required)
    -childof
    (optional)

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

    Testcases:
    No testcase defined.
    #function_args: {CALENDAR_ID {}} {CALENDAR_NAME {}} {OBJECT_TYPE calendar} {OWNER_ID {}} {PRIVATE_P {}} {PACKAGE_ID {}} {CONTEXT_ID {}} {CREATION_DATE {}} {CREATION_USER {}} {CREATION_IP {}}
    foreach var [list CALENDAR_ID CALENDAR_NAME OBJECT_TYPE OWNER_ID PRIVATE_P PACKAGE_ID CONTEXT_ID CREATION_DATE CREATION_USER CREATION_IP]  {
      set varname [string tolower $var]
      if {[info exists $varname]} {
        set $var [set $varname]
        set _$var :$var
      } else {
        set _$var null
      }
    }
    set sql "
    select calendar__new($_CALENDAR_ID$_CALENDAR_NAME$_OBJECT_TYPE$_OWNER_ID$_PRIVATE_P$_PACKAGE_ID$_CONTEXT_ID$_CREATION_DATE$_CREATION_USER$_CREATION_IP) 
        "
    db_with_handle -dbn $dbn db {
      #ns_log notice "--sql=$sql"
      return [ ns_set value [ns_pg_bind 0or1row $db $sql] 0 ]
    }