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>Secondary Database Properties</title> 7 <link rel="stylesheet" href="gettingStarted.css" type="text/css" /> 8 <meta name="generator" content="DocBook XSL Stylesheets V1.62.4" /> 9 <link rel="home" href="index.html" title="Getting Started with Berkeley DB" /> 10 <link rel="up" href="indexes.html" title="Chapter��10.��Secondary Databases" /> 11 <link rel="previous" href="keyCreator.html" title="Implementing Key Creators " /> 12 <link rel="next" href="readSecondary.html" title="Reading Secondary Databases" /> 13 </head> 14 <body> 15 <div class="navheader"> 16 <table width="100%" summary="Navigation header"> 17 <tr> 18 <th colspan="3" align="center">Secondary Database Properties</th> 19 </tr> 20 <tr> 21 <td width="20%" align="left"><a accesskey="p" href="keyCreator.html">Prev</a>��</td> 22 <th width="60%" align="center">Chapter��10.��Secondary Databases</th> 23 <td width="20%" align="right">��<a accesskey="n" href="readSecondary.html">Next</a></td> 24 </tr> 25 </table> 26 <hr /> 27 </div> 28 <div class="sect1" lang="en" xml:lang="en"> 29 <div class="titlepage"> 30 <div> 31 <div> 32 <h2 class="title" style="clear: both"><a id="secondaryProps"></a>Secondary Database Properties</h2> 33 </div> 34 </div> 35 <div></div> 36 </div> 37 <p>Secondary databases accept <tt class="classname">SecondaryConfig</tt> 38 objects. <tt class="classname">SecondaryConfig</tt> is a subclass of <tt class="classname">DatabaseConfig</tt>, 39 so it can manage all of the same properties as does <tt class="classname">DatabaseConfig</tt>. 40 See <a href="DBConfig.html">Database Properties</a> for more information.</p> 41 <p>In addition to the <tt class="classname">DatabaseConfig</tt> properties, 42 <tt class="classname">SecondaryConfig</tt> also allows you to manage the following properties: 43 </p> 44 <div class="itemizedlist"> 45 <ul type="disc"> 46 <li> 47 <p> 48 <tt class="methodname">SecondaryConfig.setAllowPopulate()</tt> 49 </p> 50 <p>If true, the secondary database can be auto-populated. This means 51 that on open, if the secondary database is empty then the primary 52 database is read in its entirety and additions/modifications to the 53 secondary's records occur automatically.</p> 54 </li> 55 <li> 56 <p> 57 <tt class="methodname">SecondaryConfig.setKeyCreator()</tt> 58 </p> 59 <p>Identifies the key creator object to be used for secondary key 60 creation. See <a href="keyCreator.html">Implementing Key 61 <span>Creators</span> 62 63 </a> 64 for more information.</p> 65 </li> 66 </ul> 67 </div> 68 </div> 69 <div class="navfooter"> 70 <hr /> 71 <table width="100%" summary="Navigation footer"> 72 <tr> 73 <td width="40%" align="left"><a accesskey="p" href="keyCreator.html">Prev</a>��</td> 74 <td width="20%" align="center"> 75 <a accesskey="u" href="indexes.html">Up</a> 76 </td> 77 <td width="40%" align="right">��<a accesskey="n" href="readSecondary.html">Next</a></td> 78 </tr> 79 <tr> 80 <td width="40%" align="left" valign="top">Implementing Key 81 Creators 82 83 ��</td> 84 <td width="20%" align="center"> 85 <a accesskey="h" href="index.html">Home</a> 86 </td> 87 <td width="40%" align="right" valign="top">��Reading Secondary Databases</td> 88 </tr> 89 </table> 90 </div> 91 </body> 92</html> 93