| 1 |
<?xml version="1.0" encoding="UTF-8" standalone="no"?> |
| 2 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| 3 |
<html xmlns="http://www.w3.org/1999/xhtml"> |
| 4 |
<head> |
| 5 |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> |
| 6 |
<title>Serialized Object Storage</title> |
| 7 |
<link rel="stylesheet" href="gettingStarted.css" type="text/css" /> |
| 8 |
<meta name="generator" content="DocBook XSL Stylesheets V1.73.2" /> |
| 9 |
<link rel="start" href="index.html" title="Berkeley DB Collections Tutorial" /> |
| 10 |
<link rel="up" href="collectionOverview.html" title="Appendix A. API Notes and Details" /> |
| 11 |
<link rel="prev" href="UsingStoredCollections.html" title="Using Stored Collections" /> |
| 12 |
</head> |
| 13 |
<body> |
| 14 |
<div xmlns="" class="navheader"> |
| 15 |
<div class="libver"> |
| 16 |
<p>Library Version 11.2.5.3</p> |
| 17 |
</div> |
| 18 |
<table width="100%" summary="Navigation header"> |
| 19 |
<tr> |
| 20 |
<th colspan="3" align="center"> |
| 21 |
Serialized Object Storage |
| 22 |
</th> |
| 23 |
</tr> |
| 24 |
<tr> |
| 25 |
<td width="20%" align="left"><a accesskey="p" href="UsingStoredCollections.html">Prev</a> </td> |
| 26 |
<th width="60%" align="center">Appendix A. |
| 27 |
API Notes and Details |
| 28 |
</th> |
| 29 |
<td width="20%" align="right"> </td> |
| 30 |
</tr> |
| 31 |
</table> |
| 32 |
<hr /> |
| 33 |
</div> |
| 34 |
<div class="sect1" lang="en" xml:lang="en"> |
| 35 |
<div class="titlepage"> |
| 36 |
<div> |
| 37 |
<div> |
| 38 |
<h2 class="title" style="clear: both"><a id="SerializedObjectStorage"></a> |
| 39 |
Serialized Object Storage |
| 40 |
</h2> |
| 41 |
</div> |
| 42 |
</div> |
| 43 |
</div> |
| 44 |
<p> |
| 45 |
Serialization of an object graph includes class information as |
| 46 |
well as instance information. If more than one instance of the same |
| 47 |
class is serialized as separate serialization operations then the |
| 48 |
class information exists more than once. To eliminate this |
| 49 |
inefficiency the |
| 50 |
<a class="ulink" href="../../java/com/sleepycat/bind/serial/StoredClassCatalog.html" target="_top">StoredClassCatalog</a> |
| 51 |
|
| 52 |
class will store the class format for all database records stored |
| 53 |
using a |
| 54 |
<a class="ulink" href="../../java/com/sleepycat/bind/serial/SerialBinding.html" target="_top">SerialBinding</a>. |
| 55 |
Refer to the |
| 56 |
<code class="literal">ship</code> sample code for examples (the class |
| 57 |
<code class="literal">SampleDatabase</code> in |
| 58 |
<code class="filename">examples_java/src/com/sleepycat/examples/collections/ship/basic/SampleDatabase.java</code> |
| 59 |
|
| 60 |
is a good place to start). |
| 61 |
</p> |
| 62 |
</div> |
| 63 |
<div class="navfooter"> |
| 64 |
<hr /> |
| 65 |
<table width="100%" summary="Navigation footer"> |
| 66 |
<tr> |
| 67 |
<td width="40%" align="left"><a accesskey="p" href="UsingStoredCollections.html">Prev</a> </td> |
| 68 |
<td width="20%" align="center"> |
| 69 |
<a accesskey="u" href="collectionOverview.html">Up</a> |
| 70 |
</td> |
| 71 |
<td width="40%" align="right"> </td> |
| 72 |
</tr> |
| 73 |
<tr> |
| 74 |
<td width="40%" align="left" valign="top"> |
| 75 |
Using Stored Collections |
| 76 |
</td> |
| 77 |
<td width="20%" align="center"> |
| 78 |
<a accesskey="h" href="index.html">Home</a> |
| 79 |
</td> |
| 80 |
<td width="40%" align="right" valign="top"> </td> |
| 81 |
</tr> |
| 82 |
</table> |
| 83 |
</div> |
| 84 |
</body> |
| 85 |
</html> |