You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

Serialisation is the process of creating a linear stream of bytes or characters corresponding to an object structure (a graph), so the same structure can be re-constructed by de-serialising the stream. This technique is used both to save the object structure to file and to transmit it across a network.

Introduction

Persistence is the term used for storing (application) state in between sessions, in our case model instances, i.e. objects structures (graphs), and covers file and database storage, including SQL, object and NoSQL databases. The logic of files and databases are so different that it is easier to treat them separately. A file is essentially a sequence or array of bytes, which may encode characters, and serialisation is the term used for mapping the object structure to byte sequences.

Model instances are graphs in general, but it is easier to think of them as mostly hierarchical, with links across.

 

Resources, resource factories and resource sets

 

 

XML-based formats

EMF has support for XML-based 

  • No labels