<!--$Id: intro.html,v 1.2 2004/03/30 01:22:46 jtownsen Exp $--> <!--Copyright 1997-2003 by Sleepycat Software, Inc.--> <!--All rights reserved.--> <!--See the file LICENSE for redistribution information.--> <html> <head> <title>Berkeley DB Reference Guide: Index - Indices and foreign keys</title> <meta name="description" content="Berkeley DB: An embedded database programmatic toolkit."> <meta name="keywords" content="embedded,database,programmatic,toolkit,b+tree,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,Java,C,C++"> </head> <body bgcolor=white> <a name="2"><!--meow--></a> <table width="100%"><tr valign=top> <td><h3><dl><dt>Berkeley DB Reference Guide:<dd>Java API Tutorial - Index</dl></h3></td> <td align=right><a href="../bdb_basic/except.html"><img src="../../images/prev.gif" alt="Prev"></a><a href="../toc.html"><img src="../../images/ref.gif" alt="Ref"></a><a href="../bdb_index/second.html"><img src="../../images/next.gif" alt="Next"></a> </td></tr></table> <p> <h3 align=center>Index - Indices and foreign keys</h3> <p>In the Basic example, each store has a single <i>primary key</i>. The Index example extends the Basic example to add the use of <i>secondary keys</i> and <i>foreign keys</i>. The example program illustrates:</p> <p><ul type=disc> <li><a href="second.html">Opening secondary key indices</a> <li><a href="foreign.html">Opening foreign key indices</a> <li><a href="views.html">Creating indexed collections</a> <li><a href="read.html">Retrieving items by index key</a> </ul> <p>The complete source of the final version of the example program is included in the Berkeley DB distribution.</p> <table width="100%"><tr><td><br></td><td align=right><a href="../bdb_basic/except.html"><img src="../../images/prev.gif" alt="Prev"></a><a href="../toc.html"><img src="../../images/ref.gif" alt="Ref"></a><a href="../bdb_index/second.html"><img src="../../images/next.gif" alt="Next"></a> </td></tr></table> <p><font size=1><a href="../../sleepycat/legal.html">Copyright (c) 1996-2003</a> <a href="http://www.sleepycat.com">Sleepycat Software, Inc.</a> - All rights reserved.</font> </body> </html>