xo::db::Class proc get_object_type (public)

 xo::db::Class[i] get_object_type [ -id id ]

Defined in packages/xotcl-core/tcl/05-db-procs.tcl

Return the object type for the give id.

Switches:
-id
(optional)
Returns:
object_type, typically an XOTcl class

Partial Call Graph (max 5 caller/called nodes):
%3 test_xotcl_core_tutorial_1 xotcl_core_tutorial_1 (test xotcl-core) xo::db::Class proc get_object_type xo::db::Class proc get_object_type test_xotcl_core_tutorial_1->xo::db::Class proc get_object_type test_xotcl_core_tutorial_2 xotcl_core_tutorial_2 (test xotcl-core) test_xotcl_core_tutorial_2->xo::db::Class proc get_object_type

Testcases:
xotcl_core_tutorial_1, xotcl_core_tutorial_2
Source code:
xo::xotcl_object_type_cache eval -partition_key $id $id {
  ::xo::dc 1row get_class "select object_type from acs_objects where object_id=:id"
  return $object_type
}
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: