Sophie

Sophie

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

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

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

<p>Db4o Alias/IAlias
interface gives you an opportunity to have different names for your persistent
classes in the runtime and in the database. The functionality is pretty simple:
before class is saved to/retrieved from the database an alias collection is
checked for the presence of an alias for the specified class name. If the alias
exists, it is used for saving or retrieving instead of the original name.</p>

<p>Db4o provides 2
types of aliases:</p>

<ul>
<li><i>TypeAlias</i> is used
to alias specific class name to another class name</li>

<li><i>WildcardAlias</i> allows to alias a package, namespace or multiple similar named classes.</li>
</ul>


<p>Aliases should be
added or removed before a database file is opened.</p>



<span name="cs_wiki_filter" csw_filters="net">
<p>.NET:&nbsp;</p>

<p><code>IConfiguration. AddAlias(alias)<br>
IConfiguration. RemoveAlias(alias)</code></p>

</span><p><div class="childTopicList">More Reading:<ul>
<li><p><a href="aliases/typealias.html" class="wikiLink">TypeAlias</a></p></li>
<li><p><a href="aliases/wildcardalias.html" class="wikiLink">WildcardAlias</a></p></li>
<li><p><a href="aliases/cross-platform_aliasing.html" class="wikiLink">Cross-Platform Aliasing</a></p></li>
<li><p><a href="aliases/cross-platform_aliasing_from_.net_to_java.html" class="wikiLink">Cross-Platform Aliasing From .NET To Java</a></p></li>
</ul></div>
&nbsp;</p></div>
    </div>
    <div id="footer">
					This revision (4) was last Modified 2006-12-14T11:18:46 by Tetyana.
				</div>
  </body>
</html>