⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dbconstraint.html

📁 Medi 这是一个基于Java的媒体文件归档器工具
💻 HTML
📖 第 1 页 / 共 5 页
字号:
public int <B>getSonFatherIndex</B>(int&nbsp;index)                      throws <A HREF="../../javatools/db/DbException.html">DbException</A></PRE><DL><DD>Returns in which position a son table references THIS table in its constraint.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>index</CODE> - The son table index.<DT><B>Returns:</B><DD>The needed index.<DT><B>Throws:</B><DD><CODE><A HREF="../../javatools/db/DbException.html">DbException</A></CODE> - If something goes wrong.</DL></DD></DL><HR><A NAME="getUpdateOperation(int)"><!-- --></A><H3>getUpdateOperation</H3><PRE>public int <B>getUpdateOperation</B>(int&nbsp;index)                       throws <A HREF="../../javatools/db/DbException.html">DbException</A></PRE><DL><DD>Returns what kind of operation will be done in case of an update of the father table specified by <CODE>index</CODE>.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>index</CODE> - The index of the father table.<DT><B>Returns:</B><DD>The requested operation.<DT><B>Throws:</B><DD><CODE><A HREF="../../javatools/db/DbException.html">DbException</A></CODE> - If something goes wrong.</DL></DD></DL><HR><A NAME="getDeleteOperation(int)"><!-- --></A><H3>getDeleteOperation</H3><PRE>public int <B>getDeleteOperation</B>(int&nbsp;index)                       throws <A HREF="../../javatools/db/DbException.html">DbException</A></PRE><DL><DD>Returns what kind of operation will be done in case of a deletion of the father table specified by <CODE>index</CODE>.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>index</CODE> - The index of the father table.<DT><B>Returns:</B><DD>The requested operation.<DT><B>Throws:</B><DD><CODE><A HREF="../../javatools/db/DbException.html">DbException</A></CODE> - If something goes wrong.</DL></DD></DL><HR><A NAME="getFatherColumns(int)"><!-- --></A><H3>getFatherColumns</H3><PRE>public <A HREF="../../javatools/db/DbColumn.html">DbColumn</A>[] <B>getFatherColumns</B>(int&nbsp;index)                            throws <A HREF="../../javatools/db/DbException.html">DbException</A></PRE><DL><DD>Returns the referenced father columns of a father table whose index is specified.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>index</CODE> - The index of the father table.<DT><B>Returns:</B><DD>An array containing the referenced father columns.<DT><B>Throws:</B><DD><CODE><A HREF="../../javatools/db/DbException.html">DbException</A></CODE> - If something goes wrong.</DL></DD></DL><HR><A NAME="getRefColumns(int)"><!-- --></A><H3>getRefColumns</H3><PRE>public <A HREF="../../javatools/db/DbColumn.html">DbColumn</A>[] <B>getRefColumns</B>(int&nbsp;index)                         throws <A HREF="../../javatools/db/DbException.html">DbException</A></PRE><DL><DD>Returns the referencing columns of THIS table for a father table whose index is specified.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>index</CODE> - The index of the father column.<DT><B>Returns:</B><DD>The referencing columns.<DT><B>Throws:</B><DD><CODE><A HREF="../../javatools/db/DbException.html">DbException</A></CODE> - If something goes wrong.</DL></DD></DL><HR><A NAME="getDefaultValues(int)"><!-- --></A><H3>getDefaultValues</H3><PRE>public java.lang.Object[] <B>getDefaultValues</B>(int&nbsp;index)                                    throws <A HREF="../../javatools/db/DbException.html">DbException</A></PRE><DL><DD>Returns an array containing the default values for fields of a father table whose index is specified.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>index</CODE> - The index of the father table.<DT><B>Returns:</B><DD>An array containing the default values for referencing columns related to requested father table.<DT><B>Throws:</B><DD><CODE><A HREF="../../javatools/db/DbException.html">DbException</A></CODE> - If something goes wrong.</DL></DD></DL><HR><A NAME="clear()"><!-- --></A><H3>clear</H3><PRE>public void <B>clear</B>()</PRE><DL><DD>Clears everything.<P><DD><DL></DL></DD></DL><HR><A NAME="build()"><!-- --></A><H3>build</H3><PRE>public void <B>build</B>()           throws <A HREF="../../javatools/db/DbException.html">DbException</A></PRE><DL><DD>After all settings, it finally builds all static references.<P><DD><DL><DT><B>Throws:</B><DD><CODE><A HREF="../../javatools/db/DbException.html">DbException</A></CODE> - If something goes wrong.</DL></DD></DL><HR><A NAME="check(int)"><!-- --></A><H3>check</H3><PRE>public abstract void <B>check</B>(int&nbsp;operation)                    throws <A HREF="../../javatools/db/DbException.html">DbException</A></PRE><DL><DD>After setting all dynamic (i.e. operations, lists etc.) information, it checks explicitly if all operations can be done. I suggest to call <CODE>checkThis</CODE> method to perform base checking.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>operation</CODE> - The kind of operation (INSERT, UPDATE etc.) that should be done.<DT><B>Throws:</B><DD><CODE><A HREF="../../javatools/db/DbException.html">DbException</A></CODE> - If something goes wrong.</DL></DD></DL><HR><A NAME="update(int)"><!-- --></A><H3>update</H3><PRE>public abstract int <B>update</B>(int&nbsp;operation)                    throws <A HREF="../../javatools/db/DbException.html">DbException</A></PRE><DL><DD>Actually updates the table and all of its son tables. I suggest to call <CODE>updateThis</CODE> method to perform base update.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>operation</CODE> - The kind of operation (INSERT, UPDATE etc.) that should be done.<DT><B>Returns:</B><DD>It should contain the final result of <CODE>execute</CODE> calls to inserters, deleters of updaters.<DT><B>Throws:</B><DD><CODE><A HREF="../../javatools/db/DbException.html">DbException</A></CODE> - If something goes wrong.</DL></DD></DL><HR><A NAME="updateThis(int)"><!-- --></A><H3>updateThis</H3><PRE>protected int <B>updateThis</B>(int&nbsp;operation)                  throws <A HREF="../../javatools/db/DbException.html">DbException</A></PRE><DL><DD>Performs base update. It also checks if automatic checking is set.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>operation</CODE> - The operation to be done.<DT><B>Returns:</B><DD>The real result from an inserter, updater, deleter.<DT><B>Throws:</B><DD><CODE><A HREF="../../javatools/db/DbException.html">DbException</A></CODE> - If something goes wrong.</DL></DD></DL><HR><A NAME="checkThis(int)"><!-- --></A><H3>checkThis</H3><PRE>protected void <B>checkThis</B>(int&nbsp;operation)                  throws <A HREF="../../javatools/db/DbException.html">DbException</A></PRE><DL><DD>Performs base checks.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>operation</CODE> - The operations that should be done.<DT><B>Throws:</B><DD><CODE><A HREF="../../javatools/db/DbException.html">DbException</A></CODE> - If something goes wrong.</DL></DD></DL><HR><A NAME="checkFathers()"><!-- --></A><H3>checkFathers</H3><PRE>protected void <B>checkFathers</B>()                     throws <A HREF="../../javatools/db/DbException.html">DbException</A></PRE><DL><DD>Performs checking for father tables. Used in INSERT and UPDATE operations. N.B. Not used in UPDATE-CASCADE operation.<P><DD><DL><DT><B>Throws:</B><DD><CODE><A HREF="../../javatools/db/DbException.html">DbException</A></CODE> - If checking fails.</DL></DD></DL><HR><A NAME="checkChildren()"><!-- --></A><H3>checkChildren</H3><PRE>protected void <B>checkChildren</B>()                      throws <A HREF="../../javatools/db/DbException.html">DbException</A></PRE><DL><DD>Checks recursively each son.<P><DD><DL><DT><B>Throws:</B><DD><CODE><A HREF="../../javatools/db/DbException.html">DbException</A></CODE> - If checking fails.</DL></DD></DL><HR><A NAME="clone()"><!-- --></A><H3>clone</H3><PRE>protected java.lang.Object <B>clone</B>()                          throws java.lang.CloneNotSupportedException</PRE><DL><DD>Clones this object. It is used to build a temporary DbConstraint in self-referencing tables.<P><DD><DL><DT><B>Overrides:</B><DD><CODE>clone</CODE> in class <CODE>java.lang.Object</CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>The cloned object.<DT><B>Throws:</B><DD><CODE>java.lang.CloneNotSupportedException</CODE> - Never thrown... usually...</DL></DD></DL><HR><A NAME="initStaticLists()"><!-- --></A><H3>initStaticLists</H3><PRE>protected void <B>initStaticLists</B>()                        throws <A HREF="../../javatools/db/DbException.html">DbException</A></PRE><DL><DD>Inits static lists, like indexes of son tables, default values of father tables etc.<P><DD><DL><DT><B>Throws:</B><DD><CODE><A HREF="../../javatools/db/DbException.html">DbException</A></CODE> - If something goes wrong.</DL></DD></DL><HR><A NAME="initLists()"><!-- --></A><H3>initLists</H3><PRE>protected void <B>initLists</B>()                  throws <A HREF="../../javatools/db/DbException.html">DbException</A></PRE><DL><DD>Builds all dynamic lists (where clauses, constraints etc.).<P><DD><DL><DT><B>Throws:</B><DD><CODE><A HREF="../../javatools/db/DbException.html">DbException</A></CODE> - If something goes wrong.</DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ========== START OF NAVBAR ========== --><A NAME="navbar_bottom"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"><TR><TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">  <TR ALIGN="center" VALIGN="top">  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>  </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;<A HREF="../../javatools/db/DbConnection.html"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../javatools/db/DbCriterion.html"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">  <A HREF="../../index.html" TARGET="_top"><B>FRAMES</B></A>  &nbsp;&nbsp;<A HREF="DbConstraint.html" TARGET="_top"><B>NO FRAMES</B></A>  &nbsp;&nbsp;<SCRIPT>  <!--  if(window==top) {    document.writeln('<A HREF="../../allclasses-noframe.html" TARGET=""><B>All Classes</B></A>');  }  //--></SCRIPT><NOSCRIPT><A HREF="../../allclasses-noframe.html" TARGET=""><B>All Classes</B></A></NOSCRIPT></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><!-- =========== END OF NAVBAR =========== --><HR></BODY></HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -