%3 ::xotcl::Object ::xotcl::Object ::xo::db::sql::party ::xo::db::sql::party → delete → email → name → new ::xo::db::sql::party->::xotcl::Object

Class ::xo::db::sql::party

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

Class Relations

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

Methods (to be applied on the object)

  • delete (scripted, public)

     ::xo::db::sql::party[i] delete [ -dbn dbn ] -party_id party_id 

    Automatically generated method

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

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

    Testcases:
    No testcase defined.
    ::xo::db::sql::party proc delete {{-dbn {}} -party_id:required} {
          #function_args: {PARTY_ID {}}
          foreach var [list PARTY_ID]  {
            set varname [string tolower $var]
            if {[info exists $varname]} {
              set $var [set $varname]
              set _$var :$var
            } else {
              set _$var null
            }
          }
          set sql "
          select party__delete($_PARTY_ID) 
        "
          db_with_handle -dbn $dbn db {
            #ns_log notice "--sql=$sql"
            return [ ns_set value [ns_pg_bind 0or1row $db $sql] 0 ]
          }
        }
  • email (scripted, public)

     ::xo::db::sql::party[i] email [ -dbn dbn ] -party_id party_id 

    Automatically generated method

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

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

    Testcases:
    No testcase defined.
    ::xo::db::sql::party proc email {{-dbn {}} -party_id:required} {
          #function_args: {PARTY_ID {}}
          foreach var [list PARTY_ID]  {
            set varname [string tolower $var]
            if {[info exists $varname]} {
              set $var [set $varname]
              set _$var :$var
            } else {
              set _$var null
            }
          }
          set sql "
          select party__email($_PARTY_ID) 
        "
          db_with_handle -dbn $dbn db {
            #ns_log notice "--sql=$sql"
            return [ ns_set value [ns_pg_bind 0or1row $db $sql] 0 ]
          }
        }
  • name (scripted, public)

     ::xo::db::sql::party[i] name [ -dbn dbn ] -party_id party_id 

    Automatically generated method

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

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

    Testcases:
    No testcase defined.
    ::xo::db::sql::party proc name {{-dbn {}} -party_id:required} {
          #function_args: {PARTY_ID {}}
          foreach var [list PARTY_ID]  {
            set varname [string tolower $var]
            if {[info exists $varname]} {
              set $var [set $varname]
              set _$var :$var
            } else {
              set _$var null
            }
          }
          set sql "
          select party__name($_PARTY_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::party[i] new [ -dbn dbn ] [ -party_id party_id ] \
        [ -object_type object_type ] [ -creation_date creation_date ] \
        [ -creation_user creation_user ] [ -creation_ip creation_ip ] \
        -email email  [ -url url ] [ -context_id context_id ] \
        [ -childof childof ]

    Automatically generated method

    Switches:
    -dbn (optional)
    -party_id (optional)
    -object_type (defaults to "party") (optional)
    -creation_date (defaults to "now()") (optional)
    -creation_user (optional)
    -creation_ip (optional)
    -email (required)
    -url (optional)
    -context_id (optional)
    -childof (optional)

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

    Testcases:
    No testcase defined.
    ::xo::db::sql::party proc new {{-dbn {}} -party_id {-object_type party} {-creation_date now()} -creation_user -creation_ip -email:required -url -context_id -childof} {
          #function_args: {PARTY_ID null} {OBJECT_TYPE party} {CREATION_DATE now()} {CREATION_USER null} {CREATION_IP null} {EMAIL {}} {URL null} {CONTEXT_ID null}
          foreach var [list PARTY_ID OBJECT_TYPE CREATION_DATE CREATION_USER CREATION_IP EMAIL URL 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 party__new($_PARTY_ID$_OBJECT_TYPE$_CREATION_DATE$_CREATION_USER$_CREATION_IP$_EMAIL$_URL$_CONTEXT_ID) 
        "
          db_with_handle -dbn $dbn db {
            #ns_log notice "--sql=$sql"
            return [ ns_set value [ns_pg_bind 0or1row $db $sql] 0 ]
          }
        }