1919 * Parameters are refered to sequentially, by number. The first parameter
2020 * is 1.
2121 *
22- * {?= call <procedure-name>[<arg1>,<arg2>, ...]}
23- * {call <procedure-name>[<arg1>,<arg2>, ...]}
22+ * {?= call <procedure-name>[<arg1>,<arg2>, ...]}
23+ * {call <procedure-name>[<arg1>,<arg2>, ...]}
2424 *
2525 *
2626 * <p>IN parameter values are set using the set methods inherited from
3232 * Multiple ResultSets are handled using operations inherited from
3333 * Statement.
3434 *
35- * <p>For maximum portability, a call's ResultSets and update counts should
36- * be processed prior to getting the values of output parameters.
35+ * <p>For maximum portability, a call's ResultSets and update counts should
36+ * be processed prior to getting the values of output parameters.
3737 *
3838 * @see Connection#prepareCall
3939 * @see ResultSet
@@ -48,7 +48,7 @@ public CallableStatement(Connection c,String q) throws SQLException
4848 {
4949 super (c ,q );
5050 }
51-
51+
5252 /**
5353 * Before executing a stored procedure call you must explicitly
5454 * call registerOutParameter to register the java.sql.Type of each
@@ -66,7 +66,7 @@ public CallableStatement(Connection c,String q) throws SQLException
6666 */
6767 public void registerOutParameter (int parameterIndex , int sqlType ) throws SQLException {
6868 }
69-
69+
7070 /**
7171 * You must also specify the scale for numeric/decimal types:
7272 *
@@ -84,12 +84,12 @@ public void registerOutParameter(int parameterIndex, int sqlType,
8484 int scale ) throws SQLException
8585 {
8686 }
87-
87+
8888 // Old api?
8989 //public boolean isNull(int parameterIndex) throws SQLException {
9090 //return true;
9191 //}
92-
92+
9393 /**
9494 * An OUT parameter may have the value of SQL NULL; wasNull
9595 * reports whether the last value read has this special value.
@@ -103,12 +103,12 @@ public boolean wasNull() throws SQLException {
103103 // check to see if the last access threw an exception
104104 return false ; // fake it for now
105105 }
106-
106+
107107 // Old api?
108108 //public String getChar(int parameterIndex) throws SQLException {
109109 //return null;
110110 //}
111-
111+
112112 /**
113113 * Get the value of a CHAR, VARCHAR, or LONGVARCHAR parameter as a
114114 * Java String.
@@ -123,11 +123,11 @@ public String getString(int parameterIndex) throws SQLException {
123123 //public String getVarChar(int parameterIndex) throws SQLException {
124124 // return null;
125125 //}
126-
126+
127127 //public String getLongVarChar(int parameterIndex) throws SQLException {
128128 //return null;
129129 //}
130-
130+
131131 /**
132132 * Get the value of a BIT parameter as a Java boolean.
133133 *
@@ -138,7 +138,7 @@ public String getString(int parameterIndex) throws SQLException {
138138 public boolean getBoolean (int parameterIndex ) throws SQLException {
139139 return false ;
140140 }
141-
141+
142142 /**
143143 * Get the value of a TINYINT parameter as a Java byte.
144144 *
@@ -149,7 +149,7 @@ public boolean getBoolean(int parameterIndex) throws SQLException {
149149 public byte getByte (int parameterIndex ) throws SQLException {
150150 return 0 ;
151151 }
152-
152+
153153 /**
154154 * Get the value of a SMALLINT parameter as a Java short.
155155 *
@@ -160,7 +160,7 @@ public byte getByte(int parameterIndex) throws SQLException {
160160 public short getShort (int parameterIndex ) throws SQLException {
161161 return 0 ;
162162 }
163-
163+
164164 /**
165165 * Get the value of an INTEGER parameter as a Java int.
166166 *
@@ -171,7 +171,7 @@ public short getShort(int parameterIndex) throws SQLException {
171171public int getInt (int parameterIndex ) throws SQLException {
172172 return 0 ;
173173 }
174-
174+
175175 /**
176176 * Get the value of a BIGINT parameter as a Java long.
177177 *
@@ -182,7 +182,7 @@ public int getInt(int parameterIndex) throws SQLException {
182182 public long getLong (int parameterIndex ) throws SQLException {
183183 return 0 ;
184184 }
185-
185+
186186 /**
187187 * Get the value of a FLOAT parameter as a Java float.
188188 *
@@ -193,7 +193,7 @@ public long getLong(int parameterIndex) throws SQLException {
193193 public float getFloat (int parameterIndex ) throws SQLException {
194194 return (float ) 0.0 ;
195195 }
196-
196+
197197 /**
198198 * Get the value of a DOUBLE parameter as a Java double.
199199 *
@@ -204,7 +204,7 @@ public float getFloat(int parameterIndex) throws SQLException {
204204 public double getDouble (int parameterIndex ) throws SQLException {
205205 return 0.0 ;
206206 }
207-
207+
208208 /**
209209 * Get the value of a NUMERIC parameter as a java.math.BigDecimal
210210 * object.
@@ -214,12 +214,13 @@ public double getDouble(int parameterIndex) throws SQLException {
214214 * desired number of digits to the right of the decimal point
215215 * @return the parameter value; if the value is SQL NULL, the result is null
216216 * @exception SQLException if a database-access error occurs.
217+ * @deprecated in Java2.0
217218 */
218219 public BigDecimal getBigDecimal (int parameterIndex , int scale )
219220 throws SQLException {
220221 return null ;
221222 }
222-
223+
223224 /**
224225 * Get the value of a SQL BINARY or VARBINARY parameter as a Java
225226 * byte[]
@@ -231,12 +232,12 @@ public BigDecimal getBigDecimal(int parameterIndex, int scale)
231232 public byte [] getBytes (int parameterIndex ) throws SQLException {
232233 return null ;
233234 }
234-
235+
235236 // New API (JPM) (getLongVarBinary)
236237 //public byte[] getBinaryStream(int parameterIndex) throws SQLException {
237238 //return null;
238239 //}
239-
240+
240241 /**
241242 * Get the value of a SQL DATE parameter as a java.sql.Date object
242243 *
@@ -247,7 +248,7 @@ public byte[] getBytes(int parameterIndex) throws SQLException {
247248 public java .sql .Date getDate (int parameterIndex ) throws SQLException {
248249 return null ;
249250 }
250-
251+
251252 /**
252253 * Get the value of a SQL TIME parameter as a java.sql.Time object.
253254 *
@@ -258,7 +259,7 @@ public java.sql.Date getDate(int parameterIndex) throws SQLException {
258259 public java .sql .Time getTime (int parameterIndex ) throws SQLException {
259260 return null ;
260261 }
261-
262+
262263 /**
263264 * Get the value of a SQL TIMESTAMP parameter as a java.sql.Timestamp object.
264265 *
@@ -270,16 +271,16 @@ public java.sql.Timestamp getTimestamp(int parameterIndex)
270271 throws SQLException {
271272 return null ;
272273 }
273-
274+
274275 //----------------------------------------------------------------------
275276 // Advanced features:
276-
277- // You can obtain a ParameterMetaData object to get information
277+
278+ // You can obtain a ParameterMetaData object to get information
278279 // about the parameters to this CallableStatement.
279280 //public DatabaseMetaData getMetaData() {
280281 //return null;
281282 //}
282-
283+
283284 // getObject returns a Java object for the parameter.
284285 // See the JDBC spec's "Dynamic Programming" chapter for details.
285286 /**
@@ -304,58 +305,58 @@ public Object getObject(int parameterIndex)
304305 throws SQLException {
305306 return null ;
306307 }
307-
308+
308309 // ** JDBC 2 Extensions **
309-
310+
310311 public Array getArray (int i ) throws SQLException
311312 {
312313 throw org .postgresql .Driver .notImplemented ();
313314 }
314-
315+
315316 public java .math .BigDecimal getBigDecimal (int i ) throws SQLException
316317 {
317318 throw org .postgresql .Driver .notImplemented ();
318319 }
319-
320+
320321 public Blob getBlob (int i ) throws SQLException
321322 {
322323 throw org .postgresql .Driver .notImplemented ();
323324 }
324-
325+
325326 public Clob getClob (int i ) throws SQLException
326327 {
327328 throw org .postgresql .Driver .notImplemented ();
328329 }
329-
330+
330331 public Object getObject (int i ,java .util .Map map ) throws SQLException
331332 {
332333 throw org .postgresql .Driver .notImplemented ();
333334 }
334-
335+
335336 public Ref getRef (int i ) throws SQLException
336337 {
337338 throw org .postgresql .Driver .notImplemented ();
338339 }
339-
340+
340341 public java .sql .Date getDate (int i ,java .util .Calendar cal ) throws SQLException
341342 {
342343 throw org .postgresql .Driver .notImplemented ();
343344 }
344-
345+
345346 public Time getTime (int i ,java .util .Calendar cal ) throws SQLException
346347 {
347348 throw org .postgresql .Driver .notImplemented ();
348349 }
349-
350+
350351 public Timestamp getTimestamp (int i ,java .util .Calendar cal ) throws SQLException
351352 {
352353 throw org .postgresql .Driver .notImplemented ();
353354 }
354-
355+
355356 public void registerOutParameter (int parameterIndex , int sqlType ,String typeName ) throws SQLException
356357 {
357358 throw org .postgresql .Driver .notImplemented ();
358359 }
359-
360+
360361}
361362
0 commit comments