📄 dbconstraint.html
字号:
protected java.lang.Integer[][] <B>refs</B></PRE><DL><DD>It's an array built at runtime to represent, for each father, the referenced fields if they are specified in <CODE>intoList</CODE> for INSERT or UPDATE operations.<P><DL></DL></DL><HR><A NAME="searchSets"><!-- --></A><H3>searchSets</H3><PRE>protected java.util.TreeSet[] <B>searchSets</B></PRE><DL><DD>Contains the search sets used to perform checks for each son table.<P><DL></DL></DL><HR><A NAME="sonsWhere"><!-- --></A><H3>sonsWhere</H3><PRE>protected <A HREF="../../javatools/db/DbExpr.html">DbExpr</A>[] <B>sonsWhere</B></PRE><DL><DD>Contains the "where" clauses for each son.<P><DL></DL></DL><HR><A NAME="fatherRecords"><!-- --></A><H3>fatherRecords</H3><PRE>protected <A HREF="../../javatools/db/DbTable.html">DbTable</A> <B>fatherRecords</B></PRE><DL><DD>Contains the father records used to find eventually involved rows.<P><DL></DL></DL><HR><A NAME="deleteCascadeChildren"><!-- --></A><H3>deleteCascadeChildren</H3><PRE>protected java.lang.Integer[] <B>deleteCascadeChildren</B></PRE><DL><DD>Currently unused.<P><DL></DL></DL><HR><A NAME="updateCascadeChildren"><!-- --></A><H3>updateCascadeChildren</H3><PRE>protected java.lang.Integer[] <B>updateCascadeChildren</B></PRE><DL><DD>Currently unused.<P><DL></DL></DL><HR><A NAME="constraints"><!-- --></A><H3>constraints</H3><PRE>protected <A HREF="../../javatools/db/DbConstraint.html">DbConstraint</A>[] <B>constraints</B></PRE><DL><DD>Contains an array of constraint to perform cascade-check and cascade-updates.<P><DL></DL></DL><HR><A NAME="defaultValues"><!-- --></A><H3>defaultValues</H3><PRE>protected java.lang.Object[][] <B>defaultValues</B></PRE><DL><DD>Contains default values for each referenced field of each father table.<P><DL></DL></DL><HR><A NAME="updateIntoLists"><!-- --></A><H3>updateIntoLists</H3><PRE>protected java.util.List[] <B>updateIntoLists</B></PRE><DL><DD>Contains an array of <CODE>intoList</CODE>-like lists, to perform update operations in son tables.<P><DL></DL></DL><HR><A NAME="updateFromLists"><!-- --></A><H3>updateFromLists</H3><PRE>protected java.util.List[] <B>updateFromLists</B></PRE><DL><DD>Contains an array of <CODE>fromList</CODE>-like lists, to perform update operations in son tables.<P><DL></DL></DL><HR><A NAME="cloned"><!-- --></A><H3>cloned</H3><PRE>protected boolean <B>cloned</B></PRE><DL><DD><CODE>true</CODE>: the object is cloned. <CODE>false</CODE>: the object is NOT cloned.<P><DL></DL></DL><!-- ========= 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="DbConstraint()"><!-- --></A><H3>DbConstraint</H3><PRE>public <B>DbConstraint</B>()</PRE><DL><DD>Creates new DbConstraint<P></DL><HR><A NAME="DbConstraint(javatools.db.DbAbstractTable)"><!-- --></A><H3>DbConstraint</H3><PRE>public <B>DbConstraint</B>(<A HREF="../../javatools/db/DbAbstractTable.html">DbAbstractTable</A> tbl)</PRE><DL><DD>Creates a new DbConstraint for a specified table.<P><DT><B>Parameters:</B><DD><CODE>tbl</CODE> - The table to be checked.</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="getTable()"><!-- --></A><H3>getTable</H3><PRE>public <A HREF="../../javatools/db/DbAbstractTable.html">DbAbstractTable</A> <B>getTable</B>()</PRE><DL><DD>Returns the referenced table.<P><DD><DL><DT><B>Returns:</B><DD>The referenced table.</DL></DD></DL><HR><A NAME="setWhere(javatools.db.DbExpr)"><!-- --></A><H3>setWhere</H3><PRE>public void <B>setWhere</B>(<A HREF="../../javatools/db/DbExpr.html">DbExpr</A> pWhere)</PRE><DL><DD>Sets the "where" clause for an DELETE/UPDATE operation.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>pWhere</CODE> - The requested clause.</DL></DD></DL><HR><A NAME="setSelector(javatools.db.DbSelector)"><!-- --></A><H3>setSelector</H3><PRE>public void <B>setSelector</B>(<A HREF="../../javatools/db/DbSelector.html">DbSelector</A> pSelector)</PRE><DL><DD>Sets the selector for an INSERT operation.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>pSelector</CODE> - The requested selector.</DL></DD></DL><HR><A NAME="setValueLists(java.util.List, java.util.List)"><!-- --></A><H3>setValueLists</H3><PRE>public void <B>setValueLists</B>(java.util.List pIntoList, java.util.List pFromList)</PRE><DL><DD>Sets the lists to perform INSERT/UPDATE operations.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>pIntoList</CODE> - It will be put into <CODE>intoList</CODE>.<DD><CODE>pFromList</CODE> - It will be put into <CODE>fromList</CODE>.</DL></DD></DL><HR><A NAME="setAutomaticChecking(boolean)"><!-- --></A><H3>setAutomaticChecking</H3><PRE>public void <B>setAutomaticChecking</B>(boolean value)</PRE><DL><DD>Sets a flag to represent automatic checking at all times.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>value</CODE> - <CODE>true</CODE>: check is done at all times; <CODE>false</CODE>: check is performed only with an explicit call to <CODE>check</CODE>.</DL></DD></DL><HR><A NAME="getAutomaticChecking()"><!-- --></A><H3>getAutomaticChecking</H3><PRE>public boolean <B>getAutomaticChecking</B>()</PRE><DL><DD>Returns the current automatic checking setting.<P><DD><DL><DT><B>Returns:</B><DD><CODE>true</CODE>: check is done at all times; <CODE>false</CODE>: check is performed only with an explicit call to <CODE>check</CODE>.</DL></DD></DL><HR><A NAME="setConstraintEmulation(boolean)"><!-- --></A><H3>setConstraintEmulation</H3><PRE>public void <B>setConstraintEmulation</B>(boolean value)</PRE><DL><DD>Sets the constraint emulation.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>value</CODE> - <CODE>true</CODE>: constraint emulation is done as needed; <CODE>false</CODE>: constraint emulation is NEVER done.</DL></DD></DL><HR><A NAME="getConstraintEmulation()"><!-- --></A><H3>getConstraintEmulation</H3><PRE>public boolean <B>getConstraintEmulation</B>()</PRE><DL><DD>Returns if constraint emulation is enabled.<P><DD><DL><DT><B>Returns:</B><DD><CODE>true</CODE>: constraint emulation is done as needed; <CODE>false</CODE>: constraint emulation is NEVER done.</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>Returns:</B><DD>The count of referenced father tables.</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>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>Parameters:</B><DD><CODE>index</CODE> - The index of a father table.<DT><B>Returns:</B><DD>The 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="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>Parameters:</B><DD><CODE>index</CODE> - The index of a 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>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -