class Audrey::Node::Collection
¶ ↑
Audrey::Node::Collection
Public Class Methods
create_object(p_db, opts={})
click to toggle source
# File lib/audrey.rb, line 798 def self.create_object(p_db, opts={}) # $tm.hrm obj = new_object() node = self.new(p_db, opts) node.attach_to obj return obj end
Public Instance Methods
any?()
click to toggle source
# File lib/audrey.rb, line 837 def any? read_check() return @engine.collection_length(@pk) > 0 end
changed()
click to toggle source
# File lib/audrey.rb, line 861 def changed # $tm.hrm return @engine.changed_get(@pk) end
changed=(bool)
click to toggle source
# File lib/audrey.rb, line 866 def changed=(bool) # $tm.hrm return @engine.changed_set(@pk, bool) end
child_pks()
click to toggle source
# File lib/audrey.rb, line 849 def child_pks # $tm.hrm return @engine.collection_child_pks(@pk) end
clear()
click to toggle source
# File lib/audrey.rb, line 813 def clear write_check() return @engine.clear_collection(@pk) end
length()
click to toggle source
# File lib/audrey.rb, line 825 def length read_check() return @engine.collection_length(@pk) end
Private Instance Methods
save_child(child, opts={})
click to toggle source
# File lib/audrey.rb, line 882 def save_child(child, opts={}) write_check() child_pk = @db.ensure_object_record(child) @engine.add_relationship(@pk, child_pk, 'hkey'=>opts['key']) end