📄 sqlinput.html
字号:
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../java/sql/SQLInput.html#readInt()">readInt</A></B>()</CODE><BR> Reads the next attribute in the stream as an <code>int</code> in the Java programming language.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> long</CODE></FONT></TD><TD><CODE><B><A HREF="../../java/sql/SQLInput.html#readLong()">readLong</A></B>()</CODE><BR> Reads the next attribute in the stream as a <code>long</code> in the Java programming language.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../java/lang/Object.html">Object</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../java/sql/SQLInput.html#readObject()">readObject</A></B>()</CODE><BR> Returns the datum at the head of the stream as an <code>Object</code> in the Java programming language.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../java/sql/Ref.html">Ref</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../java/sql/SQLInput.html#readRef()">readRef</A></B>()</CODE><BR> Reads an SQL <code>REF</code> value from the stream and returns it as a <code>Ref</code> object in the Java programming language.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> short</CODE></FONT></TD><TD><CODE><B><A HREF="../../java/sql/SQLInput.html#readShort()">readShort</A></B>()</CODE><BR> Reads the next attribute in the stream as a <code>short</code> in the Java programming language.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../java/lang/String.html">String</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../java/sql/SQLInput.html#readString()">readString</A></B>()</CODE><BR> Reads the next attribute in the stream as a <code>String</code> in the Java programming language.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../java/sql/Time.html">Time</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../java/sql/SQLInput.html#readTime()">readTime</A></B>()</CODE><BR> Reads the next attribute in the stream as a <code>java.sql.Time</code> object.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../java/sql/Timestamp.html">Timestamp</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../java/sql/SQLInput.html#readTimestamp()">readTimestamp</A></B>()</CODE><BR> Reads the next attribute in the stream as a <code>java.sql.Timestamp</code> object.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../java/sql/SQLInput.html#wasNull()">wasNull</A></B>()</CODE><BR> Determines whether the last value read was SQL <code>NULL</code>.</TD></TR></TABLE> <P><!-- ============ FIELD DETAIL =========== --><!-- ========= CONSTRUCTOR DETAIL ======== --><!-- ============ 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="readString()"><!-- --></A><H3>readString</H3><PRE>public <A HREF="../../java/lang/String.html">String</A> <B>readString</B>() throws <A HREF="../../java/sql/SQLException.html">SQLException</A></PRE><DL><DD>Reads the next attribute in the stream as a <code>String</code> in the Java programming language.<DD><DL><DT><B>Returns:</B><DD>the attribute; if the value is SQL <code>NULL</code>, returns <code>null</code><DT><B>Throws:</B><DD><CODE><A HREF="../../java/sql/SQLException.html">SQLException</A></CODE> - if a database access error occurs</DL></DD></DL><HR><A NAME="readBoolean()"><!-- --></A><H3>readBoolean</H3><PRE>public boolean <B>readBoolean</B>() throws <A HREF="../../java/sql/SQLException.html">SQLException</A></PRE><DL><DD>Reads the next attribute in the stream as a <code>boolean</code> in the Java programming language.<DD><DL><DT><B>Returns:</B><DD>the attribute; if the value is SQL <code>NULL</code>, returns <code>false</code><DT><B>Throws:</B><DD><CODE><A HREF="../../java/sql/SQLException.html">SQLException</A></CODE> - if a database access error occurs</DL></DD></DL><HR><A NAME="readByte()"><!-- --></A><H3>readByte</H3><PRE>public byte <B>readByte</B>() throws <A HREF="../../java/sql/SQLException.html">SQLException</A></PRE><DL><DD>Reads the next attribute in the stream as a <code>byte</code> in the Java programming language.<DD><DL><DT><B>Returns:</B><DD>the attribute; if the value is SQL <code>NULL</code>, returns <code>0</code><DT><B>Throws:</B><DD><CODE><A HREF="../../java/sql/SQLException.html">SQLException</A></CODE> - if a database access error occurs</DL></DD></DL><HR><A NAME="readShort()"><!-- --></A><H3>readShort</H3><PRE>public short <B>readShort</B>() throws <A HREF="../../java/sql/SQLException.html">SQLException</A></PRE><DL><DD>Reads the next attribute in the stream as a <code>short</code> in the Java programming language.<DD><DL><DT><B>Returns:</B><DD>the attribute; if the value is SQL <code>NULL</code>, returns <code>0</code><DT><B>Throws:</B><DD><CODE><A HREF="../../java/sql/SQLException.html">SQLException</A></CODE> - if a database access error occurs</DL></DD></DL><HR><A NAME="readInt()"><!-- --></A><H3>readInt</H3><PRE>public int <B>readInt</B>() throws <A HREF="../../java/sql/SQLException.html">SQLException</A></PRE><DL><DD>Reads the next attribute in the stream as an <code>int</code> in the Java programming language.<DD><DL><DT><B>Returns:</B><DD>the attribute; if the value is SQL <code>NULL</code>, returns <code>0</code><DT><B>Throws:</B><DD><CODE><A HREF="../../java/sql/SQLException.html">SQLException</A></CODE> - if a database access error occurs</DL></DD></DL><HR><A NAME="readLong()"><!-- --></A><H3>readLong</H3><PRE>public long <B>readLong</B>() throws <A HREF="../../java/sql/SQLException.html">SQLException</A></PRE><DL><DD>Reads the next attribute in the stream as a <code>long</code> in the Java programming language.<DD><DL><DT><B>Returns:</B><DD>the attribute; if the value is SQL <code>NULL</code>, returns <code>0</code><DT><B>Throws:</B><DD><CODE><A HREF="../../java/sql/SQLException.html">SQLException</A></CODE> - if a database access error occurs</DL></DD></DL><HR><A NAME="readFloat()"><!-- --></A><H3>readFloat</H3><PRE>public float <B>readFloat</B>() throws <A HREF="../../java/sql/SQLException.html">SQLException</A></PRE><DL><DD>Reads the next attribute in the stream as a <code>float</code> in the Java programming language.<DD><DL><DT><B>Returns:</B><DD>the attribute; if the value is SQL <code>NULL</code>, returns <code>0</code><DT><B>Throws:</B><DD><CODE><A HREF="../../java/sql/SQLException.html">SQLException</A></CODE> - if a database access error occurs</DL></DD></DL><HR><A NAME="readDouble()"><!-- --></A><H3>readDouble</H3><PRE>public double <B>readDouble</B>() throws <A HREF="../../java/sql/SQLException.html">SQLException</A></PRE><DL><DD>Reads the next attribute in the stream as a <code>double</code> in the Java programming language.<DD><DL><DT><B>Returns:</B><DD>the attribute; if the value is SQL <code>NULL</code>, returns <code>0</code><DT><B>Throws:</B><DD><CODE><A HREF="../../java/sql/SQLException.html">SQLException</A></CODE> - if a database access error occurs</DL></DD></DL><HR><A NAME="readBigDecimal()"><!-- --></A><H3>readBigDecimal</H3><PRE>public <A HREF="../../java/math/BigDecimal.html">BigDecimal</A> <B>readBigDecimal</B>() throws <A HREF="../../java/sql/SQLException.html">SQLException</A></PRE><DL><DD>Reads the next attribute in the stream as a <code>java.math.BigDecimal</code> object in the Java programming language.<DD><DL><DT><B>Returns:</B><DD>the attribute; if the value is SQL <code>NULL</code>, returns <code>null</code><DT><B>Throws:</B><DD><CODE><A HREF="../../java/sql/SQLException.html">SQLException</A></CODE> - if a database access error occurs</DL></DD></DL><HR><A NAME="readBytes()"><!-- --></A><H3>readBytes</H3><PRE>public byte[] <B>readBytes</B>() throws <A HREF="../../java/sql/SQLException.html">SQLException</A></PRE><DL><DD>Reads the next attribute in the stream as an array of bytes in the Java programming language.<DD><DL><DT><B>Returns:</B><DD>the attribute; if the value is SQL <code>NULL</code>, returns <code>null</code><DT><B>Throws:</B><DD><CODE><A HREF="../../java/sql/SQLException.html">SQLException</A></CODE> - if a database access error occurs</DL></DD>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -