Skip to content

Commit 30d6875

Browse files
committed
docs: diagrams for serialized entity and serialized lob
1 parent a97bfec commit 30d6875

File tree

4 files changed

+8
-0
lines changed

4 files changed

+8
-0
lines changed

serialized-entity/README.md

+4
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ Wikipedia says
3232

3333
> In computing, serialization is the process of translating a data structure or object state into a format that can be stored (e.g. files in secondary storage devices, data buffers in primary storage devices) or transmitted (e.g. data streams over computer networks) and reconstructed later (possibly in a different computer environment). When the resulting series of bits is reread according to the serialization format, it can be used to create a semantically identical clone of the original object. For many complex objects, such as those that make extensive use of references, this process is not straightforward. Serialization of objects does not include any of their associated methods with which they were previously linked.
3434
35+
Flowchart
36+
37+
![Serialized Entity flowchart](./etc/serialized-entity-flowchart.png)
38+
3539
## Programmatic Example of Serialized Entity Pattern in Java
3640

3741
The Serialized Entity design pattern is a way to easily persist Java objects to the database. It uses the `Serializable` interface and the DAO (Data Access Object) pattern. The pattern first uses `Serializable` to convert a Java object into a set of bytes, then it uses the DAO pattern to store this set of bytes as a BLOB (Binary Large OBject) in the database.
Loading

serialized-lob/README.md

+4
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ In plain words
3030

3131
> The Serialized LOB design pattern manages the storage of large objects, such as files or multimedia, by serializing and storing them directly within a database.
3232
33+
Flowchart
34+
35+
![Serialized LOB flowchart](./etc/serialized-lob-flowchart.png)
36+
3337
## Programmatic Example of Serialized LOB Pattern in Java
3438

3539
The Serialized Large Object (LOB) design pattern is a way to handle large objects in a database. It involves serializing an object graph into a single large object (a BLOB or CLOB, for Binary Large Object or Character Large Object, respectively) and storing it in the database. When the object graph needs to be retrieved, it is read from the database and deserialized back into the original object graph.
39.5 KB
Loading

0 commit comments

Comments
 (0)