Class XmlStore
In: lib/storage/xmlstore.rb
Parent: Store
XmlStore
Store
TopLevel

The XmlStore class manages access to all object storage.

db
is a handle to the database implementation (in this iteration a hash).
dbtop
stores the highest id used in the database.

Methods

check   delete   each   get   new   put   save  

Public Class methods

Public Instance methods

Check if an object is in the database by its id.

oid
is the id to use in the search.
return
true or false

Deletes an object from the database.

oid
is the id to to be deleted.
return
Undefined.

Iterate through all objects

yield
Each object in database to block of caller.

Finds an object in the database by its id.

oid
is the id to use in the search.
return
Handle to the object or nil.

Adds a new object to the database.

obj
is a reference to object to be added
return
Undefined.

Save the world

return
Undefined.

[Validate]