📄 dbabstracttable.html
字号:
</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../javatools/db/DbInserter.html">DbInserter</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javatools/db/DbAbstractTable.html#simpleInserter()">simpleInserter</A></B>()</CODE><BR> Return an inserter for inserting new data in the database. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../javatools/db/DbInserter.html">DbInserter</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javatools/db/DbAbstractTable.html#simpleInserter(javatools.db.DbSelector)">simpleInserter</A></B>(<A HREF="../../javatools/db/DbSelector.html">DbSelector</A> selector)</CODE><BR> Return an inserter for inserting new data in the database. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../javatools/db/DbUpdater.html">DbUpdater</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javatools/db/DbAbstractTable.html#simpleUpdater()">simpleUpdater</A></B>()</CODE><BR> Return an updater for updating rows in the database. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../javatools/db/DbUpdater.html">DbUpdater</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javatools/db/DbAbstractTable.html#updater()">updater</A></B>()</CODE><BR> Return an updater for updating rows in the database. </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/DbAbstractTable.html#usesTables(java.util.Set)">usesTables</A></B>(java.util.Set c)</CODE><BR> Returns used tables (useful in joined tables).</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>clone, 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="db"><!-- --></A><H3>db</H3><PRE>protected <A HREF="../../javatools/db/DbDatabase.html">DbDatabase</A> <B>db</B></PRE><DL><DD>The database used for the connection.<P><DL></DL></DL><HR><A NAME="tableName"><!-- --></A><H3>tableName</H3><PRE>protected java.lang.String <B>tableName</B></PRE><DL><DD>The name of used table<P><DL></DL></DL><HR><A NAME="names"><!-- --></A><H3>names</H3><PRE>protected java.lang.String[] <B>names</B></PRE><DL><DD>This array contains the names of the fields of the table.<P><DL></DL></DL><HR><A NAME="displaySize"><!-- --></A><H3>displaySize</H3><PRE>protected int[] <B>displaySize</B></PRE><DL><DD>This array contains the display size for each field.<P><DL></DL></DL><HR><A NAME="types"><!-- --></A><H3>types</H3><PRE>protected int[] <B>types</B></PRE><DL><DD>This array contains the SQL types for each field.<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="DbAbstractTable(javatools.db.DbDatabase)"><!-- --></A><H3>DbAbstractTable</H3><PRE>public <B>DbAbstractTable</B>(<A HREF="../../javatools/db/DbDatabase.html">DbDatabase</A> db) throws <A HREF="../../javatools/db/DbException.html">DbException</A></PRE><DL><DD>Constructor. It sets only the database for the connection.<P><DT><B>Parameters:</B><DD><CODE>db</CODE> - The database to be used<DT><B>Throws:</B><DD><CODE><A HREF="../../javatools/db/DbException.html">DbException</A></CODE> - If something goes wrong.</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="setTableName(java.lang.String)"><!-- --></A><H3>setTableName</H3><PRE>public void <B>setTableName</B>(java.lang.String v)</PRE><DL><DD>Sets the name of the referenced table.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>v</CODE> - The table name.</DL></DD></DL><HR><A NAME="getColumn(java.lang.String)"><!-- --></A><H3>getColumn</H3><PRE>public abstract <A HREF="../../javatools/db/DbColumn.html">DbColumn</A> <B>getColumn</B>(java.lang.String name) throws <A HREF="../../javatools/db/DbException.html">DbException</A></PRE><DL><DD>Get the DbColumn representing the column with this name.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - The name of tjhe needed column<DT><B>Returns:</B><DD>The column value<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="getColumn(int)"><!-- --></A><H3>getColumn</H3><PRE>public abstract <A HREF="../../javatools/db/DbColumn.html">DbColumn</A> <B>getColumn</B>(int index) throws <A HREF="../../javatools/db/DbException.html">DbException</A></PRE><DL><DD>Get the column of the given index. Index is a zero based array.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>index</CODE> - The position of the needed column.<DT><B>Returns:</B><DD>The column value<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="getColumnCount()"><!-- --></A><H3>getColumnCount</H3><PRE>public abstract int <B>getColumnCount</B>()</PRE><DL><DD>Returns the number of columns<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>The number of columns.</DL></DD></DL><HR><A NAME="getConstraint()"><!-- --></A><H3>getConstraint</H3><PRE>public abstract <A HREF="../../javatools/db/DbConstraint.html">DbConstraint</A> <B>getConstraint</B>()</PRE><DL><DD>Returns the DbConstraint object associated with this table.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>The requested DbConstraint.</DL></DD></DL><HR><A NAME="getDefault(int)"><!-- --></A><H3>getDefault</H3><PRE>public abstract java.lang.Object <B>getDefault</B>(int index) throws <A HREF="../../javatools/db/DbException.html">DbException</A></PRE><DL><DD>Returns the default value for the field at the given index.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>index</CODE> - The field index.<DT><B>Returns:</B><DD>The default value for the requested field.<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="getDefault(java.lang.String)"><!-- --></A><H3>getDefault</H3><PRE>public abstract java.lang.Object <B>getDefault</B>(java.lang.String name) throws <A HREF="../../javatools/db/DbException.html">DbException</A></PRE><DL><DD>Returns the default value for the field whose name is specified.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - The name of the needed field.<DT><B>Returns:</B><DD>The default value for the requested field.<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="getDatabase()"><!-- --></A><H3>getDatabase</H3><PRE>public <A HREF="../../javatools/db/DbDatabase.html">DbDatabase</A> <B>getDatabase</B>()</PRE><DL>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -