Yote::Obj - Base class for all persistant Yote objects.
Yote::Obj is a container class with hooks into the persistance engine. It has few methods, but dynamically autoloads and installed getters and setters as needed. This class is meant to be overridden by application objects, though it needs no modification to be a perfectly functional container class.
The new method takes no arguments. Any object created with new automatically gets assigned an ID and init is called only once before the object is saved in the data store.
This is a stub method meant to be overridden by subclasses.
Returns true if the object passed in is equivalent to this one. Note that only one instance of an individual object will be present at a time in the application server.
Takes no arguments and causes this object to be written into the datastore. This is automatically called by the application server.
Returns the value of foo where foo can be any string. This may take a single argument such that if foo is undefined in the object, it will be set to the initial argument. This may return an array reference, hash reference, Yote::Obj or scalar.
Sets the value of foo to the given argument, which may be an array reference, hash reference, Yote::Obj or scalar.
Ads the item to the list bar. If bar does not exist, it is created as a list. If it exists and is not a list, an error will be thrown.
Removes the item from the list bar. If bar does not exist, it is created as a list. If it exists and is not a list, an error will be thrown.
Copyright (C) 2011 Eric Wolf
This module is free software; it can be used under the same terms as perl itself.