<html> <head> <title>Constants' Group KeyType</title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <link rel="stylesheet" type="text/css" href="../../../../idl.css"> </head> <body> <div id="adc-idlref"> <a name="_top_"> </a><table class="navimain" border="0" cellpadding="3"> <tr> <td class="navimain"><a href="../module-ix.html" class="navimain">Overview</a></td> <td class="navimain"><a href="module-ix.html" class="navimain">Module</a></td> <td class="navimainnone">Use</td> <td class="navimain"><a href="http://wiki.services.openoffice.org/wiki/Documentation/DevGuide/Database/Key_Service" class="navimain">Devguide</a></td> <td class="navimain"><a href="../../../../index-files/index-1.html" class="navimain">Index</a></td> </tr> </table> <table class="navisub" border="0" cellpadding="0"> <tr> <td class="navisub"><a href="#Constants" class="navisub">Constants</a></td> <td class="navisub"><a href="#ConstantDetails" class="navisub">Constants' Details</a></td> </tr> </table> <hr> <table border="0" width="100%" cellpadding="5" cellspacing="3" class="title-table" style="margin-bottom:6pt;"> <tr> <td><p class="namechain"><a href="../../../../module-ix.html" class="namechain">::</a> <a href="../../../module-ix.html" class="namechain">com</a> :: <a href="../../module-ix.html" class="namechain">sun</a> :: <a href="../module-ix.html" class="namechain">star</a> :: <a href="module-ix.html" class="namechain">sdbcx</a> :: </p> </td> </tr> <tr> <td class="title">constants group KeyType</td> </tr> <tr> <td><dl> <dt><b>Description</b></dt> <dd>determines the type of a key. </dd> </dl> <a name="devmanual"> </a><dl> <dt><b>Developers Guide</b></dt> <dd><a href="http://wiki.services.openoffice.org/wiki/Documentation/DevGuide/Database/Key_Service">Database - Key Service</a></dd> </dl> </td> </tr> </table> <hr> <a name="Constants"/><table border="1" width="100%" cellpadding="5" cellspacing="0" class="subtitle"> <tr> <td class="subtitle" colspan="2">Constants</td> </tr> <tr> <td class="imsum_left"><a href="#PRIMARY">PRIMARY</a></td> <td class="imsum_right">indicates that the key is the primary key of a table. </td> </tr> <tr> <td class="imsum_left"><a href="#UNIQUE">UNIQUE</a></td> <td class="imsum_right">indicates that the key is unique, NULL values are allowed. </td> </tr> <tr> <td class="imsum_left"><a href="#FOREIGN">FOREIGN</a></td> <td class="imsum_right">indicates that the key is a foreign key of a table. </td> </tr> </table> <a name="ConstantDetails"/><table border="1" width="100%" cellpadding="5" cellspacing="0" class="subtitle"> <tr> <td class="subtitle">Constants' Details</td> </tr> <tr> <td class="imdetail"><a name="PRIMARY" class="membertitle">PRIMARY</a><table border="0" width="96%" cellpadding="5" cellspacing="0" class="table-in-data" bgcolor="#ffffff" align="center"> <tr> <td>const long <b>PRIMARY</b> = 1;<hr> <dl> <dt><b>Description</b></dt> <dd>indicates that the key is the primary key of a table. </dd> </dl> </td> </tr> </table> </td> </tr> <tr> <td class="imdetail"><a name="UNIQUE" class="membertitle">UNIQUE</a><table border="0" width="96%" cellpadding="5" cellspacing="0" class="table-in-data" bgcolor="#ffffff" align="center"> <tr> <td>const long <b>UNIQUE</b> = 2;<hr> <dl> <dt><b>Description</b></dt> <dd>indicates that the key is unique, NULL values are allowed. </dd> </dl> </td> </tr> </table> </td> </tr> <tr> <td class="imdetail"><a name="FOREIGN" class="membertitle">FOREIGN</a><table border="0" width="96%" cellpadding="5" cellspacing="0" class="table-in-data" bgcolor="#ffffff" align="center"> <tr> <td>const long <b>FOREIGN</b> = 3;<hr> <dl> <dt><b>Description</b></dt> <dd>indicates that the key is a foreign key of a table. </dd> </dl> </td> </tr> </table> </td> </tr> </table> <a href="#_top_">Top of Page</a><hr size="3"><p class="copyright" align="center">Copyright © 2008 Sun Microsystems, Inc.</p> </div> <!-- id="adc-idlref" --> </body> </html>