./library/store/Persistence.xotcl ./library/store/Persistence.xotcl

Package/File Information

No package provided/required

Defined Objects/Classes:
Filename: ./library/store/Persistence.xotcl

Description: Persistent store for XOTcl objects with Eager and Lazy persistence. Take a look at "persistenceExample.xotcl" for exmaple of usage.

Class: PersistenceMgr

Class: Class
Description: A persistent store requires a persistent manager. The persistent manager implements the Storage interface via storage mixin. With the parameter "dbPackage" we can specify which storage will be used. The persistent manager than tries to load the package "xotcl::${dbPackage}Storage". Default is Sdbm. Example:
	    PersistenceMgr pmgr -persistenceDir . -persistenceFile example-db

Class: Persistent

Class: Class
Procs/Instprocs: makeVarScript, persistenceMgr, persistent, persistent+init, persistentVars, unPersistent.
Description: Superclass or mixin class for all persistent objects. Normally subclasses are used as mixins or instmixins on object, like:
	    o mixin Persistent=Eager
	    p mixin Persistent=Lazy


Class: Persistent=Eager

Class: Class
Description: Eager persistence strategy. Store everything at the same moment to the database

Class: Persistent=Lazy

Class: Class
Description: Lazy persistence strategy. Store everything on object destroy (or program termination).

Back to index page.