Sophie

Sophie

distrib > Fedora > 14 > i386 > by-pkgid > 864d1c3c3cd8df4e3a2692faf8776e05 > files > 599

db4o-doc-7.4-2.fc13.i686.rpm

<html>
  <head>
    <META http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>Automatic refactoring</title>
    <link rel="stylesheet" type="text/css" href="../../../style.css">
  </head>
  <body>
    <div class="CommonContent">
      <div class="CommonContentArea">
        <h1>Automatic refactoring</h1>

<p>In simplest cases db4o handles schema changes automatically:</p>
<ul>
<li>If you <b>add</b> a new field, db4o automatically starts storing the new data. Older instances of your stored class (from before the field was added) are still loaded, but the new field is set to its default value, or null. </li>
<li>If you <b>remove</b> a field, db4o ignores the stored value when activating instances of your class. The stored value is not  removed from the database until the next Defragment, and is still accessible via the StoredClass/StoredField API.</li>
<li>If you <b>add an interface</b> to be implemented by your stored classes, db4o automatically starts using it and you are able to retrieve your saved data using new interface.</li>
</ul></div>
    </div>
    <div id="footer">
					This revision (3) was last Modified 2006-11-13T19:26:27 by Tetyana.
				</div>
  </body>
</html>