Show
Ignore:
Timestamp:
07/30/08 11:36:20 (4 months ago)
Author:
hans
Message:

Remove INITIALIZE-PERSISTENT-INSTANCE, use INITIALIZE-INSTANCE
instead. During restore, use ALLOCATE-INSTANCE to reinstantiate
persistent objects.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/bknr/datastore/src/data/tutorial.lisp

    r3035 r3689  
    459459;;; to be created using the function `MAKE-OBJECT'. This creates an 
    460460;;; instance of the object inside a transaction, sets its ID slot 
    461 ;;; appropriately, and then calls `INITIALIZE-PERSISTENT-INSTANCE' and 
    462 ;;; `INITIALIZE-TRANSIENT-INSTANCE'. The first method is called when 
    463 ;;; the object is created inside a transaction, but not if the object 
    464 ;;; is being restored from the snapshot file. This method has to be 
    465 ;;; overridden in order to initialize persistent 
    466 ;;; slots. `INITIALIZE-TRANSIENT-INSTANCE' is called at object 
    467 ;;; creation inside a transaction and at object creation during 
    468 ;;; restore. It is used to initialize the transient slots (not logged 
     461;;; appropriately, and then calls `INITIALIZE-TRANSIENT-INSTANCE'. The 
     462;;; standard CLOS function `INITIALIZE-INSTANCE' is called when the 
     463;;; object is created inside a transaction, but not if the object is 
     464;;; being restored from the snapshot file. 
     465;;; `INITIALIZE-TRANSIENT-INSTANCE' is called at object creation 
     466;;; inside a transaction and at object creation during restore. It 
     467;;; must be specialized to initialize the transient slots (not logged 
    469468;;; to the snapshot file) of a persistent object. 
    470469;;; 
     
    817816;;; after each slot value has been set, the method 
    818817;;; `INITIALIZE-TRANSIENT-INSTANCE' is called for each created 
    819 ;;; object. The method `INITIALIZE-PERSISTENT-INSTANCE' is not called, 
    820 ;;; as it has to be executed only once at the time the persistent 
    821 ;;; object is created. 
     818;;; object. 
    822819 
    823820;;;## Garbage collecting blobs