Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > 864d1c3c3cd8df4e3a2692faf8776e05 > files > 295

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

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


<p>In addition to replicating changed/new objects, dRS is able to
replicate deletions of objects.&nbsp;When an object is deleted since last
replication in one database and you would like to replicate these
changes&nbsp;to another database you can use the following method to do this:</p>



<p><span name="cs_wiki_filter" csw_filters="vb"></p>
<p>VB:&nbsp;</p>

<p><code>replication .ReplicateDeletions(GetType(Car))</code></p>

<p></span>
</p>

<p>
dRS traverses every Car object in both providers. For instance, if a
deletion is found in one provider,&nbsp;the deletion will be replicated to
the other provider. During the traversal replication events will be
generated and can be used as usual. By default, in a case of a conflict the deletion
will prevail. You can choose the counterpart of&nbsp;the deleted object to
prevail using the event.</p>

<p>Note, that the deletions of a Parent will not be cascaded to child
objects. For example, if a Car contains a child object,&nbsp;e.g. Pilot,
Pilot will not be traversed and the deletions of Pilot will not be
replicated.<br></p>

</div>
    </div>
    <div id="footer">
					This revision (3) was last Modified 2007-07-09T08:31:56 by Tetyana.
				</div>
  </body>
</html>