- Methods: All Methods Documented Methods Hide Methods
- Source: Display Source Hide Source
- Variables: Show Variables Hide Variables
Class ::xo::db::sql::acs_object_util
::xo::db::sql::acs_object_util create ...
Defined in
Class Relations
::xo::db::Class create ::xo::db::sql::acs_object_util \ -superclass ::xotcl::ObjectMethods (to be applied on the object)
get_object_type (scripted, public)
xo::db::sql::acs_object_util get_object_type [ -dbn dbn ] \ -object_id object_idAutomatically generated method
- Switches:
- -dbn (optional)
- -object_id (required)
- Testcases:
- No testcase defined.
#function_args: {OBJECT_ID {}} foreach var [list 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_object_util__get_object_type($_OBJECT_ID) " db_with_handle -dbn $dbn db { #ns_log notice "--sql=$sql" return [ ns_set value [ns_pg_bind 0or1row $db $sql] 0 ] }object_ancestor_type_p (scripted, public)
xo::db::sql::acs_object_util object_ancestor_type_p [ -dbn dbn ] \ -object_id object_id -object_type object_typeAutomatically generated method
- Switches:
- -dbn (optional)
- -object_id (required)
- -object_type (required)
- Testcases:
- No testcase defined.
#function_args: {OBJECT_ID {}} {OBJECT_TYPE {}} foreach var [list OBJECT_ID OBJECT_TYPE] { set varname [string tolower $var] if {[info exists $varname]} { set $var [set $varname] set _$var :$var } else { set _$var null } } set sql " select acs_object_util__object_ancestor_type_p($_OBJECT_ID, $_OBJECT_TYPE) " db_with_handle -dbn $dbn db { #ns_log notice "--sql=$sql" return [ ns_set value [ns_pg_bind 0or1row $db $sql] 0 ] }object_type_exist_p (scripted, public)
xo::db::sql::acs_object_util object_type_exist_p [ -dbn dbn ] \ -object_type object_typeAutomatically generated method
- Switches:
- -dbn (optional)
- -object_type (required)
- Testcases:
- No testcase defined.
#function_args: {OBJECT_TYPE {}} foreach var [list OBJECT_TYPE] { set varname [string tolower $var] if {[info exists $varname]} { set $var [set $varname] set _$var :$var } else { set _$var null } } set sql " select acs_object_util__object_type_exist_p($_OBJECT_TYPE) " db_with_handle -dbn $dbn db { #ns_log notice "--sql=$sql" return [ ns_set value [ns_pg_bind 0or1row $db $sql] 0 ] }object_type_p (scripted, public)
xo::db::sql::acs_object_util object_type_p [ -dbn dbn ] \ -object_id object_id -object_type object_typeAutomatically generated method
- Switches:
- -dbn (optional)
- -object_id (required)
- -object_type (required)
- Testcases:
- No testcase defined.
#function_args: {OBJECT_ID {}} {OBJECT_TYPE {}} foreach var [list OBJECT_ID OBJECT_TYPE] { set varname [string tolower $var] if {[info exists $varname]} { set $var [set $varname] set _$var :$var } else { set _$var null } } set sql " select acs_object_util__object_type_p($_OBJECT_ID, $_OBJECT_TYPE) " db_with_handle -dbn $dbn db { #ns_log notice "--sql=$sql" return [ ns_set value [ns_pg_bind 0or1row $db $sql] 0 ] }type_ancestor_type_p (scripted, public)
xo::db::sql::acs_object_util type_ancestor_type_p [ -dbn dbn ] \ -object_type1 object_type1 -object_type2 object_type2Automatically generated method
- Switches:
- -dbn (optional)
- -object_type1 (required)
- -object_type2 (required)
- Testcases:
- No testcase defined.
#function_args: {OBJECT_TYPE1 {}} {OBJECT_TYPE2 {}} foreach var [list OBJECT_TYPE1 OBJECT_TYPE2] { set varname [string tolower $var] if {[info exists $varname]} { set $var [set $varname] set _$var :$var } else { set _$var null } } set sql " select acs_object_util__type_ancestor_type_p($_OBJECT_TYPE1, $_OBJECT_TYPE2) " 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_object_util set __default_metaclass ::xotcl::Class ::xo::db::sql::acs_object_util set __default_superclass ::xotcl::Object ::xo::db::sql::acs_object_util set abstract_p f ::xo::db::sql::acs_object_util set auto_save false ::xo::db::sql::acs_object_util set name_method {} ::xo::db::sql::acs_object_util set object_type ::xo::db::sql::acs_object_util ::xo::db::sql::acs_object_util set security_inherit_p t ::xo::db::sql::acs_object_util set sql_package_name acs_object_util ::xo::db::sql::acs_object_util set supertype acs_object ::xo::db::sql::acs_object_util set with_table true
- Methods: All Methods Documented Methods Hide Methods
- Source: Display Source Hide Source
- Variables: Show Variables Hide Variables