%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 ...

Defined in

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)

    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 (optional, defaults to "calendar")
    -owner_id (required)
    -private_p (required)
    -package_id (required)
    -context_id (required)
    -creation_date (required)
    -creation_user (required)
    -creation_ip (required)
    -childof (optional)

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

Variables

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