Debian Codegraph @

docs/java/com/sleepycat/db/ForeignKeyDeleteAction.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 ForeignKeyDeleteAction (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="ForeignKeyDeleteAction (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/ForeignKeyDeleteAction.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/FeedbackHandler.html" title="interface in com.sleepycat.db"><B>PREV CLASS</B></A>&nbsp;
59 &nbsp;<A HREF="../../../com/sleepycat/db/ForeignKeyNullifier.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/ForeignKeyDeleteAction.html" target="_top"><B>FRAMES</B></A> &nbsp;
62 &nbsp;<A HREF="ForeignKeyDeleteAction.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;<A HREF="#field_summary">FIELD</A>&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;<A HREF="#field_detail">FIELD</A>&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 Class ForeignKeyDeleteAction</H2>
94 <PRE>
95 <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</A>
96 <IMG SRC="../../../resources/inherit.gif" ALT="extended by "><B>com.sleepycat.db.ForeignKeyDeleteAction</B>
97 </PRE>
98 <HR>
99 <DL>
100 <DT><PRE>public class <B>ForeignKeyDeleteAction</B><DT>extends <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></DL>
101 </PRE>
102
103 <P>
104 The action taken when a referenced record in the foreign key database is
105 deleted.
106
107 <p>The delete action applies to a secondary database that is configured to
108 have a foreign key integrity constraint. The delete action is specified by
109 calling <A HREF="../../../com/sleepycat/db/SecondaryConfig.html#setForeignKeyDeleteAction(com.sleepycat.db.ForeignKeyDeleteAction)"><CODE>SecondaryConfig.setForeignKeyDeleteAction(com.sleepycat.db.ForeignKeyDeleteAction)</CODE></A>.</p>
110
111 <p>When a record in the foreign key database is deleted, it is checked to
112 see if it is referenced by any record in the associated secondary database.
113 If the key is referenced, the delete action is applied. By default, the
114 delete action is <A HREF="../../../com/sleepycat/db/ForeignKeyDeleteAction.html#ABORT"><CODE>ABORT</CODE></A>.</p>
115 <P>
116
117 <P>
118 <DL>
119 <DT><B>See Also:</B><DD><A HREF="../../../com/sleepycat/db/SecondaryConfig.html" title="class in com.sleepycat.db"><CODE>SecondaryConfig</CODE></A></DL>
120 <HR>
121
122 <P>
123 <!-- =========== FIELD SUMMARY =========== -->
124
125 <A NAME="field_summary"><!-- --></A>
126 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
127 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
128 <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
129 <B>Field Summary</B></FONT></TH>
130 </TR>
131 <TR BGCOLOR="white" CLASS="TableRowColor">
132 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
133 <CODE>static&nbsp;<A HREF="../../../com/sleepycat/db/ForeignKeyDeleteAction.html" title="class in com.sleepycat.db">ForeignKeyDeleteAction</A></CODE></FONT></TD>
134 <TD><CODE><B><A HREF="../../../com/sleepycat/db/ForeignKeyDeleteAction.html#ABORT">ABORT</A></B></CODE>
135
136 <BR>
137 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;When a referenced record in the foreign key database is deleted, abort
138 the transaction by throwing a <A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db"><CODE>DatabaseException</CODE></A>.</TD>
139 </TR>
140 <TR BGCOLOR="white" CLASS="TableRowColor">
141 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
142 <CODE>static&nbsp;<A HREF="../../../com/sleepycat/db/ForeignKeyDeleteAction.html" title="class in com.sleepycat.db">ForeignKeyDeleteAction</A></CODE></FONT></TD>
143 <TD><CODE><B><A HREF="../../../com/sleepycat/db/ForeignKeyDeleteAction.html#CASCADE">CASCADE</A></B></CODE>
144
145 <BR>
146 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;When a referenced record in the foreign key database is deleted, delete
147 the primary database record that references it.</TD>
148 </TR>
149 <TR BGCOLOR="white" CLASS="TableRowColor">
150 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
151 <CODE>static&nbsp;<A HREF="../../../com/sleepycat/db/ForeignKeyDeleteAction.html" title="class in com.sleepycat.db">ForeignKeyDeleteAction</A></CODE></FONT></TD>
152 <TD><CODE><B><A HREF="../../../com/sleepycat/db/ForeignKeyDeleteAction.html#NULLIFY">NULLIFY</A></B></CODE>
153
154 <BR>
155 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;When a referenced record in the foreign key database is deleted, set the
156 reference to null in the primary database record that references it,
157 thereby deleting the secondary key.</TD>
158 </TR>
159 </TABLE>
160 &nbsp;
161 <!-- ========== METHOD SUMMARY =========== -->
162
163 <A NAME="method_summary"><!-- --></A>
164 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
165 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
166 <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
167 <B>Method Summary</B></FONT></TH>
168 </TR>
169 <TR BGCOLOR="white" CLASS="TableRowColor">
170 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
171 <CODE>&nbsp;<A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD>
172 <TD><CODE><B><A HREF="../../../com/sleepycat/db/ForeignKeyDeleteAction.html#toString()">toString</A></B>()</CODE>
173
174 <BR>
175 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
176 </TR>
177 </TABLE>
178 &nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
179 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
180 <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
181 <TH ALIGN="left"><B>Methods inherited from class java.lang.<A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></B></TH>
182 </TR>
183 <TR BGCOLOR="white" CLASS="TableRowColor">
184 <TD><CODE><A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang">clone</A>, <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang">equals</A>, <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang">finalize</A>, <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode</A>, <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD>
185 </TR>
186 </TABLE>
187 &nbsp;
188 <P>
189
190 <!-- ============ FIELD DETAIL =========== -->
191
192 <A NAME="field_detail"><!-- --></A>
193 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
194 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
195 <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
196 <B>Field Detail</B></FONT></TH>
197 </TR>
198 </TABLE>
199
200 <A NAME="ABORT"><!-- --></A><H3>
201 ABORT</H3>
202 <PRE>
203 public static <A HREF="../../../com/sleepycat/db/ForeignKeyDeleteAction.html" title="class in com.sleepycat.db">ForeignKeyDeleteAction</A> <B>ABORT</B></PRE>
204 <DL>
205 <DD>When a referenced record in the foreign key database is deleted, abort
206 the transaction by throwing a <A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db"><CODE>DatabaseException</CODE></A>.
207 <P>
208 <DL>
209 </DL>
210 </DL>
211 <HR>
212
213 <A NAME="CASCADE"><!-- --></A><H3>
214 CASCADE</H3>
215 <PRE>
216 public static <A HREF="../../../com/sleepycat/db/ForeignKeyDeleteAction.html" title="class in com.sleepycat.db">ForeignKeyDeleteAction</A> <B>CASCADE</B></PRE>
217 <DL>
218 <DD>When a referenced record in the foreign key database is deleted, delete
219 the primary database record that references it.
220 <P>
221 <DL>
222 </DL>
223 </DL>
224 <HR>
225
226 <A NAME="NULLIFY"><!-- --></A><H3>
227 NULLIFY</H3>
228 <PRE>
229 public static <A HREF="../../../com/sleepycat/db/ForeignKeyDeleteAction.html" title="class in com.sleepycat.db">ForeignKeyDeleteAction</A> <B>NULLIFY</B></PRE>
230 <DL>
231 <DD>When a referenced record in the foreign key database is deleted, set the
232 reference to null in the primary database record that references it,
233 thereby deleting the secondary key. @see ForeignKeyNullifier @see
234 ForeignMultiKeyNullifier
235 <P>
236 <DL>
237 </DL>
238 </DL>
239
240 <!-- ============ METHOD DETAIL ========== -->
241
242 <A NAME="method_detail"><!-- --></A>
243 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
244 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
245 <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
246 <B>Method Detail</B></FONT></TH>
247 </TR>
248 </TABLE>
249
250 <A NAME="toString()"><!-- --></A><H3>
251 toString</H3>
252 <PRE>
253 public <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>toString</B>()</PRE>
254 <DL>
255 <DD><DL>
256 <DT><B>Overrides:</B><DD><CODE><A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang">toString</A></CODE> in class <CODE><A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></CODE></DL>
257 </DD>
258 <DD><DL>
259 </DL>
260 </DD>
261 </DL>
262 <!-- ========= END OF CLASS DATA ========= -->
263 <HR>
264
265
266 <!-- ======= START OF BOTTOM NAVBAR ====== -->
267 <A NAME="navbar_bottom"><!-- --></A>
268 <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
269 <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
270 <TR>
271 <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
272 <A NAME="navbar_bottom_firstrow"><!-- --></A>
273 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
274 <TR ALIGN="center" VALIGN="top">
275 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
276 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
277 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
278 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/ForeignKeyDeleteAction.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
279 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
280 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
281 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
282 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
283 </TR>
284 </TABLE>
285 </TD>
286 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
287 <b>Berkeley DB</b><br><font size="-1"> version 5.3.28</font></EM>
288 </TD>
289 </TR>
290
291 <TR>
292 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
293 &nbsp;<A HREF="../../../com/sleepycat/db/FeedbackHandler.html" title="interface in com.sleepycat.db"><B>PREV CLASS</B></A>&nbsp;
294 &nbsp;<A HREF="../../../com/sleepycat/db/ForeignKeyNullifier.html" title="interface in com.sleepycat.db"><B>NEXT CLASS</B></A></FONT></TD>
295 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
296 <A HREF="../../../index.html?com/sleepycat/db/ForeignKeyDeleteAction.html" target="_top"><B>FRAMES</B></A> &nbsp;
297 &nbsp;<A HREF="ForeignKeyDeleteAction.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
298 &nbsp;<SCRIPT type="text/javascript">
299 <!--
300 if(window==top) {
301 document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
302 }
303 //-->
304 </SCRIPT>
305 <NOSCRIPT>
306 <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
307 </NOSCRIPT>
308
309
310 </FONT></TD>
311 </TR>
312 <TR>
313 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
314 SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
315 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
316 DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
317 </TR>
318 </TABLE>
319 <A NAME="skip-navbar_bottom"></A>
320 <!-- ======== END OF BOTTOM NAVBAR ======= -->
321
322 <HR>
323 <font size=1>Copyright (c) 1996, 2013 Oracle and/or its affiliates. All rights reserved.</font>
324 </BODY>
325 </HTML>