Class Relations
- class: ::nx::EnsembleObject
::nx::EnsembleObject create ::acs::db::nsdb-postgresql::slot::__call::rel_segment
Methods (to be applied on the object)
delete (scripted)
db_with_handle -dbn $dbn __DB {
set s [ns_pg_bind 0or1row $__DB {select rel_segment__delete(CAST(:segment_id AS integer))}]
return [ns_set value $s 0]
}
get (scripted)
db_with_handle -dbn $dbn __DB {
set s [ns_pg_bind 0or1row $__DB {select rel_segment__get(CAST(:group_id AS integer),:rel_type)}]
return [ns_set value $s 0]
}
get_or_new (scripted)
db_with_handle -dbn $dbn __DB {
set s [ns_pg_bind 0or1row $__DB {select rel_segment__get_or_new(CAST(:group_id AS integer),:rel_type,:segment_name)}]
return [ns_set value $s 0]
}
name (scripted)
db_with_handle -dbn $dbn __DB {
set s [ns_pg_bind 0or1row $__DB {select rel_segment__name(CAST(:segment_id AS integer))}]
return [ns_set value $s 0]
}
new (scripted)
db_with_handle -dbn $dbn __DB {
set s [ns_pg_bind 0or1row $__DB {select rel_segment__new(CAST(:segment_id AS integer),:object_type,:creation_date,CAST(:creation_user AS integer),:creation_ip,:email,:url,:segment_name,CAST(:group_id AS integer),:rel_type,CAST(:context_id AS integer))}]
return [ns_set value $s 0]
}