📄 dbconstraint.html
字号:
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected <A HREF="../../javatools/db/DbAbstractTable.html">DbAbstractTable</A>[]</CODE></FONT></TD><TD><CODE><B><A HREF="../../javatools/db/DbConstraint.html#sonTables">sonTables</A></B></CODE><BR> It contains all son tables of the one referenced by this constraint.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected <A HREF="../../javatools/db/DbAbstractTable.html">DbAbstractTable</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javatools/db/DbConstraint.html#table">table</A></B></CODE><BR> The referenced table to check.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected static int</CODE></FONT></TD><TD><CODE><B><A HREF="../../javatools/db/DbConstraint.html#UPDATE_CASCADE">UPDATE_CASCADE</A></B></CODE><BR> It means that an UPDATE-CASCADE operation is outgoing. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static int</CODE></FONT></TD><TD><CODE><B><A HREF="../../javatools/db/DbConstraint.html#UPDATE_OPERATION">UPDATE_OPERATION</A></B></CODE><BR> It represents a normal UPDATE operation.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected java.lang.Integer[]</CODE></FONT></TD><TD><CODE><B><A HREF="../../javatools/db/DbConstraint.html#updateCascadeChildren">updateCascadeChildren</A></B></CODE><BR> Currently unused.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected java.util.List[]</CODE></FONT></TD><TD><CODE><B><A HREF="../../javatools/db/DbConstraint.html#updateFromLists">updateFromLists</A></B></CODE><BR> Contains an array of <CODE>fromList</CODE>-like lists, to perform update operations in son tables.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected java.util.List[]</CODE></FONT></TD><TD><CODE><B><A HREF="../../javatools/db/DbConstraint.html#updateIntoLists">updateIntoLists</A></B></CODE><BR> Contains an array of <CODE>intoList</CODE>-like lists, to perform update operations in son tables.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected java.lang.Integer[]</CODE></FONT></TD><TD><CODE><B><A HREF="../../javatools/db/DbConstraint.html#updateOperations">updateOperations</A></B></CODE><BR> It contains the update operations for each father table.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected <A HREF="../../javatools/db/DbExpr.html">DbExpr</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javatools/db/DbConstraint.html#where">where</A></B></CODE><BR> A DbExpr clause used int DELETE/UPDATE operations.</TD></TR></TABLE> <!-- ======== CONSTRUCTOR SUMMARY ======== --><A NAME="constructor_summary"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Constructor Summary</B></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../javatools/db/DbConstraint.html#DbConstraint()">DbConstraint</A></B>()</CODE><BR> Creates new DbConstraint</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../javatools/db/DbConstraint.html#DbConstraint(javatools.db.DbAbstractTable)">DbConstraint</A></B>(<A HREF="../../javatools/db/DbAbstractTable.html">DbAbstractTable</A> tbl)</CODE><BR> Creates a new DbConstraint for a specified table.</TD></TR></TABLE> <!-- ========== METHOD SUMMARY =========== --><A NAME="method_summary"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Method Summary</B></FONT></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/DbConstraint.html#build()">build</A></B>()</CODE><BR> After all settings, it finally builds all static references.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>abstract void</CODE></FONT></TD><TD><CODE><B><A HREF="../../javatools/db/DbConstraint.html#check(int)">check</A></B>(int operation)</CODE><BR> After setting all dynamic (i.e. operations, lists etc.) information, it checks explicitly if all operations can be done. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected void</CODE></FONT></TD><TD><CODE><B><A HREF="../../javatools/db/DbConstraint.html#checkChildren()">checkChildren</A></B>()</CODE><BR> Checks recursively each son.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected void</CODE></FONT></TD><TD><CODE><B><A HREF="../../javatools/db/DbConstraint.html#checkFathers()">checkFathers</A></B>()</CODE><BR> Performs checking for father tables. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected void</CODE></FONT></TD><TD><CODE><B><A HREF="../../javatools/db/DbConstraint.html#checkThis(int)">checkThis</A></B>(int operation)</CODE><BR> Performs base checks.</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/DbConstraint.html#clear()">clear</A></B>()</CODE><BR> Clears everything.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected java.lang.Object</CODE></FONT></TD><TD><CODE><B><A HREF="../../javatools/db/DbConstraint.html#clone()">clone</A></B>()</CODE><BR> Clones this object. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../javatools/db/DbConstraint.html#getAutomaticChecking()">getAutomaticChecking</A></B>()</CODE><BR> Returns the current automatic checking setting.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../javatools/db/DbConstraint.html#getConstraintEmulation()">getConstraintEmulation</A></B>()</CODE><BR> Returns if constraint emulation is enabled.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> java.lang.Object[]</CODE></FONT></TD><TD><CODE><B><A HREF="../../javatools/db/DbConstraint.html#getDefaultValues(int)">getDefaultValues</A></B>(int index)</CODE><BR> Returns an array containing the default values for fields of a father 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/DbConstraint.html#getDeleteOperation(int)">getDeleteOperation</A></B>(int index)</CODE><BR> Returns what kind of operation will be done in case of a deletion of the father table specified by <CODE>index</CODE>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../javatools/db/DbColumn.html">DbColumn</A>[]</CODE></FONT></TD><TD><CODE><B><A HREF="../../javatools/db/DbConstraint.html#getFatherColumns(int)">getFatherColumns</A></B>(int index)</CODE><BR> Returns the referenced father columns of a father table whose index is specified.</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/DbConstraint.html#getFatherTable(int)">getFatherTable</A></B>(int index)</CODE><BR> Returns a father 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/DbConstraint.html#getFatherTablesCount()">getFatherTablesCount</A></B>()</CODE><BR> Returns the number of referenced father tables.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../javatools/db/DbColumn.html">DbColumn</A>[]</CODE></FONT></TD><TD><CODE><B><A HREF="../../javatools/db/DbConstraint.html#getRefColumns(int)">getRefColumns</A></B>(int index)</CODE><BR> Returns the referencing columns of THIS table for a father 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/DbConstraint.html#getSonFatherIndex(int)">getSonFatherIndex</A></B>(int index)</CODE><BR> Returns in which position a son table references THIS table in its constraint.</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/DbConstraint.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/DbConstraint.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> <A HREF="../../javatools/db/DbAbstractTable.html">DbAbstractTable</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javatools/db/DbConstraint.html#getTable()">getTable</A></B>()</CODE><BR> Returns the referenced table.</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/DbConstraint.html#getUpdateOperation(int)">getUpdateOperation</A></B>(int index)</CODE><BR> Returns what kind of operation will be done in case of an update of the father table specified by <CODE>index</CODE>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected void</CODE></FONT></TD><TD><CODE><B><A HREF="../../javatools/db/DbConstraint.html#initLists()">initLists</A></B>()</CODE><BR> Builds all dynamic lists (where clauses, constraints etc.).</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected void</CODE></FONT></TD><TD><CODE><B><A HREF="../../javatools/db/DbConstraint.html#initStaticLists()">initStaticLists</A></B>()</CODE><BR> Inits static lists, like indexes of son tables, default values of father tables etc.</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/DbConstraint.html#setAutomaticChecking(boolean)">setAutomaticChecking</A></B>(boolean value)</CODE><BR> Sets a flag to represent automatic checking at all times.</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/DbConstraint.html#setConstraintEmulation(boolean)">setConstraintEmulation</A></B>(boolean value)</CODE><BR> Sets the constraint emulation.</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/DbConstraint.html#setSelector(javatools.db.DbSelector)">setSelector</A></B>(<A HREF="../../javatools/db/DbSelector.html">DbSelector</A> pSelector)</CODE><BR> Sets the selector for an INSERT operation.</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/DbConstraint.html#setValueLists(java.util.List, java.util.List)">setValueLists</A></B>(java.util.List pIntoList, java.util.List pFromList)</CODE><BR> Sets the lists to perform INSERT/UPDATE operations.</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/DbConstraint.html#setWhere(javatools.db.DbExpr)">setWhere</A></B>(<A HREF="../../javatools/db/DbExpr.html">DbExpr</A> pWhere)</CODE><BR> Sets the "where" clause for an DELETE/UPDATE operation.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>abstract int</CODE></FONT></TD><TD><CODE><B><A HREF="../../javatools/db/DbConstraint.html#update(int)">update</A></B>(int operation)</CODE><BR> Actually updates the table and all of its son tables. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected int</CODE></FONT></TD><TD><CODE><B><A HREF="../../javatools/db/DbConstraint.html#updateThis(int)">updateThis</A></B>(int operation)</CODE><BR> Performs base update. </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>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -