KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > in > co > daffodil > db > jdbc > DaffodilDBSQLOutput


1 package in.co.daffodil.db.jdbc;
2
3 import java.sql.*;
4 import com.daffodilwoods.database.resource.*;
5
6 public class DaffodilDBSQLOutput implements SQLOutput
7 {
8
9    public DaffodilDBSQLOutput()
10    {
11    }
12
13
14   /**
15    * Writes the next attribute to the stream as a <code>String</code>
16    * in the Java programming language.
17    *
18    * @param x the value to pass to the database
19    * @exception SQLException if a database access error occurs
20    */

21   public void writeString(String JavaDoc x) throws SQLException{
22
23   }
24
25   /**
26    * Writes the next attribute to the stream as a Java boolean.
27    * Writes the next attribute to the stream as a <code>String</code>
28    * in the Java programming language.
29    *
30    * @param x the value to pass to the database
31    * @exception SQLException if a database access error occurs
32    */

33   public void writeBoolean(boolean x) throws SQLException{
34
35   }
36
37   /**
38    * Writes the next attribute to the stream as a Java byte.
39    * Writes the next attribute to the stream as a <code>String</code>
40    * in the Java programming language.
41    *
42    * @param x the value to pass to the database
43    * @exception SQLException if a database access error occurs
44    */

45   public void writeByte(byte x) throws SQLException{
46
47   }
48
49   /**
50    * Writes the next attribute to the stream as a Java short.
51    * Writes the next attribute to the stream as a <code>String</code>
52    * in the Java programming language.
53    *
54    * @param x the value to pass to the database
55    * @exception SQLException if a database access error occurs
56    */

57   public void writeShort(short x) throws SQLException{
58
59   }
60
61   /**
62    * Writes the next attribute to the stream as a Java int.
63    * Writes the next attribute to the stream as a <code>String</code>
64    * in the Java programming language.
65    *
66    * @param x the value to pass to the database
67    * @exception SQLException if a database access error occurs
68    */

69   public void writeInt(int x) throws SQLException{
70
71   }
72
73   /**
74    * Writes the next attribute to the stream as a Java long.
75    * Writes the next attribute to the stream as a <code>String</code>
76    * in the Java programming language.
77    *
78    * @param x the value to pass to the database
79    * @exception SQLException if a database access error occurs
80    */

81   public void writeLong(long x) throws SQLException{
82
83   }
84
85   /**
86    * Writes the next attribute to the stream as a Java float.
87    * Writes the next attribute to the stream as a <code>String</code>
88    * in the Java programming language.
89    *
90    * @param x the value to pass to the database
91    * @exception SQLException if a database access error occurs
92    */

93   public void writeFloat(float x) throws SQLException{
94
95   }
96
97   /**
98    * Writes the next attribute to the stream as a Java double.
99    * Writes the next attribute to the stream as a <code>String</code>
100    * in the Java programming language.
101    *
102    * @param x the value to pass to the database
103    * @exception SQLException if a database access error occurs
104    */

105   public void writeDouble(double x) throws SQLException{
106
107   }
108
109   /**
110    * Writes the next attribute to the stream as a java.math.BigDecimal object.
111    * Writes the next attribute to the stream as a <code>String</code>
112    * in the Java programming language.
113    *
114    * @param x the value to pass to the database
115    * @exception SQLException if a database access error occurs
116    */

117   public void writeBigDecimal(java.math.BigDecimal JavaDoc x) throws SQLException{
118
119   }
120
121   /**
122    * Writes the next attribute to the stream as an array of bytes.
123    * Writes the next attribute to the stream as a <code>String</code>
124    * in the Java programming language.
125    *
126    * @param x the value to pass to the database
127    * @exception SQLException if a database access error occurs
128    */

129   public void writeBytes(byte[] x) throws SQLException{
130
131   }
132
133   /**
134    * Writes the next attribute to the stream as a java.sql.Date object.
135    * Writes the next attribute to the stream as a <code>java.sql.Date</code> object
136    * in the Java programming language.
137    *
138    * @param x the value to pass to the database
139    * @exception SQLException if a database access error occurs
140    */

141   public void writeDate(java.sql.Date JavaDoc x) throws SQLException{
142
143   }
144
145   /**
146    * Writes the next attribute to the stream as a java.sql.Time object.
147    * Writes the next attribute to the stream as a <code>java.sql.Date</code> object
148    * in the Java programming language.
149    *
150    * @param x the value to pass to the database
151    * @exception SQLException if a database access error occurs
152    */

153   public void writeTime(java.sql.Time JavaDoc x) throws SQLException{
154
155   }
156
157   /**
158    * Writes the next attribute to the stream as a java.sql.Timestamp object.
159    * Writes the next attribute to the stream as a <code>java.sql.Date</code> object
160    * in the Java programming language.
161    *
162    * @param x the value to pass to the database
163    * @exception SQLException if a database access error occurs
164    */

165   public void writeTimestamp(java.sql.Timestamp JavaDoc x) throws SQLException{
166
167   }
168
169   /**
170    * Writes the next attribute to the stream as a stream of Unicode characters.
171    *
172    * @param x the value to pass to the database
173    * @exception SQLException if a database access error occurs
174    */

175   public void writeCharacterStream(java.io.Reader JavaDoc x) throws SQLException{
176
177   }
178
179   /**
180    * Writes the next attribute to the stream as a stream of ASCII characters.
181    *
182    * @param x the value to pass to the database
183    * @exception SQLException if a database access error occurs
184    */

185   public void writeAsciiStream(java.io.InputStream JavaDoc x) throws SQLException{
186
187   }
188
189   /**
190    * Writes the next attribute to the stream as a stream of uninterpreted
191    * bytes.
192    *
193    * @param x the value to pass to the database
194    * @exception SQLException if a database access error occurs
195    */

196   public void writeBinaryStream(java.io.InputStream JavaDoc x) throws SQLException{
197
198   }
199
200
201   /**
202    * Writes to the stream the data contained in the given
203    * <code>SQLData</code> object.
204    * When the <code>SQLData</code> object is <code>null</code>, this
205    * method writes an SQL <code>NULL</code> to the stream.
206    * Otherwise, it calls the <code>SQLData.writeSQL</code>
207    * method of the given object, which
208    * writes the object's attributes to the stream.
209    * The implementation of the method <code>SQLData.writeSQ</code>
210    * calls the appropriate <code>SQLOutput</code> writer method(s)
211    * for writing each of the object's attributes in order.
212    * The attributes must be read from an <code>SQLInput</code>
213    * input stream and written to an <code>SQLOutput</code>
214    * output stream in the same order in which they were
215    * listed in the SQL definition of the user-defined type.
216    *
217    * @param x the object representing data of an SQL structured or
218    * distinct type
219    * @exception SQLException if a database access error occurs
220    */

221   public void writeObject(SQLData x) throws SQLException{
222
223   }
224
225   /**
226    * Writes an SQL <code>REF</code> value to the stream.
227    *
228    * @param x a <code>Ref</code> object representing data of an SQL
229    * <code>REF</code> value
230    * @exception SQLException if a database access error occurs
231    */

232   public void writeRef(Ref x) throws SQLException{
233
234   }
235
236   /**
237    * Writes an SQL <code>BLOB</code> value to the stream.
238    *
239    * @param x a <code>Blob</code> object representing data of an SQL
240    * <code>BLOB</code> value
241    *
242    * @exception SQLException if a database access error occurs
243    */

244   public void writeBlob(Blob x) throws SQLException{
245
246   }
247
248   /**
249    * Writes an SQL <code>CLOB</code> value to the stream.
250    *
251    * @param x a <code>Clob</code> object representing data of an SQL
252    * <code>CLOB</code> value
253    *
254    * @exception SQLException if a database access error occurs
255    */

256   public void writeClob(Clob x) throws SQLException{
257
258   }
259
260   /**
261    * Writes an SQL structured type value to the stream.
262    *
263    * @param x a <code>Struct</code> object representing data of an SQL
264    * structured type
265    *
266    * @exception SQLException if a database access error occurs
267    */

268   public void writeStruct(Struct x) throws SQLException{
269
270   }
271
272   /**
273    * Writes an SQL <code>ARRAY</code> value to the stream.
274    *
275    * @param x an <code>Array</code> object representing data of an SQL
276    * <code>ARRAY</code> type
277    *
278    * @exception SQLException if a database access error occurs
279    */

280   public void writeArray(Array x) throws SQLException{
281
282   }
283
284
285      /**
286       * Writes a SQL <code>DATALINK</code> value to the stream.
287       *
288       * @param x a <code>java.net.URL</code> object representing the data
289       * of SQL DATALINK type
290       *
291       * @exception SQLException if a database access error occurs
292       * @since 1.4
293       */

294      public void writeURL(java.net.URL JavaDoc x) throws SQLException{
295      }
296
297 }
298
Popular Tags