rowset.html

来自「jave白皮书 一本很好的介绍JAVA的书籍呦」· HTML 代码 · 共 1,667 行 · 第 1/5 页

HTML
1,667
字号
beforeFirst, cancelRowUpdates, clearWarnings, close, deleteRow, findColumn, first, getArray, getArray, getAsciiStream, getAsciiStream, getBigDecimal, getBigDecimal, getBigDecimal, getBigDecimal, getBinaryStream, getBinaryStream, getBlob, getBlob, getBoolean, getBoolean, getByte, getByte, getBytes, getBytes, getCharacterStream, getCharacterStream, getClob, getClob, getConcurrency, getCursorName, getDate, getDate, getDate, getDate, getDouble, getDouble, getFetchDirection, getFetchSize, getFloat, getFloat, getInt, getInt, getLong, getLong, getMetaData, getObject, getObject, getObject, getObject, getRef, getRef, getRow, getShort, getShort, getStatement, getString, getString, getTime, getTime, getTime, getTime, getTimestamp, getTimestamp, getTimestamp, getTimestamp, getType, getUnicodeStream, getUnicodeStream, getWarnings, insertRow, isAfterLast, isBeforeFirst, isFirst, isLast, last, moveToCurrentRow, moveToInsertRow, next, previous, refreshRow, relative, rowDeleted, rowInserted, rowUpdated, setFetchDirection, setFetchSize, updateAsciiStream, updateAsciiStream, updateBigDecimal, updateBigDecimal, updateBinaryStream, updateBinaryStream, updateBoolean, updateBoolean, updateByte, updateByte, updateBytes, updateBytes, updateCharacterStream, updateCharacterStream, updateDate, updateDate, updateDouble, updateDouble, updateFloat, updateFloat, updateInt, updateInt, updateLong, updateLong, updateNull, updateNull, updateObject, updateObject, updateObject, updateObject, updateRow, updateShort, updateShort, updateString, updateString, updateTime, updateTime, updateTimestamp, updateTimestamp, wasNull</CODE></TD></TR></TABLE>&nbsp;<P><!-- ============ FIELD DETAIL =========== --><!-- ========= CONSTRUCTOR DETAIL ======== --><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" ID="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Method Detail</B></FONT></TD></TR></TABLE><A NAME="getUrl()"><!-- --></A><H3>getUrl</H3><PRE>public java.lang.String <B>getUrl</B>()                        throws java.sql.SQLException</PRE><DL><DD>Get the url used to create a JDBC connection. The default value  is null.<DD><DL><DT><B>Returns:</B><DD>a string url<DT><B>Throws:</B><DD>java.sql.SQLException - if a database-access error occurs.</DL></DD></DL><HR><A NAME="setUrl(java.lang.String)"><!-- --></A><H3>setUrl</H3><PRE>public void <B>setUrl</B>(java.lang.String&nbsp;url)            throws java.sql.SQLException</PRE><DL><DD>Set the url used to create a connection. Setting this property is optional.  If a url is used, a JDBC driver that accepts the url must be loaded by the application before the rowset is used to connect to a database.  The rowset will use the url internally to create a database connection when reading or writing data.  Either a url or a data source name is used to create a connection, whichever was specified most recently.<DD><DL><DT><B>Parameters:</B><DD><CODE>url</CODE> - a string value, may be null<DT><B>Throws:</B><DD>java.sql.SQLException - if a database-access error occurs.</DL></DD></DL><HR><A NAME="getDataSourceName()"><!-- --></A><H3>getDataSourceName</H3><PRE>public java.lang.String <B>getDataSourceName</B>()</PRE><DL><DD>The JNDI name that identifies a JDBC data source.  Users should set either the url or data source name properties.  The most recent  property set is used to get a connection.<DD><DL><DT><B>Returns:</B><DD>a data source name<DT><B>Throws:</B><DD>java.sql.SQLException - if a database-access error occurs.</DL></DD></DL><HR><A NAME="setDataSourceName(java.lang.String)"><!-- --></A><H3>setDataSourceName</H3><PRE>public void <B>setDataSourceName</B>(java.lang.String&nbsp;name)                       throws java.sql.SQLException</PRE><DL><DD>Set the data source name.<DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - a data source name<DT><B>Throws:</B><DD>java.sql.SQLException - if a database-access error occurs.</DL></DD></DL><HR><A NAME="getUsername()"><!-- --></A><H3>getUsername</H3><PRE>public java.lang.String <B>getUsername</B>()</PRE><DL><DD>The username used to create a database connection.  The username property is set at runtime before calling execute().  It is  not usually part of the serialized state of a rowset object.<DD><DL><DT><B>Returns:</B><DD>a user name<DT><B>Throws:</B><DD>java.sql.SQLException - if a database-access error occurs.</DL></DD></DL><HR><A NAME="setUsername(java.lang.String)"><!-- --></A><H3>setUsername</H3><PRE>public void <B>setUsername</B>(java.lang.String&nbsp;name)                 throws java.sql.SQLException</PRE><DL><DD>Set the user name.<DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - a user name<DT><B>Throws:</B><DD>java.sql.SQLException - if a database-access error occurs.</DL></DD></DL><HR><A NAME="getPassword()"><!-- --></A><H3>getPassword</H3><PRE>public java.lang.String <B>getPassword</B>()</PRE><DL><DD>The password used to create a database connection.  The password property is set at runtime before calling execute().  It is  not usually part of the serialized state of a rowset object.<DD><DL><DT><B>Returns:</B><DD>a password<DT><B>Throws:</B><DD>java.sql.SQLException - if a database-access error occurs.</DL></DD></DL><HR><A NAME="setPassword(java.lang.String)"><!-- --></A><H3>setPassword</H3><PRE>public void <B>setPassword</B>(java.lang.String&nbsp;password)                 throws java.sql.SQLException</PRE><DL><DD>Set the password.<DD><DL><DT><B>Parameters:</B><DD><CODE>password</CODE> - the password string<DT><B>Throws:</B><DD>java.sql.SQLException - if a database-access error occurs.</DL></DD></DL><HR><A NAME="getTransactionIsolation()"><!-- --></A><H3>getTransactionIsolation</H3><PRE>public int <B>getTransactionIsolation</B>()</PRE><DL><DD>The transaction isolation property contains the JDBC transaction isolation level used.<DD><DL><DT><B>Returns:</B><DD>the transaction isolation level<DT><B>Throws:</B><DD>java.sql.SQLException - if a database-access error occurs.</DL></DD></DL><HR><A NAME="setTransactionIsolation(int)"><!-- --></A><H3>setTransactionIsolation</H3><PRE>public void <B>setTransactionIsolation</B>(int&nbsp;level)                             throws java.sql.SQLException</PRE><DL><DD>Set the transaction isolation.<DD><DL><DT><B>Parameters:</B><DD><CODE>level</CODE> - the transaction isolation level<DT><B>Throws:</B><DD>java.sql.SQLException - if a database-access error occurs.</DL></DD></DL><HR><A NAME="getTypeMap()"><!-- --></A><H3>getTypeMap</H3><PRE>public java.util.Map <B>getTypeMap</B>()                         throws java.sql.SQLException</PRE><DL><DD>Get the type-map object associated with this rowset. By default, the map returned is empty.<DD><DL><DT><B>Returns:</B><DD>a map object<DT><B>Throws:</B><DD>java.sql.SQLException - if a database-access error occurs.</DL></DD></DL><HR><A NAME="setTypeMap(java.util.Map)"><!-- --></A><H3>setTypeMap</H3><PRE>public void <B>setTypeMap</B>(java.util.Map&nbsp;map)                throws java.sql.SQLException</PRE><DL><DD>Install a type-map object as the default type-map for this rowset.<DD><DL><DT><B>Parameters:</B><DD><CODE>map</CODE> - a map object<DT><B>Throws:</B><DD>java.sql.SQLException - if a database-access error occurs.</DL></DD></DL><HR><A NAME="getCommand()"><!-- --></A><H3>getCommand</H3><PRE>public java.lang.String <B>getCommand</B>()</PRE><DL><DD>Get the rowset's command property. The command property contains a command string that can be executed to fill the rowset with data.  The default value is null.<DD><DL><DT><B>Returns:</B><DD>the command string, may be null<DT><B>Throws:</B><DD>java.sql.SQLException - if a database-access error occurs.</DL></DD></DL><HR><A NAME="setCommand(java.lang.String)"><!-- --></A><H3>setCommand</H3><PRE>public void <B>setCommand</B>(java.lang.String&nbsp;cmd)                throws java.sql.SQLException</PRE><DL><DD>Set the rowset's command property. This property is optional.  The command property may not be needed when a rowset is produced by a data source that doesn't support commands, such as a spreadsheet.<DD><DL><DT><B>Parameters:</B><DD><CODE>cmd</CODE> - a command string, may be null<DT><B>Throws:</B><DD>java.sql.SQLException - if a database-access error occurs.</DL></DD></DL><HR>

⌨️ 快捷键说明

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