📄 table.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc on Thu Apr 06 18:48:43 GMT+04:00 2000 -->
<TITLE>
: Class Table
</TITLE>
<LINK REL ="stylesheet" TYPE="text/css" HREF="../stylesheet.css" TITLE="Style">
</HEAD>
<BODY BGCOLOR="white">
<!-- ========== START OF NAVBAR ========== -->
<A NAME="navbar_top"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" ID="NavBarCell1">
<A NAME="navbar_top_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">
<TR ALIGN="center" VALIGN="top">
<TD BGCOLOR="#EEEEFF" ID="NavBarCell1"> <A HREF="package-summary.html"><FONT ID="NavBarFont1"><B>Package</B></FONT></A> </TD>
<TD BGCOLOR="#FFFFFF" ID="NavBarCell1Rev"> <FONT ID="NavBarFont1Rev"><B>Class</B></FONT> </TD>
<TD BGCOLOR="#EEEEFF" ID="NavBarCell1"> <A HREF="package-tree.html"><FONT ID="NavBarFont1"><B>Tree</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" ID="NavBarCell1"> <A HREF="../deprecated-list.html"><FONT ID="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" ID="NavBarCell1"> <A HREF="../index-all.html"><FONT ID="NavBarFont1"><B>Index</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" ID="NavBarCell1"> <A HREF="../help-doc.html"><FONT ID="NavBarFont1"><B>Help</B></FONT></A> </TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" ID="NavBarCell2"><FONT SIZE="-2">
<A HREF="../jora/SessionThread.html"><B>PREV CLASS</B></A>
NEXT CLASS</FONT></TD>
<TD BGCOLOR="white" ID="NavBarCell2"><FONT SIZE="-2">
<A HREF="../index.html" TARGET="_top"><B>FRAMES</B></A>
<A HREF="Table.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD>
</TR>
<TR>
<TD VALIGN="top" ID="NavBarCell3"><FONT SIZE="-2">
SUMMARY: INNER | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" ID="NavBarCell3"><FONT SIZE="-2">
DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<!-- =========== END OF NAVBAR =========== -->
<HR>
<!-- ======== START OF CLASS DATA ======== -->
<H2>
<FONT SIZE="-1">
jora</FONT>
<BR>
Class Table</H2>
<PRE>
java.lang.Object
|
+--<B>jora.Table</B>
</PRE>
<HR>
<DL>
<DT>public class <B>Table</B><DT>extends java.lang.Object</DL>
<P>
Table class is used to establish mapping between corteges of database tables and Java classes. This class is responsible for constructing SQL statements for extracting, updating and deleting records of the database table.
<P>
<HR>
<P>
<!-- ======== INNER CLASS SUMMARY ======== -->
<!-- =========== FIELD SUMMARY =========== -->
<A NAME="field_summary"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" ID="TableHeadingColor">
<TD COLSPAN=2><FONT SIZE="+2">
<B>Field Summary</B></FONT></TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../jora/Table.html#fieldSeparator">fieldSeparator</A></B></CODE>
<BR>
Spearator of name components of compound field. </TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../jora/Table.html#useDepricatedGetBigDecimal">useDepricatedGetBigDecimal</A></B></CODE>
<BR>
Some versions of JDBC driver doesn't support <code>getBigDecimal(int columnIndex)</code>. </TD>
</TR>
</TABLE>
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<A NAME="constructor_summary"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" ID="TableHeadingColor">
<TD COLSPAN=2><FONT SIZE="+2">
<B>Constructor Summary</B></FONT></TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD><CODE><B><A HREF="../jora/Table.html#Table(java.lang.String)">Table</A></B>(java.lang.String className)</CODE>
<BR>
Constructor of table with "key" and "session" parameters inherited from base table.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD><CODE><B><A HREF="../jora/Table.html#Table(java.lang.String, jora.Session)">Table</A></B>(java.lang.String className, <A HREF="../jora/Session.html">Session</A> s)</CODE>
<BR>
Constructor of table without explicit key specification. </TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD><CODE><B><A HREF="../jora/Table.html#Table(java.lang.String, jora.Session, java.lang.String)">Table</A></B>(java.lang.String className, <A HREF="../jora/Session.html">Session</A> s, java.lang.String key)</CODE>
<BR>
Constructor for table object. </TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD><CODE><B><A HREF="../jora/Table.html#Table(java.lang.String, jora.Session, java.lang.String[])">Table</A></B>(java.lang.String className, <A HREF="../jora/Session.html">Session</A> s, java.lang.String[] keys)</CODE>
<BR>
Constructor for table object. </TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD><CODE><B><A HREF="../jora/Table.html#Table(java.lang.String, java.lang.String, jora.Session, java.lang.String)">Table</A></B>(java.lang.String className, java.lang.String tableName, <A HREF="../jora/Session.html">Session</A> s, java.lang.String key)</CODE>
<BR>
Constructor for table object. </TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD><CODE><B><A HREF="../jora/Table.html#Table(java.lang.String, java.lang.String, jora.Session, java.lang.String[])">Table</A></B>(java.lang.String className, java.lang.String tableName, <A HREF="../jora/Session.html">Session</A> s, java.lang.String[] keys)</CODE>
<BR>
Constructor for table object. </TD>
</TR>
</TABLE>
<!-- ========== METHOD SUMMARY =========== -->
<A NAME="method_summary"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" ID="TableHeadingColor">
<TD COLSPAN=2><FONT SIZE="+2">
<B>Method Summary</B></FONT></TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../jora/Table.html#delete(java.lang.Object)">delete</A></B>(java.lang.Object obj)</CODE>
<BR>
Delete record with specified value of primary key from the table.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../jora/Table.html#delete(java.lang.Object[])">delete</A></B>(java.lang.Object[] objects)</CODE>
<BR>
Delete records with specified primary keys from the table.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../jora/Table.html#delete(java.lang.Object[], jora.Session)">delete</A></B>(java.lang.Object[] objects, <A HREF="../jora/Session.html">Session</A> session)</CODE>
<BR>
Delete records with specified primary keys from the table.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../jora/Table.html#delete(java.lang.Object, jora.Session)">delete</A></B>(java.lang.Object obj, <A HREF="../jora/Session.html">Session</A> session)</CODE>
<BR>
Delete record with specified value of primary key from the table.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../jora/Table.html#insert(java.lang.Object)">insert</A></B>(java.lang.Object obj)</CODE>
<BR>
Insert new record in the table. </TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../jora/Table.html#insert(java.lang.Object[])">insert</A></B>(java.lang.Object[] objects)</CODE>
<BR>
Insert several new records in the table. </TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../jora/Table.html#insert(java.lang.Object[], jora.Session)">insert</A></B>(java.lang.Object[] objects, <A HREF="../jora/Session.html">Session</A> session)</CODE>
<BR>
Insert several new records in the table. </TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../jora/Table.html#insert(java.lang.Object, jora.Session)">insert</A></B>(java.lang.Object obj, <A HREF="../jora/Session.html">Session</A> session)</CODE>
<BR>
Insert new record in the table using specified database session. </TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../jora/Cursor.html">Cursor</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../jora/Table.html#queryAllByExample(java.lang.Object)">queryAllByExample</A></B>(java.lang.Object obj)</CODE>
<BR>
Select records from specified and derived database tables using <I>obj</I> object as template for selection. </TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../jora/Cursor.html">Cursor</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../jora/Table.html#queryAllByExample(java.lang.Object, jora.Session)">queryAllByExample</A></B>(java.lang.Object obj, <A HREF="../jora/Session.html">Session</A> session)</CODE>
<BR>
Select records from specified and derived database tables using <I>obj</I> object as template for selection. </TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../jora/Cursor.html">Cursor</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../jora/Table.html#queryByExample(java.lang.Object)">queryByExample</A></B>(java.lang.Object obj)</CODE>
<BR>
Select records from database table using <I>obj</I> object as template for selection. </TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../jora/Cursor.html">Cursor</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../jora/Table.html#queryByExample(java.lang.Object, jora.Session)">queryByExample</A></B>(java.lang.Object obj, <A HREF="../jora/Session.html">Session</A> session)</CODE>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -