📄 dbdynamicconstraint.html
字号:
<TD><CODE><B><A HREF="../../javatools/db/DbDynamicConstraint.html#getSonFatherIndex(int)">getSonFatherIndex</A></B>(int index)</CODE><BR> Returns the index that a son table uses to reference this table.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../javatools/db/DbAbstractTable.html">DbAbstractTable</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javatools/db/DbDynamicConstraint.html#getSonTable(int)">getSonTable</A></B>(int index)</CODE><BR> Returns a son table whose index is specified.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../javatools/db/DbDynamicConstraint.html#getSonTablesCount()">getSonTablesCount</A></B>()</CODE><BR> Returns the number of son tables.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../javatools/db/DbDynamicConstraint.html#getUpdateOperation(int)">getUpdateOperation</A></B>(int index)</CODE><BR> Returns the update operation that should be done for the father table whose index is specified.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../javatools/db/DbDynamicConstraint.html#setAutomaticBuild(boolean)">setAutomaticBuild</A></B>(boolean value)</CODE><BR> Tells this object to build (or not) automatically all lists at all times.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../javatools/db/DbDynamicConstraint.html#update(int)">update</A></B>(int operation)</CODE><BR> Performs actual update in the table and, eventually, cascades. </TD></TR></TABLE> <A NAME="methods_inherited_from_class_javatools.db.DbConstraint"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class javatools.db.<A HREF="../../javatools/db/DbConstraint.html">DbConstraint</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../javatools/db/DbConstraint.html#checkChildren()">checkChildren</A>, <A HREF="../../javatools/db/DbConstraint.html#clear()">clear</A>, <A HREF="../../javatools/db/DbConstraint.html#clone()">clone</A>, <A HREF="../../javatools/db/DbConstraint.html#getAutomaticChecking()">getAutomaticChecking</A>, <A HREF="../../javatools/db/DbConstraint.html#getConstraintEmulation()">getConstraintEmulation</A>, <A HREF="../../javatools/db/DbConstraint.html#getTable()">getTable</A>, <A HREF="../../javatools/db/DbConstraint.html#initLists()">initLists</A>, <A HREF="../../javatools/db/DbConstraint.html#initStaticLists()">initStaticLists</A>, <A HREF="../../javatools/db/DbConstraint.html#setAutomaticChecking(boolean)">setAutomaticChecking</A>, <A HREF="../../javatools/db/DbConstraint.html#setConstraintEmulation(boolean)">setConstraintEmulation</A>, <A HREF="../../javatools/db/DbConstraint.html#setSelector(javatools.db.DbSelector)">setSelector</A>, <A HREF="../../javatools/db/DbConstraint.html#setValueLists(java.util.List, java.util.List)">setValueLists</A>, <A HREF="../../javatools/db/DbConstraint.html#setWhere(javatools.db.DbExpr)">setWhere</A>, <A HREF="../../javatools/db/DbConstraint.html#updateThis(int)">updateThis</A></CODE></TD></TR></TABLE> <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class java.lang.Object</B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE>equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD></TR></TABLE> <P><!-- ============ FIELD DETAIL =========== --><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TD></TR></TABLE><A NAME="DbDynamicConstraint(javatools.db.DbAbstractTable)"><!-- --></A><H3>DbDynamicConstraint</H3><PRE>public <B>DbDynamicConstraint</B>(<A HREF="../../javatools/db/DbAbstractTable.html">DbAbstractTable</A> tbl)</PRE><DL><DD>Creates new DbDynamicConstraint<P><DT><B>Parameters:</B><DD><CODE>tbl</CODE> - The table to be referenced.</DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Method Detail</B></FONT></TD></TR></TABLE><A NAME="check(int)"><!-- --></A><H3>check</H3><PRE>public void <B>check</B>(int operation) throws <A HREF="../../javatools/db/DbException.html">DbException</A></PRE><DL><DD>Performs checking in the table, after setting all dynamic and "static" data.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../javatools/db/DbConstraint.html#check(int)">check</A></CODE> in class <CODE><A HREF="../../javatools/db/DbConstraint.html">DbConstraint</A></CODE></DL></DD><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 int <B>update</B>(int operation) throws <A HREF="../../javatools/db/DbException.html">DbException</A></PRE><DL><DD>Performs actual update in the table and, eventually, cascades. If automatic checking is set, it also checks before updating.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../javatools/db/DbConstraint.html#update(int)">update</A></CODE> in class <CODE><A HREF="../../javatools/db/DbConstraint.html">DbConstraint</A></CODE></DL></DD><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>The result from inserters, updaters or deleters.<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="addFatherTable(javatools.db.DbAbstractTable, javatools.db.DbColumn[], javatools.db.DbColumn[], int, int)"><!-- --></A><H3>addFatherTable</H3><PRE>public void <B>addFatherTable</B>(<A HREF="../../javatools/db/DbAbstractTable.html">DbAbstractTable</A> fatherTable, <A HREF="../../javatools/db/DbColumn.html">DbColumn</A>[] fatherColumns, <A HREF="../../javatools/db/DbColumn.html">DbColumn</A>[] pRefColumns, int updateOperation, int deleteOperation)</PRE><DL><DD>Adds a new father table.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>fatherTable</CODE> - The father table to be referenced.<DD><CODE>fatherColumns</CODE> - The father columns to use as father keys.<DD><CODE>pRefColumns</CODE> - The columns to be used as son keys.<DD><CODE>updateOperation</CODE> - What kind of operation should I do in case of an update?<DD><CODE>deleteOperation</CODE> - What kind of operation should I do in case of a deletion?</DL></DD></DL><HR><A NAME="addSonTable(javatools.db.DbAbstractTable, int)"><!-- --></A><H3>addSonTable</H3><PRE>public void <B>addSonTable</B>(<A HREF="../../javatools/db/DbAbstractTable.html">DbAbstractTable</A> sonTable, int fatherIndex)</PRE><DL><DD>Adds a son table.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>sonTable</CODE> - The table to be added as a son table.<DD><CODE>fatherIndex</CODE> - The index that the new son table uses to reference THIS table.</DL></DD></DL><HR><A NAME="getFatherTablesCount()"><!-- --></A><H3>getFatherTablesCount</H3><PRE>public int <B>getFatherTablesCount</B>()</PRE><DL><DD>Returns the number of referenced father tables.<P><DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../javatools/db/DbConstraint.html#getFatherTablesCount()">getFatherTablesCount</A></CODE> in class <CODE><A HREF="../../javatools/db/DbConstraint.html">DbConstraint</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>The father tables count.</DL></DD></DL><HR><A NAME="getSonTablesCount()"><!-- --></A><H3>getSonTablesCount</H3><PRE>public int <B>getSonTablesCount</B>()</PRE><DL><DD>Returns the number of son tables.<P><DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../javatools/db/DbConstraint.html#getSonTablesCount()">getSonTablesCount</A></CODE> in class <CODE><A HREF="../../javatools/db/DbConstraint.html">DbConstraint</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>The son tables count.</DL></DD></DL><HR><A NAME="getFatherTable(int)"><!-- --></A><H3>getFatherTable</H3><PRE>public <A HREF="../../javatools/db/DbAbstractTable.html">DbAbstractTable</A> <B>getFatherTable</B>(int index) throws <A HREF="../../javatools/db/DbException.html">DbException</A></PRE><DL><DD>Returns a father table whose index is specified.<P><DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../javatools/db/DbConstraint.html#getFatherTable(int)">getFatherTable</A></CODE> in class <CODE><A HREF="../../javatools/db/DbConstraint.html">DbConstraint</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>index</CODE> - The index of the requested father table.<DT><B>Returns:</B><DD>The requested 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="getSonTable(int)"><!-- --></A><H3>getSonTable</H3><PRE>public <A HREF="../../javatools/db/DbAbstractTable.html">DbAbstractTable</A> <B>getSonTable</B>(int index) throws <A HREF="../../javatools/db/DbException.html">DbException</A></PRE><DL><DD>Returns a son table whose index is specified.<P><DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../javatools/db/DbConstraint.html#getSonTable(int)">getSonTable</A></CODE> in class <CODE><A HREF="../../javatools/db/DbConstraint.html">DbConstraint</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>index</CODE> - The index of the requested son table.<DT><B>Returns:</B><DD>The requested son 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="getSonFatherIndex(int)"><!-- --></A><H3>getSonFatherIndex</H3><PRE>public int <B>getSonFatherIndex</B>(int index) throws <A HREF="../../javatools/db/DbException.html">DbException</A></PRE>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -