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

📄 rowset.html

📁 jave白皮书 一本很好的介绍JAVA的书籍呦
💻 HTML
📖 第 1 页 / 共 5 页
字号:
<A NAME="isReadOnly()"><!-- --></A><H3>isReadOnly</H3><PRE>public boolean <B>isReadOnly</B>()</PRE><DL><DD>A rowset may be read-only.  Attempts to update a read-only rowset will result in an SQLException being thrown.  Rowsets are updateable, by default, if updates are possible.<DD><DL><DT><B>Returns:</B><DD>true if updatable, false otherwise<DT><B>Throws:</B><DD>java.sql.SQLException - if a database-access error occurs.</DL></DD></DL><HR><A NAME="setReadOnly(boolean)"><!-- --></A><H3>setReadOnly</H3><PRE>public void <B>setReadOnly</B>(boolean&nbsp;value)                 throws java.sql.SQLException</PRE><DL><DD>Set the read-onlyness of the rowset<DD><DL><DT><B>Parameters:</B><DD><CODE>value</CODE> - true if read-only, false otherwise<DT><B>Throws:</B><DD>java.sql.SQLException - if a database-access error occurs.</DL></DD></DL><HR><A NAME="getMaxFieldSize()"><!-- --></A><H3>getMaxFieldSize</H3><PRE>public int <B>getMaxFieldSize</B>()                    throws java.sql.SQLException</PRE><DL><DD>The maxFieldSize limit (in bytes) is the maximum amount of data returned for any column value; it only applies to BINARY, VARBINARY, LONGVARBINARY, CHAR, VARCHAR, and LONGVARCHAR columns.  If the limit is exceeded, the excess data is silently discarded.<DD><DL><DT><B>Returns:</B><DD>the current max column size limit; zero means unlimited<DT><B>Throws:</B><DD>java.sql.SQLException - if a database-access error occurs.</DL></DD></DL><HR><A NAME="setMaxFieldSize(int)"><!-- --></A><H3>setMaxFieldSize</H3><PRE>public void <B>setMaxFieldSize</B>(int&nbsp;max)                     throws java.sql.SQLException</PRE><DL><DD>The maxFieldSize limit (in bytes) is set to limit the size of data that can be returned for any column value; it only applies to BINARY, VARBINARY, LONGVARBINARY, CHAR, VARCHAR, and LONGVARCHAR fields.  If the limit is exceeded, the excess data is silently discarded. For maximum portability use values greater than 256.<DD><DL><DT><B>Parameters:</B><DD><CODE>max</CODE> - the new max column size limit; zero means unlimited<DT><B>Throws:</B><DD>java.sql.SQLException - if a database-access error occurs.</DL></DD></DL><HR><A NAME="getMaxRows()"><!-- --></A><H3>getMaxRows</H3><PRE>public int <B>getMaxRows</B>()               throws java.sql.SQLException</PRE><DL><DD>The maxRows limit is the maximum number of rows that a RowSet can contain.  If the limit is exceeded, the excess rows are silently dropped.<DD><DL><DT><B>Returns:</B><DD>the current max row limit; zero means unlimited<DT><B>Throws:</B><DD>java.sql.SQLException - if a database-access error occurs.</DL></DD></DL><HR><A NAME="setMaxRows(int)"><!-- --></A><H3>setMaxRows</H3><PRE>public void <B>setMaxRows</B>(int&nbsp;max)                throws java.sql.SQLException</PRE><DL><DD>The maxRows limit is set to limit the number of rows that any RowSet can contain.  If the limit is exceeded, the excess rows are silently dropped.<DD><DL><DT><B>Parameters:</B><DD><CODE>max</CODE> - the new max rows limit; zero means unlimited<DT><B>Throws:</B><DD>java.sql.SQLException - if a database-access error occurs.</DL></DD></DL><HR><A NAME="getEscapeProcessing()"><!-- --></A><H3>getEscapeProcessing</H3><PRE>public boolean <B>getEscapeProcessing</B>()                            throws java.sql.SQLException</PRE><DL><DD>If escape scanning is on (the default), the driver will do escape substitution before sending the SQL to the database.<DD><DL><DT><B>Returns:</B><DD>true if enabled; false if disabled<DT><B>Throws:</B><DD>java.sql.SQLException - if a database-access error occurs.</DL></DD></DL><HR><A NAME="setEscapeProcessing(boolean)"><!-- --></A><H3>setEscapeProcessing</H3><PRE>public void <B>setEscapeProcessing</B>(boolean&nbsp;enable)                         throws java.sql.SQLException</PRE><DL><DD>If escape scanning is on (the default), the driver will do escape substitution before sending the SQL to the database.<DD><DL><DT><B>Parameters:</B><DD><CODE>enable</CODE> - true to enable; false to disable<DT><B>Throws:</B><DD>java.sql.SQLException - if a database-access error occurs.</DL></DD></DL><HR><A NAME="getQueryTimeout()"><!-- --></A><H3>getQueryTimeout</H3><PRE>public int <B>getQueryTimeout</B>()                    throws java.sql.SQLException</PRE><DL><DD>The queryTimeout limit is the number of seconds the driver will wait for a Statement to execute. If the limit is exceeded, a SQLException is thrown.<DD><DL><DT><B>Returns:</B><DD>the current query timeout limit in seconds; zero means  unlimited<DT><B>Throws:</B><DD>java.sql.SQLException - if a database-access error occurs.</DL></DD></DL><HR><A NAME="setQueryTimeout(int)"><!-- --></A><H3>setQueryTimeout</H3><PRE>public void <B>setQueryTimeout</B>(int&nbsp;seconds)                     throws java.sql.SQLException</PRE><DL><DD>The queryTimeout limit is the number of seconds the driver will wait for a Statement to execute. If the limit is exceeded, a SQLException is thrown.<DD><DL><DT><B>Parameters:</B><DD><CODE>seconds</CODE> - the new query timeout limit in seconds; zero means  unlimited<DT><B>Throws:</B><DD>java.sql.SQLException - if a database-access error occurs.</DL></DD></DL><HR><A NAME="setType(int)"><!-- --></A><H3>setType</H3><PRE>public void <B>setType</B>(int&nbsp;type)             throws java.sql.SQLException</PRE><DL><DD>Set the rowset type.<DD><DL><DT><B>Parameters:</B><DD><CODE>type</CODE> - a value from ResultSet.TYPE_XXX<DT><B>Throws:</B><DD>java.sql.SQLException - if a database-access error occurs.</DL></DD></DL><HR><A NAME="setConcurrency(int)"><!-- --></A><H3>setConcurrency</H3><PRE>public void <B>setConcurrency</B>(int&nbsp;concurrency)                    throws java.sql.SQLException</PRE><DL><DD>Set the rowset concurrency.<DD><DL><DT><B>Parameters:</B><DD><CODE>concurrency</CODE> - a value from ResultSet.CONCUR_XXX<DT><B>Throws:</B><DD>java.sql.SQLException - if a database-access error occurs.</DL></DD></DL><HR><A NAME="setNull(int, int)"><!-- --></A><H3>setNull</H3><PRE>public void <B>setNull</B>(int&nbsp;parameterIndex,                    int&nbsp;sqlType)             throws java.sql.SQLException</PRE><DL><DD>Set a parameter to SQL NULL. <P><B>Note:</B> You must specify the parameter's SQL type.<DD><DL><DT><B>Parameters:</B><DD><CODE>parameterIndex</CODE> - the first parameter is 1, the second is 2, ...<DD><CODE>sqlType</CODE> - SQL type code defined by java.sql.Types<DT><B>Throws:</B><DD>java.sql.SQLException - if a database-access error occurs.</DL></DD></DL><HR><A NAME="setNull(int, int, java.lang.String)"><!-- --></A><H3>setNull</H3><PRE>public void <B>setNull</B>(int&nbsp;paramIndex,                    int&nbsp;sqlType,                    java.lang.String&nbsp;typeName)             throws java.sql.SQLException</PRE><DL><DD>JDBC 2.0 Set a parameter to SQL NULL.  This version of setNull should be used for user-named types and REF type parameters.  Examples of user-named types include: STRUCT, DISTINCT, JAVA_OBJECT, and  named array types. <P><B>Note:</B> To be portable, applications must give the SQL type code and the fully qualified SQL type name when specifying a NULL user-named or REF parameter.  In the case of a user-named type  the name is the type name of the parameter itself.  For a REF  parameter the name is the type name of the referenced type.  If  a JDBC driver does not need the type code or type name information,  it may ignore it.      Although it is intended for user-named and Ref parameters, this method may be used to set a null parameter of any JDBC type. If the parameter does not have a user-named or REF type then the typeName is ignored.<DD><DL><DT><B>Parameters:</B><DD><CODE>parameterIndex</CODE> - the first parameter is 1, the second is 2, ...<DD><CODE>sqlType</CODE> - a value from java.sql.Types<DD><CODE>typeName</CODE> - the fully qualified name of a SQL user-named type,  ignored if the parameter is not a user-named type or REF<DT><B>Throws:</B><DD>java.sql.SQLException - if a database-access error occurs.</DL></DD></DL><HR><A NAME="setBoolean(int, boolean)"><!-- --></A><H3>setBoolean</H3><PRE>public void <B>setBoolean</B>(int&nbsp;parameterIndex,                       boolean&nbsp;x)                throws java.sql.SQLException</PRE><DL><DD>Set a parameter to a Java boolean value.<DD><DL><DT><B>Parameters:</B><DD><CODE>parameterIndex</CODE> - the first parameter is 1, the second is 2, ...<DD><CODE>x</CODE> - the parameter value<DT><B>Throws:</B><DD>java.sql.SQLException - if a database-access error occurs.</DL></DD></DL><HR><A NAME="setByte(int, byte)"><!-- --></A><H3>setByte</H3><PRE>public void <B>setByte</B>(int&nbsp;parameterIndex,                    byte&nbsp;x)             throws java.sql.SQLException</PRE><DL><DD>Set a parameter to a Java byte value.<DD><DL><DT><B>Parameters:</B><DD><CODE>parameterIndex</CODE> - the first parameter is 1, the second is 2, ...<DD><CODE>x</CODE> - the parameter value<DT><B>Throws:</B><DD>java.sql.SQLException - if a database-access error occurs.</DL></DD></DL><HR><A NAME="setShort(int, short)"><!-- --></A><H3>setShort</H3><PRE>public void <B>setShort</B>(int&nbsp;parameterIndex,                     short&nbsp;x)              throws java.sql.SQLException</PRE><DL><DD>Set a parameter to a Java short value.<DD><DL><DT><B>Parameters:</B><DD><CODE>parameterIndex</CODE> - the first parameter is 1, the second is 2, ...<DD><CODE>x</CODE> - the parameter value<DT><B>Throws:</B><DD>java.sql.SQLException - if a database-access error occurs.</DL></DD></DL><HR><A NAME="setInt(int, int)"><!-- --></A><H3>setInt</H3><PRE>public void <B>setInt</B>(int&nbsp;parameterIndex,                   int&nbsp;x)            throws java.sql.SQLException</PRE><DL><DD>Set a parameter to a Java int value.<DD><DL><DT><B>Parameters:</B><DD><CODE>parameterIndex</CODE> - the first parameter is 1, the second is 2, ...<DD><CODE>x</CODE> - the parameter value<DT><B>Throws:</B><DD>java.sql.SQLException - if a database-access error occurs.</DL></DD></DL><HR><A NAME="setLong(int, long)"><!-- --></A><H3>setLong</H3><PRE>public void <B>setLong</B>(int&nbsp;parameterIndex,                    long&nbsp;x)             throws java.sql.SQLException</PRE><DL><DD>Set a parameter to a Java long value.<DD><DL><DT><B>Parameters:</B><DD><CODE>parameterIndex</CODE> - the first parameter is 1, the second is 2, ...<DD><CODE>x</CODE> - the parameter value<DT><B>Throws:</B><DD>java.sql.SQLException - if a database-access error occurs.</DL></DD></DL><HR><A NAME="setFloat(int, float)"><!-- --></A><H3>setFloat</H3><PRE>public void <B>setFloat</B>(int&nbsp;parameterIndex,                     float&nbsp;x)              throws java.sql.SQLException</PRE><DL><DD>Set a parameter to a Java float value.  The driver converts this to a SQL FLOAT value when it sends it to the database.<DD><DL><DT><B>Parameters:</B><DD><CODE>parameterIndex</CODE> - the first parameter is 1, the second is 2, ...<DD><CODE>x</CODE> - the parameter value<DT><B>Throws:</B><DD>java.sql.SQLException - if a database-access error occurs.</DL></DD></DL><HR><A NAME="setDouble(int, double)"><!-- --></A><H3>setDouble</H3><PRE>public void <B>setDouble</B>(int&nbsp;parameterIndex,                      double&nbsp;x)               throws java.sql.SQLException</PRE><DL><DD>Set a parameter to a Java double value.<DD><DL><DT><B>Parameters:</B><DD><CODE>parameterIndex</CODE> - the first parameter is 1, the second is 2, ...<DD><CODE>x</CODE> - the parameter value<DT><B>Throws:</B><DD>java.sql.SQLException - if a database-access error occurs.</DL></DD></DL><HR><A NAME="setBigDecimal(int, java.math.BigDecimal)"><!-- --></A><H3>setBigDecimal</H3><PRE>public void <B>setBigDecimal</B>(int&nbsp;parameterIndex,                          java.math.BigDecimal&nbsp;x)                   throws java.sql.SQLException</PRE><DL><DD>Set a parameter to a java.lang.BigDecimal value.<DD><DL><DT><B>Parameters:</B><DD><CODE>parameterIndex</CODE> - the first parameter is 1, the second is 2, ...<DD><CODE>x</CODE> - the parameter value<DT><B>Throws:</B><DD>java.sql.SQLException - if a database-access error occurs.</DL></DD></DL><HR><A NAME="setString(int, java.lang.String)"><!-- --></A><H3>setString</H3><PRE>public void <B>setString</B>(int&nbsp;parameterIndex,                      java.lang.String&nbsp;x)               throws java.sql.SQLException</PRE><DL><DD>Set a parameter to a Java String value.<DD><DL><DT><B>Parameters:</B><DD><CODE>parameterIndex</CODE> - the first parameter is 1, the second is 2, ...<DD><CODE>x</CODE> - the parameter value<DT><B>Throws:</B><DD>java.sql.SQLException - if a database-access error occurs.</DL></DD></DL><HR><A NAME="setBytes(int, byte[])"><!-- --></A><H3>

⌨️ 快捷键说明

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