Java Doc for SQLOutput.java in  » Apache-Harmony-Java-SE » java-package » java » sql » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Apache Harmony Java SE » java package » java.sql 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.sql.SQLOutput

SQLOutput
public interface SQLOutput (Code)
The interface for an output stream used to write attributes of an SQL User Defined Type to the database. This interface is used for custom mapping of types and is called by the JDBC driver. It is not expected that this interface is used by applications.

When an object which implements the SQLData interface is used as an argument to an SQL statement, the JDBC driver calls the method SQLData.getSQLType to establish the type of the SQL UDT that is being passed. The driver then creates an SQLOutput stream and passes it to the SQLData.writeSQL method, which in turn uses the appropriate SQLOutput writer methods to write the data from the SQLData object into the stream according to the defined mapping.





Method Summary
public  voidwriteArray(Array theArray)
     Write an SQL Array value into the output stream.
public  voidwriteAsciiStream(InputStream theStream)
     Write a stream of ASCII characters into the output stream.
public  voidwriteBigDecimal(BigDecimal theBigDecimal)
     Write a java.math.BigDecimal value into the output stream.
public  voidwriteBinaryStream(InputStream theStream)
     Write a stream of uninterpreted bytes into the output stream.
public  voidwriteBlob(Blob theBlob)
     Write an SQL Blob value into the output stream.
public  voidwriteBoolean(boolean theFlag)
     Write a boolean value into the output stream.
public  voidwriteByte(byte theByte)
     Write a byte value into the output stream.
public  voidwriteBytes(byte[] theBytes)
     Write an array of bytes into the output stream.
public  voidwriteCharacterStream(Reader theStream)
     Write a stream of Unicode characters into the output stream.
public  voidwriteClob(Clob theClob)
     Write an SQL Clob value into the output stream.
public  voidwriteDate(Date theDate)
     Write a java.sql.Date value into the output stream.
public  voidwriteDouble(double theDouble)
     Write a double value into the output stream.
public  voidwriteFloat(float theFloat)
     Write a float value into the output stream.
public  voidwriteInt(int theInt)
     Write an int value into the output stream.
public  voidwriteLong(long theLong)
     Write a long value into the output stream.
public  voidwriteObject(SQLData theObject)
     Write an SQLData object into the output stream.

If the SQLData object is null, writes SQL NULL to the stream.

Otherwise, calls the SQLData.writeSQL method of the object, which writes the object's attributes to the stream by calling the appropriate SQLOutput writer methods for each attribute, in order.

public  voidwriteRef(Ref theRef)
     Write an SQL Ref value into the output stream.
public  voidwriteShort(short theShort)
     Write a short value into the output stream.
public  voidwriteString(String theString)
     Write a String value into the output stream.
public  voidwriteStruct(Struct theStruct)
     Write an SQL Struct value into the output stream.
public  voidwriteTime(Time theTime)
     Write a java.sql.Time value into the output stream.
public  voidwriteTimestamp(Timestamp theTimestamp)
     Write a java.sql.Timestamp value into the output stream.
public  voidwriteURL(URL theURL)
     Write an SQL DATALINK value into the output stream.



Method Detail
writeArray
public void writeArray(Array theArray) throws SQLException(Code)
Write an SQL Array value into the output stream.
Parameters:
  theArray - the java.sql.Array object to write
throws:
  SQLException - if a database error occurs



writeAsciiStream
public void writeAsciiStream(InputStream theStream) throws SQLException(Code)
Write a stream of ASCII characters into the output stream.
Parameters:
  theStream - the stream of ASCII characters to write, as ajava.io.InputStream object
throws:
  SQLException - if a database error occurs



writeBigDecimal
public void writeBigDecimal(BigDecimal theBigDecimal) throws SQLException(Code)
Write a java.math.BigDecimal value into the output stream.
Parameters:
  theBigDecimal - the BigDecimal value to write
throws:
  SQLException - if a database error occurs



writeBinaryStream
public void writeBinaryStream(InputStream theStream) throws SQLException(Code)
Write a stream of uninterpreted bytes into the output stream.
Parameters:
  theStream - the stream of bytes to write, as a java.io.InputStream object
throws:
  SQLException - if a database error occurs



writeBlob
public void writeBlob(Blob theBlob) throws SQLException(Code)
Write an SQL Blob value into the output stream.
Parameters:
  theBlob - the java.sql.Blob object to write
