Debian Codegraph @

docs/java/com/sleepycat/db/ForeignMultiKeyNullifier.html

raw symbols SCIP
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2 <!--NewPage-->
3 <HTML>
4 <HEAD>
5 <!-- Generated by javadoc (build 1.6.0_51) on Mon Sep 09 11:47:04 EDT 2013 -->
6 <TITLE>
7 ForeignMultiKeyNullifier (Oracle - Berkeley DB Java API)
8 </TITLE>
9
10 <META NAME="date" CONTENT="2013-09-09">
11
12 <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../style.css" TITLE="Style">
13
14 <SCRIPT type="text/javascript">
15 function windowTitle()
16 {
17 if (location.href.indexOf('is-external=true') == -1) {
18 parent.document.title="ForeignMultiKeyNullifier (Oracle - Berkeley DB Java API)";
19 }
20 }
21 </SCRIPT>
22 <NOSCRIPT>
23 </NOSCRIPT>
24
25 </HEAD>
26
27 <BODY BGCOLOR="white" onload="windowTitle();">
28 <HR>
29
30
31 <!-- ========= START OF TOP NAVBAR ======= -->
32 <A NAME="navbar_top"><!-- --></A>
33 <A HREF="#skip-navbar_top" title="Skip navigation links"></A>
34 <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
35 <TR>
36 <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
37 <A NAME="navbar_top_firstrow"><!-- --></A>
38 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
39 <TR ALIGN="center" VALIGN="top">
40 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
41 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
42 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
43 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/ForeignMultiKeyNullifier.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
44 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
45 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
46 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
47 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
48 </TR>
49 </TABLE>
50 </TD>
51 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
52 <b>Berkeley DB</b><br><font size="-1"> version 5.3.28</font></EM>
53 </TD>
54 </TR>
55
56 <TR>
57 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
58 &nbsp;<A HREF="../../../com/sleepycat/db/ForeignKeyNullifier.html" title="interface in com.sleepycat.db"><B>PREV CLASS</B></A>&nbsp;
59 &nbsp;<A HREF="../../../com/sleepycat/db/Hasher.html" title="interface in com.sleepycat.db"><B>NEXT CLASS</B></A></FONT></TD>
60 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
61 <A HREF="../../../index.html?com/sleepycat/db/ForeignMultiKeyNullifier.html" target="_top"><B>FRAMES</B></A> &nbsp;
62 &nbsp;<A HREF="ForeignMultiKeyNullifier.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
63 &nbsp;<SCRIPT type="text/javascript">
64 <!--
65 if(window==top) {
66 document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
67 }
68 //-->
69 </SCRIPT>
70 <NOSCRIPT>
71 <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
72 </NOSCRIPT>
73
74
75 </FONT></TD>
76 </TR>
77 <TR>
78 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
79 SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
80 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
81 DETAIL:&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
82 </TR>
83 </TABLE>
84 <A NAME="skip-navbar_top"></A>
85 <!-- ========= END OF TOP NAVBAR ========= -->
86
87 <HR>
88 <!-- ======== START OF CLASS DATA ======== -->
89 <H2>
90 <FONT SIZE="-1">
91 com.sleepycat.db</FONT>
92 <BR>
93 Interface ForeignMultiKeyNullifier</H2>
94 <HR>
95 <DL>
96 <DT><PRE>public interface <B>ForeignMultiKeyNullifier</B></DL>
97 </PRE>
98
99 <P>
100 The interface implemented for setting multi-valued foreign keys to null.
101
102 <p>A key nullifier is used with a secondary database that is configured to
103 have a foreign key integrity constraint and a delete action of <A HREF="../../../com/sleepycat/db/ForeignKeyDeleteAction.html#NULLIFY"><CODE>ForeignKeyDeleteAction.NULLIFY</CODE></A>. The key nullifier is specified by calling
104 <A HREF="../../../com/sleepycat/db/SecondaryConfig.html#setForeignMultiKeyNullifier(com.sleepycat.db.ForeignMultiKeyNullifier)"><CODE>SecondaryConfig.setForeignMultiKeyNullifier(com.sleepycat.db.ForeignMultiKeyNullifier)</CODE></A>.</p>
105
106 <p>When a referenced record in the foreign key database is deleted and the
107 foreign key delete action is <code>NULLIFY</code>, the <A HREF="../../../com/sleepycat/db/ForeignMultiKeyNullifier.html#nullifyForeignKey(com.sleepycat.db.SecondaryDatabase, com.sleepycat.db.DatabaseEntry, com.sleepycat.db.DatabaseEntry, com.sleepycat.db.DatabaseEntry)"><CODE>nullifyForeignKey(com.sleepycat.db.SecondaryDatabase, com.sleepycat.db.DatabaseEntry, com.sleepycat.db.DatabaseEntry, com.sleepycat.db.DatabaseEntry)</CODE></A> method is called. This method
108 sets the foreign key reference to null in the datum of the primary
109 database. The primary database is then updated to contain the modified
110 datum. The result is that the secondary key is deleted.</p>
111
112 This interface may be used along with <A HREF="../../../com/sleepycat/db/SecondaryKeyCreator.html" title="interface in com.sleepycat.db"><CODE>SecondaryKeyCreator</CODE></A> or <A HREF="../../../com/sleepycat/db/SecondaryMultiKeyCreator.html" title="interface in com.sleepycat.db"><CODE>SecondaryMultiKeyCreator</CODE></A> for many-to-many, one-to-many, many-to-one and
113 one-to-one relationships.
114 <P>
115
116 <P>
117 <HR>
118
119 <P>
120
121 <!-- ========== METHOD SUMMARY =========== -->
122
123 <A NAME="method_summary"><!-- --></A>
124 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
125 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
126 <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
127 <B>Method Summary</B></FONT></TH>
128 </TR>
129 <TR BGCOLOR="white" CLASS="TableRowColor">
130 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
131 <CODE>&nbsp;boolean</CODE></FONT></TD>
132 <TD><CODE><B><A HREF="../../../com/sleepycat/db/ForeignMultiKeyNullifier.html#nullifyForeignKey(com.sleepycat.db.SecondaryDatabase, com.sleepycat.db.DatabaseEntry, com.sleepycat.db.DatabaseEntry, com.sleepycat.db.DatabaseEntry)">nullifyForeignKey</A></B>(<A HREF="../../../com/sleepycat/db/SecondaryDatabase.html" title="class in com.sleepycat.db">SecondaryDatabase</A>&nbsp;secondary,
133 <A HREF="../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db">DatabaseEntry</A>&nbsp;key,
134 <A HREF="../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db">DatabaseEntry</A>&nbsp;data,
135 <A HREF="../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db">DatabaseEntry</A>&nbsp;secKey)</CODE>
136
137 <BR>
138 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the foreign key reference to null in the datum of the primary
139 database.</TD>
140 </TR>
141 </TABLE>
142 &nbsp;
143 <P>
144
145 <!-- ============ METHOD DETAIL ========== -->
146
147 <A NAME="method_detail"><!-- --></A>
148 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
149 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
150 <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
151 <B>Method Detail</B></FONT></TH>
152 </TR>
153 </TABLE>
154
155 <A NAME="nullifyForeignKey(com.sleepycat.db.SecondaryDatabase, com.sleepycat.db.DatabaseEntry, com.sleepycat.db.DatabaseEntry, com.sleepycat.db.DatabaseEntry)"><!-- --></A><H3>
156 nullifyForeignKey</H3>
157 <PRE>
158 boolean <B>nullifyForeignKey</B>(<A HREF="../../../com/sleepycat/db/SecondaryDatabase.html" title="class in com.sleepycat.db">SecondaryDatabase</A>&nbsp;secondary,
159 <A HREF="../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db">DatabaseEntry</A>&nbsp;key,
160 <A HREF="../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db">DatabaseEntry</A>&nbsp;data,
161 <A HREF="../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db">DatabaseEntry</A>&nbsp;secKey)
162 throws <A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></PRE>
163 <DL>
164 <DD>Sets the foreign key reference to null in the datum of the primary
165 database.
166 <P>
167 <DD><DL>
168 <DT><B>Parameters:</B><DD><CODE>secondary</CODE> - the database in which the foreign key integrity
169 constraint is defined. This parameter is passed for informational
170 purposes but is not commonly used.<DD><CODE>key</CODE> - the existing primary key. This parameter is passed for
171 informational purposes but is not commonly used.<DD><CODE>data</CODE> - the existing primary datum in which the foreign key
172 reference should be set to null. This parameter should be updated by
173 this method if it returns true.<DD><CODE>secKey</CODE> - the secondary key to be nullified. This parameter is
174 needed for knowing which key to nullify when multiple keys are present,
175 as when <A HREF="../../../com/sleepycat/db/SecondaryMultiKeyCreator.html" title="interface in com.sleepycat.db"><CODE>SecondaryMultiKeyCreator</CODE></A> is used.
176 <DT><B>Returns:</B><DD>true if the datum was modified, or false to indicate that the
177 key is not present.
178 <DT><B>Throws:</B>
179 <DD><CODE><A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></CODE> - if an error occurs attempting to clear the key
180 reference.</DL>
181 </DD>
182 </DL>
183 <!-- ========= END OF CLASS DATA ========= -->
184 <HR>
185
186
187 <!-- ======= START OF BOTTOM NAVBAR ====== -->
188 <A NAME="navbar_bottom"><!-- --></A>
189 <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
190 <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
191 <TR>
192 <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
193 <A NAME="navbar_bottom_firstrow"><!-- --></A>
194 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
195 <TR ALIGN="center" VALIGN="top">
196 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
197 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
198 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
199 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/ForeignMultiKeyNullifier.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
200 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
201 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
202 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
203 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
204 </TR>
205 </TABLE>
206 </TD>
207 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
208 <b>Berkeley DB</b><br><font size="-1"> version 5.3.28</font></EM>
209 </TD>
210 </TR>
211
212 <TR>
213 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
214 &nbsp;<A HREF="../../../com/sleepycat/db/ForeignKeyNullifier.html" title="interface in com.sleepycat.db"><B>PREV CLASS</B></A>&nbsp;
215 &nbsp;<A HREF="../../../com/sleepycat/db/Hasher.html" title="interface in com.sleepycat.db"><B>NEXT CLASS</B></A></FONT></TD>
216 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
217 <A HREF="../../../index.html?com/sleepycat/db/ForeignMultiKeyNullifier.html" target="_top"><B>FRAMES</B></A> &nbsp;
218 &nbsp;<A HREF="ForeignMultiKeyNullifier.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
219 &nbsp;<SCRIPT type="text/javascript">
220 <!--
221 if(window==top) {
222 document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
223 }
224 //-->
225 </SCRIPT>
226 <NOSCRIPT>
227 <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
228 </NOSCRIPT>
229
230
231 </FONT></TD>
232 </TR>
233 <TR>
234 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
235 SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
236 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
237 DETAIL:&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
238 </TR>
239 </TABLE>
240 <A NAME="skip-navbar_bottom"></A>
241 <!-- ======== END OF BOTTOM NAVBAR ======= -->
242
243 <HR>
244 <font size=1>Copyright (c) 1996, 2013 Oracle and/or its affiliates. All rights reserved.</font>
245 </BODY>
246 </HTML>