Changes between Version 6 and Version 7 of GROUP_FILE_ACCESSES_PERSISTENCE_R0


Ignore:
Timestamp:
11/06/09 15:39:35 (15 years ago)
Author:
mira
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • GROUP_FILE_ACCESSES_PERSISTENCE_R0

    v6 v7  
    3333The FileLocator open method should have similar logic just in reverse. First it should call the ZipPackagePersister with an empty storage and then should pass this storage to the revision persister. [[BR]] [[BR]] 
    3434The revision persister`s logic should be separate for saving and loading. It should get the value of the PersistenceKey HISTORY_LEN and call the changes persister for the last x changes. It calls the ResourceModelPersister for the initial model. The order of those depends on the Mode. [[BR]] [[BR]] 
    35 We will no longer need separate persisters for books, pages, frames, annotation sets, etc. Every Key  will have a method persist(). It will be used by the ResourceModelPersister for persistence of the value kept by this key in the model. The method will take arguments: [[BR]] [[BR]] 
     35We will no longer need separate persisters for books, pages, frames, annotation sets, etc. Every Key  will have a method persist(). It will be used by the ResourceModelPersister for persistence of the value kept by this key in the model. The method will take arguments: [[BR]]  
    3636-       the persisted format. [[BR]]  
    3737-       ValueRef to the persisted value [[BR]]  
    3838-       Storage where the value should be persisted [[BR]]  
    39 -       and persistence options. [[BR]]  
     39-       and persistence options. [[BR]] [[BR]] 
    4040The default behavior of this method should be to check if it is loading value that was not persisted. In this case it should just set the ref to null. Otherwise should be called the appropriate persister for the child of the given storage with name- the last part of the key`s id. The best way to find the appropriate persistence schema is using a utility method from the PersistenceUtil. [[BR]] [[BR]] 
    4141This logic should be provided by the persistR3() method of the DefaultPersistableKey that inherits Key. The Simple and Templated Keys should inherit the DefaultPersistableKey. Some of the concrete keys in the model should override this method. [[BR]] [[BR]]