⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 jdbcxydataset.html

📁 jfreechart1。0。2的api。
💻 HTML
📖 第 1 页 / 共 3 页
字号:
<CODE>&nbsp;java.lang.Comparable</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/jfree/data/jdbc/JDBCXYDataset.html#getSeriesKey(int)">getSeriesKey</A></B>(int&nbsp;seriesIndex)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the key for the specified series.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;java.lang.Number</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/jfree/data/jdbc/JDBCXYDataset.html#getX(int, int)">getX</A></B>(int&nbsp;seriesIndex,         int&nbsp;itemIndex)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the x-value for the specified series and item.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;java.lang.Number</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/jfree/data/jdbc/JDBCXYDataset.html#getY(int, int)">getY</A></B>(int&nbsp;seriesIndex,         int&nbsp;itemIndex)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the y-value for the specified series and item.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/jfree/data/jdbc/JDBCXYDataset.html#isTimeSeries()">isTimeSeries</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns <code>true</code> if the dataset represents time series data,  and <code>false</code> otherwise.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/jfree/data/jdbc/JDBCXYDataset.html#setTimeSeries(boolean)">setTimeSeries</A></B>(boolean&nbsp;timeSeries)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets a flag that indicates whether or not the data represents a time  series.</TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_org.jfree.data.xy.AbstractXYDataset"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TH ALIGN="left"><B>Methods inherited from class org.jfree.data.xy.<A HREF="../../../../org/jfree/data/xy/AbstractXYDataset.html" title="class in org.jfree.data.xy">AbstractXYDataset</A></B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../../org/jfree/data/xy/AbstractXYDataset.html#getDomainOrder()">getDomainOrder</A>, <A HREF="../../../../org/jfree/data/xy/AbstractXYDataset.html#getXValue(int, int)">getXValue</A>, <A HREF="../../../../org/jfree/data/xy/AbstractXYDataset.html#getYValue(int, int)">getYValue</A></CODE></TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_org.jfree.data.general.AbstractSeriesDataset"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TH ALIGN="left"><B>Methods inherited from class org.jfree.data.general.<A HREF="../../../../org/jfree/data/general/AbstractSeriesDataset.html" title="class in org.jfree.data.general">AbstractSeriesDataset</A></B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../../org/jfree/data/general/AbstractSeriesDataset.html#indexOf(java.lang.Comparable)">indexOf</A>, <A HREF="../../../../org/jfree/data/general/AbstractSeriesDataset.html#seriesChanged(org.jfree.data.general.SeriesChangeEvent)">seriesChanged</A></CODE></TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_org.jfree.data.general.AbstractDataset"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TH ALIGN="left"><B>Methods inherited from class org.jfree.data.general.<A HREF="../../../../org/jfree/data/general/AbstractDataset.html" title="class in org.jfree.data.general">AbstractDataset</A></B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../../org/jfree/data/general/AbstractDataset.html#addChangeListener(org.jfree.data.general.DatasetChangeListener)">addChangeListener</A>, <A HREF="../../../../org/jfree/data/general/AbstractDataset.html#clone()">clone</A>, <A HREF="../../../../org/jfree/data/general/AbstractDataset.html#fireDatasetChanged()">fireDatasetChanged</A>, <A HREF="../../../../org/jfree/data/general/AbstractDataset.html#getGroup()">getGroup</A>, <A HREF="../../../../org/jfree/data/general/AbstractDataset.html#hasListener(java.util.EventListener)">hasListener</A>, <A HREF="../../../../org/jfree/data/general/AbstractDataset.html#notifyListeners(org.jfree.data.general.DatasetChangeEvent)">notifyListeners</A>, <A HREF="../../../../org/jfree/data/general/AbstractDataset.html#removeChangeListener(org.jfree.data.general.DatasetChangeListener)">removeChangeListener</A>, <A HREF="../../../../org/jfree/data/general/AbstractDataset.html#setGroup(org.jfree.data.general.DatasetGroup)">setGroup</A>, <A HREF="../../../../org/jfree/data/general/AbstractDataset.html#validateObject()">validateObject</A></CODE></TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE>equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD></TR></TABLE>&nbsp;<P><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TH></TR></TABLE><A NAME="JDBCXYDataset(java.lang.String, java.lang.String, java.lang.String, java.lang.String)"><!-- --></A><H3>JDBCXYDataset</H3><PRE>public <A HREF="../../../../src-html/org/jfree/data/jdbc/JDBCXYDataset.html#line.142"><B>JDBCXYDataset</B></A>(java.lang.String&nbsp;url,                     java.lang.String&nbsp;driverName,                     java.lang.String&nbsp;user,                     java.lang.String&nbsp;password)              throws java.sql.SQLException,                     java.lang.ClassNotFoundException</PRE><DL><DD>Creates a new dataset (initially empty) and establishes a new database  connection.<P><DL><DT><B>Parameters:</B><DD><CODE>url</CODE> - URL of the database connection.<DD><CODE>driverName</CODE> - the database driver class name.<DD><CODE>user</CODE> - the database user.<DD><CODE>password</CODE> - the database user's password.<DT><B>Throws:</B><DD><CODE>java.lang.ClassNotFoundException</CODE> - if the driver cannot be found.<DD><CODE>java.sql.SQLException</CODE> - if there is a problem connecting to the database.</DL></DL><HR><A NAME="JDBCXYDataset(java.sql.Connection)"><!-- --></A><H3>JDBCXYDataset</H3><PRE>public <A HREF="../../../../src-html/org/jfree/data/jdbc/JDBCXYDataset.html#line.161"><B>JDBCXYDataset</B></A>(java.sql.Connection&nbsp;con)              throws java.sql.SQLException</PRE><DL><DD>Creates a new dataset (initially empty) using the specified database  connection.<P><DL><DT><B>Parameters:</B><DD><CODE>con</CODE> - the database connection.<DT><B>Throws:</B><DD><CODE>java.sql.SQLException</CODE> - if there is a problem connecting to the database.</DL></DL><HR><A NAME="JDBCXYDataset(java.sql.Connection, java.lang.String)"><!-- --></A><H3>JDBCXYDataset</H3><PRE>public <A HREF="../../../../src-html/org/jfree/data/jdbc/JDBCXYDataset.html#line.175"><B>JDBCXYDataset</B></A>(java.sql.Connection&nbsp;con,                     java.lang.String&nbsp;query)              throws java.sql.SQLException</PRE><DL><DD>Creates a new dataset using the specified database connection, and  populates it using data obtained with the supplied query.<P><DL><DT><B>Parameters:</B><DD><CODE>con</CODE> - the connection.<DD><CODE>query</CODE> - the SQL query.<DT><B>Throws:</B><DD><CODE>java.sql.SQLException</CODE> - if there is a problem executing the query.</DL></DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Method Detail</B></FONT></TH></TR></TABLE><A NAME="isTimeSeries()"><!-- --></A><H3>isTimeSeries</H3><PRE>public boolean <A HREF="../../../../src-html/org/jfree/data/jdbc/JDBCXYDataset.html#line.186"><B>isTimeSeries</B></A>()</PRE><DL><DD>Returns <code>true</code> if the dataset represents time series data,  and <code>false</code> otherwise.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>A boolean.</DL></DD></DL><HR><A NAME="setTimeSeries(boolean)"><!-- --></A><H3>setTimeSeries</H3><PRE>public void <A HREF="../../../../src-html/org/jfree/data/jdbc/JDBCXYDataset.html#line.196"><B>setTimeSeries</B></A>(boolean&nbsp;timeSeries)</PRE><DL><DD>Sets a flag that indicates whether or not the data represents a time  series.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>timeSeries</CODE> - the new value of the flag.</DL></DD></DL><HR><A NAME="executeQuery(java.lang.String)"><!-- --></A><H3>executeQuery</H3><PRE>public void <A HREF="../../../../src-html/org/jfree/data/jdbc/JDBCXYDataset.html#line.212"><B>executeQuery</B></A>(java.lang.String&nbsp;query)                  throws java.sql.SQLException</PRE><DL><DD>ExecuteQuery will attempt execute the query passed to it against the existing database connection.  If no connection exists then no action is taken. The results from the query are extracted and cached locally, thus applying an upper limit on how many rows can be retrieved successfully.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>query</CODE> - the query to be executed.<DT><B>Throws:</B><DD><CODE>java.sql.SQLException</CODE> - if there is a problem executing the query.</DL></DD></DL><HR><A NAME="executeQuery(java.sql.Connection, java.lang.String)"><!-- --></A><H3>executeQuery</H3><PRE>public void <A HREF="../../../../src-html/org/jfree/data/jdbc/JDBCXYDataset.html#line.229"><B>executeQuery</B></A>(java.sql.Connection&nbsp;con,                         java.lang.String&nbsp;query)                  throws java.sql.SQLException</PRE><DL><DD>ExecuteQuery will attempt execute the query passed to it against the provided database connection.  If connection is null then no action is  taken. The results from the query are extracted and cached locally, thus applying an upper limit on how many rows can be retrieved successfully.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>query</CODE> - the query to be executed.<DD><CODE>con</CODE> - the connection the query is to be executed against.<DT><B>Throws:</B><DD><CODE>java.sql.SQLException</CODE> - if there is a problem executing the query.</DL></DD></DL><HR><A NAME="getX(int, int)"><!-- --></A><H3>getX</H3><PRE>public java.lang.Number <A HREF="../../../../src-html/org/jfree/data/jdbc/JDBCXYDataset.html#line.432"><B>getX</B></A>(int&nbsp;seriesIndex,                             int&nbsp;itemIndex)</PRE><DL><DD>Returns the x-value for the specified series and item.  The implementation is responsible for ensuring that the x-values are presented in ascending order.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/jfree/data/xy/XYDataset.html#getX(int, int)">getX</A></CODE> in interface <CODE><A HREF="../../../../org/jfree/data/xy/XYDataset.html" title="interface in org.jfree.data.xy">XYDataset</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>seriesIndex</CODE> - the series (zero-based index).<DD><CODE>itemIndex</CODE> - the item (zero-based index).<DT><B>Returns:</B><DD>The x-value<DT><B>See Also:</B><DD><A HREF="../../../../org/jfree/data/xy/XYDataset.html" title="interface in org.jfree.data.xy"><CODE>XYDataset</CODE></A></DL></DD></DL><HR>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -