Yote::ObjProvider - Serves Yote objects. Configured to a persistance engine.
This module is essentially a private module and its methods will not be called directly by programs. This module is the front end for assigning IDs to objects, fetching objects, keeping track of objects that need saving (are dirty) and saving all dirty objects. It is the only module to directly interact with the datastore layer.
Returns the class name of the given container from a host class. For example, if Yote::Obj $o has an array attached to its myarray field, The syntax is Yote::ObjProvider::container_type( $o, 'myarray' ) <--- returns 'ARRAY';
Returns the number of items in the given container. Args are optional and are
Marks the item as needing a save.
Requests the data store used disconnect.
Returns the array ref, hash ref or yote object specified by the numeric id or hash path.
Returns the id of the first object in the system, the Root. This may or may not be numeric.
Removes any object with the given ID from any cache.
Clears out all caches.
Returns the id assigned to the array ref, hash ref or yote object. This method assigns that id if none had been assigned to it.
Removes the key from the hash given by the id direclty from the database.
Uses a database lookup to return the value for the key for the hash specified by hash_id.
Uses a database lookup to return if the key for the hash specified by hash_id has a value.
Insert a key value pair directly into the database for the given hash_id.
Uses the database to directly delete a given list element. This will cause the list to be reindexed.
Directly looks in the database to return the list element at the given index.
Inserts the item into the list with an optional index. If not given, this inserts to the end of the list. This method will cause the list to be reindexed.
This method returns a list of the public API methods attached to the given package name. This excludes the automatic getters and setters that are part of yote objects.
Returns a paginated list or hash that is attached to the object specified by obj_id. Arguments are
Recycles all objects in the range given if they cannot trace back a path to root.
Removes the items ( by value ) from the list with the given id.
This saves the hash ref, array ref or yote object argument in the data store.
Stows all objects that are marked as dirty. This is called automatically by the application server and need not be explicitly called.
Returns the internal yote storage for the value, be it a string/number value, or yote reference.
Returns the external value given the internal identifier. The external value can be a string/number value or a yote reference.
Eric Wolf firstname.lastname@example.org http://madyote.com
Copyright (C) 2012 Eric Wolf
This module is free software; it can be used under the same terms as perl itself.