📄 dbconstraint.html
字号:
<TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE>equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD></TR></TABLE> <P><!-- ============ FIELD DETAIL =========== --><A NAME="field_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Field Detail</B></FONT></TD></TR></TABLE><A NAME="INSERT_OPERATION"><!-- --></A><H3>INSERT_OPERATION</H3><PRE>public static final int <B>INSERT_OPERATION</B></PRE><DL><DD>It represents an INSERT operation.<P><DL><DT><B>See Also:</B><DD><A HREF="../../constant-values.html#javatools.db.DbConstraint.INSERT_OPERATION">Constant Field Values</A></DL></DL><HR><A NAME="DELETE_OPERATION"><!-- --></A><H3>DELETE_OPERATION</H3><PRE>public static final int <B>DELETE_OPERATION</B></PRE><DL><DD>It represents a DELETE operation.<P><DL><DT><B>See Also:</B><DD><A HREF="../../constant-values.html#javatools.db.DbConstraint.DELETE_OPERATION">Constant Field Values</A></DL></DL><HR><A NAME="UPDATE_OPERATION"><!-- --></A><H3>UPDATE_OPERATION</H3><PRE>public static final int <B>UPDATE_OPERATION</B></PRE><DL><DD>It represents a normal UPDATE operation.<P><DL><DT><B>See Also:</B><DD><A HREF="../../constant-values.html#javatools.db.DbConstraint.UPDATE_OPERATION">Constant Field Values</A></DL></DL><HR><A NAME="UPDATE_CASCADE"><!-- --></A><H3>UPDATE_CASCADE</H3><PRE>protected static final int <B>UPDATE_CASCADE</B></PRE><DL><DD>It means that an UPDATE-CASCADE operation is outgoing. It is protected because it is useful only for internal checks-updates.<P><DL><DT><B>See Also:</B><DD><A HREF="../../constant-values.html#javatools.db.DbConstraint.UPDATE_CASCADE">Constant Field Values</A></DL></DL><HR><A NAME="DO_NOTHING"><!-- --></A><H3>DO_NOTHING</H3><PRE>public static final int <B>DO_NOTHING</B></PRE><DL><DD>It means that, in case of an UPDATE/DELETE operation, the table MUST NOT do anything to repair itself.<P><DL><DT><B>See Also:</B><DD><A HREF="../../constant-values.html#javatools.db.DbConstraint.DO_NOTHING">Constant Field Values</A></DL></DL><HR><A NAME="SET_NULL"><!-- --></A><H3>SET_NULL</H3><PRE>public static final int <B>SET_NULL</B></PRE><DL><DD>It means that, in case of an UPDATE/DELETE operation, the constraint MUST set an array of fields in involved rows to NULL values, to repair referenced table.<P><DL><DT><B>See Also:</B><DD><A HREF="../../constant-values.html#javatools.db.DbConstraint.SET_NULL">Constant Field Values</A></DL></DL><HR><A NAME="SET_DEFAULT"><!-- --></A><H3>SET_DEFAULT</H3><PRE>public static final int <B>SET_DEFAULT</B></PRE><DL><DD>It means that, in case of an UPDATE/DELETE operation, the constraint MUST set an array of fields in involved rows to DEFAULT values, to repair referenced table.<P><DL><DT><B>See Also:</B><DD><A HREF="../../constant-values.html#javatools.db.DbConstraint.SET_DEFAULT">Constant Field Values</A></DL></DL><HR><A NAME="CASCADE"><!-- --></A><H3>CASCADE</H3><PRE>public static final int <B>CASCADE</B></PRE><DL><DD>It means that, in case of an UPDATE/DELETE operation, the constraint MUST cascade the operation, that is updating/deleting in cascade all involved rows.<P><DL><DT><B>See Also:</B><DD><A HREF="../../constant-values.html#javatools.db.DbConstraint.CASCADE">Constant Field Values</A></DL></DL><HR><A NAME="table"><!-- --></A><H3>table</H3><PRE>protected <A HREF="../../javatools/db/DbAbstractTable.html">DbAbstractTable</A> <B>table</B></PRE><DL><DD>The referenced table to check.<P><DL></DL></DL><HR><A NAME="where"><!-- --></A><H3>where</H3><PRE>protected <A HREF="../../javatools/db/DbExpr.html">DbExpr</A> <B>where</B></PRE><DL><DD>A DbExpr clause used int DELETE/UPDATE operations.<P><DL></DL></DL><HR><A NAME="selector"><!-- --></A><H3>selector</H3><PRE>protected <A HREF="../../javatools/db/DbSelector.html">DbSelector</A> <B>selector</B></PRE><DL><DD>A selector used in INSERT operations.<P><DL></DL></DL><HR><A NAME="intoList"><!-- --></A><H3>intoList</H3><PRE>protected java.util.List <B>intoList</B></PRE><DL><DD>A list of columns to put data into (used in INSERT/UPDATE operations).<P><DL></DL></DL><HR><A NAME="fromList"><!-- --></A><H3>fromList</H3><PRE>protected java.util.List <B>fromList</B></PRE><DL><DD>A list of values/expression to put data into (used in INSERT/UPDATE operations).<P><DL></DL></DL><HR><A NAME="automaticChecking"><!-- --></A><H3>automaticChecking</H3><PRE>protected boolean <B>automaticChecking</B></PRE><DL><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>.<P><DL></DL></DL><HR><A NAME="constraintEmulation"><!-- --></A><H3>constraintEmulation</H3><PRE>protected boolean <B>constraintEmulation</B></PRE><DL><DD><CODE>true</CODE>: emulation made as needed; <CODE>false</CODE>: emulation is not made.<P><DL></DL></DL><HR><A NAME="currentOperation"><!-- --></A><H3>currentOperation</H3><PRE>protected int <B>currentOperation</B></PRE><DL><DD>Represents the current operation. (INSERT, DELETE, UPDATE, UPDATE-CASCADE).<P><DL></DL></DL><HR><A NAME="canDoUpdate"><!-- --></A><H3>canDoUpdate</H3><PRE>protected boolean <B>canDoUpdate</B></PRE><DL><DD><CODE>true</CODE>: update can be done. <CODE>false</CODE>: update CANNOT be done. It is put to <CODE>false</CODE> whenever the DBMS can perform referencial integrity check by itself; e.g. MySQL cannot, so it must be done in a "software" way.<P><DL></DL></DL><HR><A NAME="fatherTables"><!-- --></A><H3>fatherTables</H3><PRE>protected <A HREF="../../javatools/db/DbAbstractTable.html">DbAbstractTable</A>[] <B>fatherTables</B></PRE><DL><DD>It contains all father tables of the one referenced by this constraint.<P><DL></DL></DL><HR><A NAME="sonTables"><!-- --></A><H3>sonTables</H3><PRE>protected <A HREF="../../javatools/db/DbAbstractTable.html">DbAbstractTable</A>[] <B>sonTables</B></PRE><DL><DD>It contains all son tables of the one referenced by this constraint.<P><DL></DL></DL><HR><A NAME="updateOperations"><!-- --></A><H3>updateOperations</H3><PRE>protected java.lang.Integer[] <B>updateOperations</B></PRE><DL><DD>It contains the update operations for each father table.<P><DL></DL></DL><HR><A NAME="deleteOperations"><!-- --></A><H3>deleteOperations</H3><PRE>protected java.lang.Integer[] <B>deleteOperations</B></PRE><DL><DD>It contains the delete operations for each father table.<P><DL></DL></DL><HR><A NAME="fatherTablesColumns"><!-- --></A><H3>fatherTablesColumns</H3><PRE>protected <A HREF="../../javatools/db/DbColumn.html">DbColumn</A>[][] <B>fatherTablesColumns</B></PRE><DL><DD>It contains the father keys for each father table.<P><DL></DL></DL><HR><A NAME="refColumns"><!-- --></A><H3>refColumns</H3><PRE>protected <A HREF="../../javatools/db/DbColumn.html">DbColumn</A>[][] <B>refColumns</B></PRE><DL><DD>It contains for each father table, the referenced column in contained table. That is each element in <CODE>fatherTablesColumns</CODE>, columns of father tables, must be equal to each element in <CODE>refColumns</CODE>, columns of THIS table.<P><DL></DL></DL><HR><A NAME="fatherColsChildren"><!-- --></A><H3>fatherColsChildren</H3><PRE>protected <A HREF="../../javatools/db/DbColumn.html">DbColumn</A>[][] <B>fatherColsChildren</B></PRE><DL><DD>For each son, it contains the referenced column of THIS table. It is built automatically, to ease checking.<P><DL></DL></DL><HR><A NAME="refColsChildren"><!-- --></A><H3>refColsChildren</H3><PRE>protected <A HREF="../../javatools/db/DbColumn.html">DbColumn</A>[][] <B>refColsChildren</B></PRE><DL><DD>For each son it contains the referenced columns of son tables. It is built automatically, to ease checking.<P><DL></DL></DL><HR><A NAME="sonIndexes"><!-- --></A><H3>sonIndexes</H3><PRE>protected java.lang.Integer[] <B>sonIndexes</B></PRE><DL><DD>For each son, it contains the position in the <CODE>fatherTables</CODE> of the son table itself.<P><DL></DL></DL><HR><A NAME="refs"><!-- --></A><H3>refs</H3><PRE>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -