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


Package/File Information

Package provided: xotcl::store::persistence 0.8
Package required: xotcl::trace
Package required: xotcl::package
Package required: xotcl::mixinStrategy
Package required: xotcl::store

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
    

Instprocs


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.