Ch 13 : Persistance des données
Persistance des données
Bibliographie
http://fr.wikipedia.org/wiki/Mac_OS_X_v10.7
Lion : sauvegarde automatique des applications
http://www.macgeneration.com/news/voir/190222/lion-sauvegarde-automatique-des-applications
SharedObject
http://www.flex-tutorial.fr/2008/06/21/flex-shared-object-creer-lire-et-ecrire-des-sharedobject/
et autres tutoriels liés
spécification open source d'AMF :
http://opensource.adobe.com/wiki/download/attachments/1114283/amf3_spec_05_05_08.pdf
registerClassAlias
http://tush.wordpress.com/2007/07/08/actionscript-3-serializing-classes-using-registerclassalias/
"sharedObject custom class problems with persistence"
http://www.actionscript.org/forums/showthread.php3?t=170794
Flex / AIR Serialization Lessons Learned
http://www.brooksandrus.com/blog/2008/03/25/flex-air-serialization-lessons-learned/
Simple data persistence in a Flex 4.5 mobile application
http://cookbooks.adobe.com/post_Simple_data_persistence_in_a_Flex_4_5_mobile_appli-18856.html
Plus complexe :
Complex data types, such as Class, cannot be saved to a shared object and require the developer to convert the data to a supported object type, such as a String. In addition, private variables are not automatically written to the shared object as well. Both of these use cases can be resolved by implementing the flash.utils.IExternalizable interface on the custom object that holds the complex type. This interface expects an object to implement a writeExternal() and readExternal() method that are used to save and restore an object. Check the ActionScript 3 Reference for more information on Iexternalizable.
http://livedocs.adobe.com/flex/3/html/help.html?content=data_access_4.html
The destination class also must have a no-args constructor.
Flex 4.5 Mobile Data Handling
http://devgirl.org/2011/05/18/flex-4-5-mobile-data-handling/
AIR Mobile – Application Pokémon (23) – Le mécanisme de persistance intégré au SDK Flex (PersistenceManager)
Flex Shared Objects – Conserver le type des objets dans un Shared Object avec le metatag RemoteClass
AIR Mobile – Récupération d'objets conservés en Shared Object ne fonctionne pas pour certains objets
"Voici un "bug" sur lequel je suis tombé avec @ckeromen. Il est assez étrange et la solution n'est pas évidente donc je la partage sur ce blog."