throws:
  SQLException - if a database error occurs



writeBoolean
public void writeBoolean(boolean theFlag) throws SQLException(Code)
Write a boolean value into the output stream.
Parameters:
  theFlag - the boolean value to write
throws:
  SQLException - if a database error occurs



writeByte
public void writeByte(byte theByte) throws SQLException(Code)
Write a byte value into the output stream.
Parameters:
  theByte - the byte value to write
throws:
  SQLException - if a database error occurs



writeBytes
public void writeBytes(byte[] theBytes) throws SQLException(Code)
Write an array of bytes into the output stream.
Parameters:
  theBytes - the array of bytes to write
throws:
  SQLException - if a database error occurs



writeCharacterStream
public void writeCharacterStream(Reader theStream) throws SQLException(Code)
Write a stream of Unicode characters into the output stream.
Parameters:
  theStream - the stream of Unicode characters to write, as a java.io.Readerobject
throws:
  SQLException - if a database error occurs



writeClob
public void writeClob(Clob theClob) throws SQLException(Code)
Write an SQL Clob value into the output stream.
Parameters:
  theClob - the java.sql.Clob object to write
throws:
  SQLException - if a database error occurs



writeDate
public void writeDate(Date theDate) throws SQLException(Code)
Write a java.sql.Date value into the output stream.
Parameters:
  theDate - the Date value to write
throws:
  SQLException - if a database error occurs



writeDouble
public void writeDouble(double theDouble) throws SQLException(Code)
Write a double value into the output stream.
Parameters:
  theDouble - the double value to write
throws:
  SQLException - if a database error occurs



writeFloat
public void writeFloat(float theFloat) throws SQLException(Code)
Write a float value into the output stream.
Parameters:
  theFloat - the float value to write
throws:
  SQLException - if a database error occurs



writeInt
public void writeInt(int theInt) throws SQLException(Code)
Write an int value into the output stream.
Parameters:
  theInt - the int value to write
throws:
  SQLException - if a database error occurs



writeLong
public void writeLong(long theLong) throws SQLException(Code)
Write a long value into the output stream.
Parameters:
  theLong - the long value to write
throws:
  SQLException - if a database error occurs



writeObject
public void writeObject(SQLData theObject) throws SQLException(Code)
Write an SQLData object into the output stream.

If the SQLData object is null, writes SQL NULL to the stream.

Otherwise, calls the SQLData.writeSQL method of the object, which writes the object's attributes to the stream by calling the appropriate SQLOutput writer methods for each attribute, in order. The order of the attributes is the order they are listed in the SQL definition of the User Defined Type.
Parameters:
  theObject - the SQLData object to write
throws:
  SQLException - if a database error occurs




writeRef
public void writeRef(Ref theRef) throws SQLException(Code)
Write an SQL Ref value into the output stream.
Parameters:
  theRef - the java.sql.Ref object to write
throws:
  SQLException - if a database error occurs



writeShort
public void writeShort(short theShort) throws SQLException(Code)
Write a short value into the output stream.
Parameters:
  theShort - the short value to write
throws:
  SQLException - if a database error occurs



writeString
public void writeString(String theString) throws SQLException(Code)
Write a String value into the output stream.
Parameters:
  theString - the String to write
throws:
  SQLException - if a database error occurs



writeStruct
public void writeStruct(Struct theStruct) throws SQLException(Code)
Write an SQL Struct value into the output stream.
Parameters:
  theStruct - the java.sql.Struct object to write
throws:
  SQLException - if a database error occurs



writeTime
public void writeTime(Time theTime) throws SQLException(Code)
Write a java.sql.Time value into the output stream.
Parameters:
  theTime - the Time value to write
throws:
  SQLException - if a database error occurs



writeTimestamp
public void writeTimestamp(Timestamp theTimestamp) throws SQLException(Code)
Write a java.sql.Timestamp value into the output stream.
Parameters:
  theTimestamp - the Timestamp value to write
throws:
  SQLException - if a database error occurs



writeURL
public void writeURL(URL theURL) throws SQLException(Code)
Write an SQL DATALINK value into the output stream.
Parameters:
  theURL - the Datalink value as a java.net.URL to write
throws:
  SQLException - if a database error occurs



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.