📄 sqloutput.html
字号:
<HR><A NAME="writeDate(java.sql.Date)"><!-- --></A><H3>writeDate</H3><PRE>public void <B>writeDate</B>(<A HREF="../../java/sql/Date.html">Date</A> x) throws <A HREF="../../java/sql/SQLException.html">SQLException</A></PRE><DL><DD>Writes the next attribute to the stream as a java.sql.Date object. Writes the next attribute to the stream as a <code>java.sql.Date</code> object in the Java programming language.<DD><DL><DT><B>Parameters:</B><DD><CODE>x</CODE> - the value to pass to the database<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="writeTime(java.sql.Time)"><!-- --></A><H3>writeTime</H3><PRE>public void <B>writeTime</B>(<A HREF="../../java/sql/Time.html">Time</A> x) throws <A HREF="../../java/sql/SQLException.html">SQLException</A></PRE><DL><DD>Writes the next attribute to the stream as a java.sql.Time object. Writes the next attribute to the stream as a <code>java.sql.Date</code> object in the Java programming language.<DD><DL><DT><B>Parameters:</B><DD><CODE>x</CODE> - the value to pass to the database<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="writeTimestamp(java.sql.Timestamp)"><!-- --></A><H3>writeTimestamp</H3><PRE>public void <B>writeTimestamp</B>(<A HREF="../../java/sql/Timestamp.html">Timestamp</A> x) throws <A HREF="../../java/sql/SQLException.html">SQLException</A></PRE><DL><DD>Writes the next attribute to the stream as a java.sql.Timestamp object. Writes the next attribute to the stream as a <code>java.sql.Date</code> object in the Java programming language.<DD><DL><DT><B>Parameters:</B><DD><CODE>x</CODE> - the value to pass to the database<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="writeCharacterStream(java.io.Reader)"><!-- --></A><H3>writeCharacterStream</H3><PRE>public void <B>writeCharacterStream</B>(<A HREF="../../java/io/Reader.html">Reader</A> x) throws <A HREF="../../java/sql/SQLException.html">SQLException</A></PRE><DL><DD>Writes the next attribute to the stream as a stream of Unicode characters.<DD><DL><DT><B>Parameters:</B><DD><CODE>x</CODE> - the value to pass to the database<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="writeAsciiStream(java.io.InputStream)"><!-- --></A><H3>writeAsciiStream</H3><PRE>public void <B>writeAsciiStream</B>(<A HREF="../../java/io/InputStream.html">InputStream</A> x) throws <A HREF="../../java/sql/SQLException.html">SQLException</A></PRE><DL><DD>Writes the next attribute to the stream as a stream of ASCII characters.<DD><DL><DT><B>Parameters:</B><DD><CODE>x</CODE> - the value to pass to the database<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="writeBinaryStream(java.io.InputStream)"><!-- --></A><H3>writeBinaryStream</H3><PRE>public void <B>writeBinaryStream</B>(<A HREF="../../java/io/InputStream.html">InputStream</A> x) throws <A HREF="../../java/sql/SQLException.html">SQLException</A></PRE><DL><DD>Writes the next attribute to the stream as a stream of uninterpreted bytes.<DD><DL><DT><B>Parameters:</B><DD><CODE>x</CODE> - the value to pass to the database<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="writeObject(java.sql.SQLData)"><!-- --></A><H3>writeObject</H3><PRE>public void <B>writeObject</B>(<A HREF="../../java/sql/SQLData.html">SQLData</A> x) throws <A HREF="../../java/sql/SQLException.html">SQLException</A></PRE><DL><DD>Writes to the stream the data contained in the given <code>SQLData</code> object. When the <code>SQLData</code> object is <code>null</code>, this method writes an SQL <code>NULL</code> to the stream. Otherwise, it calls the <code>SQLData.writeSQL</code> method of the given object, which writes the object's attributes to the stream. The implementation of the method <code>SQLData.writeSQ</code> calls the appropriate <code>SQLOutput.writeXXX</code> method(s) for writing each of the object's attributes in order. The attributes must be read from an <code>SQLInput</code> input stream and written to an <code>SQLOutput</code> output stream in the same order in which they were listed in the SQL definition of the user-defined type.<DD><DL><DT><B>Parameters:</B><DD><CODE>x</CODE> - the object representing data of an SQL structured or distinct type<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="writeRef(java.sql.Ref)"><!-- --></A><H3>writeRef</H3><PRE>public void <B>writeRef</B>(<A HREF="../../java/sql/Ref.html">Ref</A> x) throws <A HREF="../../java/sql/SQLException.html">SQLException</A></PRE><DL><DD>Writes an SQL <code>REF</code> value to the stream.<DD><DL><DT><B>Parameters:</B><DD><CODE>x</CODE> - a <code>Ref</code> object representing data of an SQL <code>REF</code> value<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="writeBlob(java.sql.Blob)"><!-- --></A><H3>writeBlob</H3><PRE>public void <B>writeBlob</B>(<A HREF="../../java/sql/Blob.html">Blob</A> x) throws <A HREF="../../java/sql/SQLException.html">SQLException</A></PRE><DL><DD>Writes an SQL <code>BLOB</code> value to the stream.<DD><DL><DT><B>Parameters:</B><DD><CODE>x</CODE> - a <code>Blob</code> object representing data of an SQL <code>BLOB</code> value<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="writeClob(java.sql.Clob)"><!-- --></A><H3>writeClob</H3><PRE>public void <B>writeClob</B>(<A HREF="../../java/sql/Clob.html">Clob</A> x) throws <A HREF="../../java/sql/SQLException.html">SQLException</A></PRE><DL><DD>Writes an SQL <code>CLOB</code> value to the stream.<DD><DL><DT><B>Parameters:</B><DD><CODE>x</CODE> - a <code>Clob</code> object representing data of an SQL <code>CLOB</code> value<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="writeStruct(java.sql.Struct)"><!-- --></A><H3>writeStruct</H3><PRE>public void <B>writeStruct</B>(<A HREF="../../java/sql/Struct.html">Struct</A> x) throws <A HREF="../../java/sql/SQLException.html">SQLException</A></PRE><DL><DD>Writes an SQL structured type value to the stream.<DD><DL><DT><B>Parameters:</B><DD><CODE>x</CODE> - a <code>Struct</code> object representing data of an SQL structured type<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="writeArray(java.sql.Array)"><!-- --></A><H3>writeArray</H3><PRE>public void <B>writeArray</B>(<A HREF="../../java/sql/Array.html">Array</A> x) throws <A HREF="../../java/sql/SQLException.html">SQLException</A></PRE><DL><DD>Writes an SQL <code>ARRAY</code> value to the stream.<DD><DL><DT><B>Parameters:</B><DD><CODE>x</CODE> - an <code>Array</code> object representing data of an SQL <code>ARRAY</code> type<DT><B>Throws:</B><DD><CODE><A HREF="../../java/sql/SQLException.html">SQLException</A></CODE> - if a database access error occurs</DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ========== START OF NAVBAR ========== --><A NAME="navbar_bottom"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3"> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/SQLOutput.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM><b>Java<sup><font size=-2>TM</font></sup> 2 Platform<br>Std. Ed. v1.3</b></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../java/sql/SQLInput.html"><B>PREV CLASS</B></A> <A HREF="../../java/sql/Statement.html"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../index.html" TARGET="_top"><B>FRAMES</B></A> <A HREF="SQLOutput.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: INNER | FIELD | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: FIELD | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><!-- =========== END OF NAVBAR =========== --><HR><font size="-1"><a href="http://java.sun.com/cgi-bin/bugreport.cgi">Submit a bug or feature</a><br>For further API reference and developer documentation, see <a href="http://java.sun.com/products/jdk/1.3/devdocs-vs-specs.html">Java 2 SDK SE Developer Documentation</a>. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples. <p>Java, Java 2D, and JDBC are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.<br>Copyright 1993-2000 Sun Microsystems, Inc. 901 San Antonio Road<br>Palo Alto, California, 94303, U.S.A. All Rights Reserved.</font></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -