%3 ::xotcl::Object ::xotcl::Object ::xo::db::sql::category_synonym ::xo::db::sql::category_synonym → convert_string → del → edit → get_similarity → new → reindex → search ::xo::db::sql::category_synonym->::xotcl::Object

Class ::xo::db::sql::category_synonym

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

Class Relations

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

Methods (to be applied on the object)

  • convert_string (scripted, public)

     xo::db::sql::category_synonym[i] convert_string [ -dbn dbn ] -name name 

    Automatically generated method

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

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

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

     xo::db::sql::category_synonym[i] del [ -dbn dbn ] -synonym_id synonym_id 

    Automatically generated method

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

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

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

     xo::db::sql::category_synonym[i] edit [ -dbn dbn ] \
        -synonym_id synonym_id  -new_name new_name  -locale locale 

    Automatically generated method

    Switches:
    -dbn
    (optional)
    -synonym_id
    (required)
    -new_name
    (required)
    -locale
    (required)

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

    Testcases:
    No testcase defined.
    #function_args: {SYNONYM_ID {}} {NEW_NAME {}} {LOCALE {}}
    foreach var [list SYNONYM_ID NEW_NAME LOCALE]  {
      set varname [string tolower $var]
      if {[info exists $varname]} {
        set $var [set $varname]
        set _$var :$var
      } else {
        set _$var null
      }
    }
    set sql "
    select category_synonym__edit($_SYNONYM_ID$_NEW_NAME$_LOCALE) 
        "
    db_with_handle -dbn $dbn db {
      #ns_log notice "--sql=$sql"
      return [ ns_set value [ns_pg_bind 0or1row $db $sql] 0 ]
    }
  • get_similarity (scripted, public)

     xo::db::sql::category_synonym[i] get_similarity [ -dbn dbn ] -len1 len1  \
        -len2 len2  -matches matches 

    Automatically generated method

    Switches:
    -dbn
    (optional)
    -len1
    (required)
    -len2
    (required)
    -matches
    (required)

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

    Testcases:
    No testcase defined.
    #function_args: {LEN1 {}} {LEN2 {}} {MATCHES {}}
    foreach var [list LEN1 LEN2 MATCHES]  {
      set varname [string tolower $var]
      if {[info exists $varname]} {
        set $var [set $varname]
        set _$var :$var
      } else {
        set _$var null
      }
    }
    set sql "
    select category_synonym__get_similarity($_LEN1$_LEN2$_MATCHES) 
        "
    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::category_synonym[i] new [ -dbn dbn ] -name name  \
        -locale locale  -category_id category_id  -synonym_id synonym_id  \
        [ -childof childof ]

    Automatically generated method

    Switches:
    -dbn
    (optional)
    -name
    (required)
    -locale
    (required)
    -category_id
    (required)
    -synonym_id
    (required)
    -childof
    (optional)

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

    Testcases:
    No testcase defined.
    #function_args: {NAME {}} {LOCALE {}} {CATEGORY_ID {}} {SYNONYM_ID {}}
    foreach var [list NAME LOCALE CATEGORY_ID SYNONYM_ID]  {
      set varname [string tolower $var]
      if {[info exists $varname]} {
        set $var [set $varname]
        set _$var :$var
      } else {
        set _$var null
      }
    }
    set sql "
    select category_synonym__new($_NAME$_LOCALE$_CATEGORY_ID$_SYNONYM_ID) 
        "
    db_with_handle -dbn $dbn db {
      #ns_log notice "--sql=$sql"
      return [ ns_set value [ns_pg_bind 0or1row $db $sql] 0 ]
    }
  • reindex (scripted, public)

     xo::db::sql::category_synonym[i] reindex [ -dbn dbn ] \
        -synonym_id synonym_id  -name name  -locale locale 

    Automatically generated method

    Switches:
    -dbn
    (optional)
    -synonym_id
    (required)
    -name
    (required)
    -locale
    (required)

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

    Testcases:
    No testcase defined.
    #function_args: {SYNONYM_ID {}} {NAME {}} {LOCALE {}}
    foreach var [list SYNONYM_ID NAME LOCALE]  {
      set varname [string tolower $var]
      if {[info exists $varname]} {
        set $var [set $varname]
        set _$var :$var
      } else {
        set _$var null
      }
    }
    set sql "
    select category_synonym__reindex($_SYNONYM_ID$_NAME$_LOCALE) 
        "
    db_with_handle -dbn $dbn db {
      #ns_log notice "--sql=$sql"
      return [ ns_set value [ns_pg_bind 0or1row $db $sql] 0 ]
    }
  • search (scripted, public)

     xo::db::sql::category_synonym[i] search [ -dbn dbn ] \
        -search_text search_text  -locale locale 

    Automatically generated method

    Switches:
    -dbn
    (optional)
    -search_text
    (required)
    -locale
    (required)

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

    Testcases:
    No testcase defined.
    #function_args: {SEARCH_TEXT {}} {LOCALE {}}
    foreach var [list SEARCH_TEXT LOCALE]  {
      set varname [string tolower $var]
      if {[info exists $varname]} {
        set $var [set $varname]
        set _$var :$var
      } else {
        set _$var null
      }
    }
    set sql "
    select category_synonym__search($_SEARCH_TEXT$_LOCALE) 
        "
    db_with_handle -dbn $dbn db {
      #ns_log notice "--sql=$sql"
      return [ ns_set value [ns_pg_bind 0or1row $db $sql] 0 ]
    }