Changes between Version 6 and Version 7 of GROUP_FILE_ACCESSES_PERSISTENCE_R0
- Timestamp:
- 11/06/09 15:39:35 (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
GROUP_FILE_ACCESSES_PERSISTENCE_R0
v6 v7 33 33 The 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]] 34 34 The 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]]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]] 36 36 - the persisted format. [[BR]] 37 37 - ValueRef to the persisted value [[BR]] 38 38 - Storage where the value should be persisted [[BR]] 39 - and persistence options. [[BR]] 39 - and persistence options. [[BR]] [[BR]] 40 40 The 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]] 41 41 This 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]]