<<< Contents >>>

Basic usage (3)

Instance methods

obj.attrib1 () => obj
Persistent attribute accessors are automatically created
obj.attrib1 = "foo" => "foo"
Ditto for attribute mutators
obj.store ()=> nil
Saves changes made to obj to dabase backend
obj.refetch () => obj
Returns a new object instance populated with the most recent values from the database
obj.delete () => nil
Deletes the database record persisting obj, and clears persistent ID, but does change any data fields in obj itself

Copyright © 2003 Lennon Day-Reynolds -- lennon@day-reynolds.com