19
19
* Parameters are refered to sequentially, by number. The first parameter
20
20
* is 1.
21
21
*
22
- * {?= call <procedure-name>[<arg1>,<arg2>, ...]}
23
- * {call <procedure-name>[<arg1>,<arg2>, ...]}
22
+ * {?= call <procedure-name>[<arg1>,<arg2>, ...]}
23
+ * {call <procedure-name>[<arg1>,<arg2>, ...]}
24
24
*
25
25
*
26
26
* <p>IN parameter values are set using the set methods inherited from
32
32
* Multiple ResultSets are handled using operations inherited from
33
33
* Statement.
34
34
*
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.
37
37
*
38
38
* @see Connection#prepareCall
39
39
* @see ResultSet
@@ -48,7 +48,7 @@ public CallableStatement(Connection c,String q) throws SQLException
48
48
{
49
49
super (c ,q );
50
50
}
51
-
51
+
52
52
/**
53
53
* Before executing a stored procedure call you must explicitly
54
54
* call registerOutParameter to register the java.sql.Type of each
@@ -66,7 +66,7 @@ public CallableStatement(Connection c,String q) throws SQLException
66
66
*/
67
67
public void registerOutParameter (int parameterIndex , int sqlType ) throws SQLException {
68
68
}
69
-
69
+
70
70
/**
71
71
* You must also specify the scale for numeric/decimal types:
72
72
*
@@ -84,12 +84,12 @@ public void registerOutParameter(int parameterIndex, int sqlType,
84
84
int scale ) throws SQLException
85
85
{
86
86
}
87
-
87
+
88
88
// Old api?
89
89
//public boolean isNull(int parameterIndex) throws SQLException {
90
90
//return true;
91
91
//}
92
-
92
+
93
93
/**
94
94
* An OUT parameter may have the value of SQL NULL; wasNull
95
95
* reports whether the last value read has this special value.
@@ -103,12 +103,12 @@ public boolean wasNull() throws SQLException {
103
103
// check to see if the last access threw an exception
104
104
return false ; // fake it for now
105
105
}
106
-
106
+
107
107
// Old api?
108
108
//public String getChar(int parameterIndex) throws SQLException {
109
109
//return null;
110
110
//}
111
-
111
+
112
112
/**
113
113
* Get the value of a CHAR, VARCHAR, or LONGVARCHAR parameter as a
114
114
* Java String.
@@ -123,11 +123,11 @@ public String getString(int parameterIndex) throws SQLException {
123
123
//public String getVarChar(int parameterIndex) throws SQLException {
124
124
// return null;
125
125
//}
126
-
126
+
127
127
//public String getLongVarChar(int parameterIndex) throws SQLException {
128
128
//return null;
129
129
//}
130
-
130
+
131
131
/**
132
132
* Get the value of a BIT parameter as a Java boolean.
133
133
*
@@ -138,7 +138,7 @@ public String getString(int parameterIndex) throws SQLException {
138
138
public boolean getBoolean (int parameterIndex ) throws SQLException {
139
139
return false ;
140
140
}
141
-
141
+
142
142
/**
143
143
* Get the value of a TINYINT parameter as a Java byte.
144
144
*
@@ -149,7 +149,7 @@ public boolean getBoolean(int parameterIndex) throws SQLException {
149
149
public byte getByte (int parameterIndex ) throws SQLException {
150
150
return 0 ;
151
151
}
152
-
152
+
153
153
/**
154
154
* Get the value of a SMALLINT parameter as a Java short.
155
155
*
@@ -160,7 +160,7 @@ public byte getByte(int parameterIndex) throws SQLException {
160
160
public short getShort (int parameterIndex ) throws SQLException {
161
161
return 0 ;
162
162
}
163
-
163
+
164
164
/**
165
165
* Get the value of an INTEGER parameter as a Java int.
166
166
*
@@ -171,7 +171,7 @@ public short getShort(int parameterIndex) throws SQLException {
171
171
public int getInt (int parameterIndex ) throws SQLException {
172
172
return 0 ;
173
173
}
174
-
174
+
175
175
/**
176
176
* Get the value of a BIGINT parameter as a Java long.
177
177
*
@@ -182,7 +182,7 @@ public int getInt(int parameterIndex) throws SQLException {
182
182
public long getLong (int parameterIndex ) throws SQLException {
183
183
return 0 ;
184
184
}
185
-
185
+
186
186
/**
187
187
* Get the value of a FLOAT parameter as a Java float.
188
188
*
@@ -193,7 +193,7 @@ public long getLong(int parameterIndex) throws SQLException {
193
193
public float getFloat (int parameterIndex ) throws SQLException {
194
194
return (float ) 0.0 ;
195
195
}
196
-
196
+
197
197
/**
198
198
* Get the value of a DOUBLE parameter as a Java double.
199
199
*
@@ -204,7 +204,7 @@ public float getFloat(int parameterIndex) throws SQLException {
204
204
public double getDouble (int parameterIndex ) throws SQLException {
205
205
return 0.0 ;
206
206
}
207
-
207
+
208
208
/**
209
209
* Get the value of a NUMERIC parameter as a java.math.BigDecimal
210
210
* object.
@@ -214,12 +214,13 @@ public double getDouble(int parameterIndex) throws SQLException {
214
214
* desired number of digits to the right of the decimal point
215
215
* @return the parameter value; if the value is SQL NULL, the result is null
216
216
* @exception SQLException if a database-access error occurs.
217
+ * @deprecated in Java2.0
217
218
*/
218
219
public BigDecimal getBigDecimal (int parameterIndex , int scale )
219
220
throws SQLException {
220
221
return null ;
221
222
}
222
-
223
+
223
224
/**
224
225
* Get the value of a SQL BINARY or VARBINARY parameter as a Java
225
226
* byte[]
@@ -231,12 +232,12 @@ public BigDecimal getBigDecimal(int parameterIndex, int scale)
231
232
public byte [] getBytes (int parameterIndex ) throws SQLException {
232
233
return null ;
233
234
}
234
-
235
+
235
236
// New API (JPM) (getLongVarBinary)
236
237
//public byte[] getBinaryStream(int parameterIndex) throws SQLException {
237
238
//return null;
238
239
//}
239
-
240
+
240
241
/**
241
242
* Get the value of a SQL DATE parameter as a java.sql.Date object
242
243
*
@@ -247,7 +248,7 @@ public byte[] getBytes(int parameterIndex) throws SQLException {
247
248
public java .sql .Date getDate (int parameterIndex ) throws SQLException {
248
249
return null ;
249
250
}
250
-
251
+
251
252
/**
252
253
* Get the value of a SQL TIME parameter as a java.sql.Time object.
253
254
*
@@ -258,7 +259,7 @@ public java.sql.Date getDate(int parameterIndex) throws SQLException {
258
259
public java .sql .Time getTime (int parameterIndex ) throws SQLException {
259
260
return null ;
260
261
}
261
-
262
+
262
263
/**
263
264
* Get the value of a SQL TIMESTAMP parameter as a java.sql.Timestamp object.
264
265
*
@@ -270,16 +271,16 @@ public java.sql.Timestamp getTimestamp(int parameterIndex)
270
271
throws SQLException {
271
272
return null ;
272
273
}
273
-
274
+
274
275
//----------------------------------------------------------------------
275
276
// Advanced features:
276
-
277
- // You can obtain a ParameterMetaData object to get information
277
+
278
+ // You can obtain a ParameterMetaData object to get information
278
279
// about the parameters to this CallableStatement.
279
280
//public DatabaseMetaData getMetaData() {
280
281
//return null;
281
282
//}
282
-
283
+
283
284
// getObject returns a Java object for the parameter.
284
285
// See the JDBC spec's "Dynamic Programming" chapter for details.
285
286
/**
@@ -304,58 +305,58 @@ public Object getObject(int parameterIndex)
304
305
throws SQLException {
305
306
return null ;
306
307
}
307
-
308
+
308
309
// ** JDBC 2 Extensions **
309
-
310
+
310
311
public Array getArray (int i ) throws SQLException
311
312
{
312
313
throw org .postgresql .Driver .notImplemented ();
313
314
}
314
-
315
+
315
316
public java .math .BigDecimal getBigDecimal (int i ) throws SQLException
316
317
{
317
318
throw org .postgresql .Driver .notImplemented ();
318
319
}
319
-
320
+
320
321
public Blob getBlob (int i ) throws SQLException
321
322
{
322
323
throw org .postgresql .Driver .notImplemented ();
323
324
}
324
-
325
+
325
326
public Clob getClob (int i ) throws SQLException
326
327
{
327
328
throw org .postgresql .Driver .notImplemented ();
328
329
}
329
-
330
+
330
331
public Object getObject (int i ,java .util .Map map ) throws SQLException
331
332
{
332
333
throw org .postgresql .Driver .notImplemented ();
333
334
}
334
-
335
+
335
336
public Ref getRef (int i ) throws SQLException
336
337
{
337
338
throw org .postgresql .Driver .notImplemented ();
338
339
}
339
-
340
+
340
341
public java .sql .Date getDate (int i ,java .util .Calendar cal ) throws SQLException
341
342
{
342
343
throw org .postgresql .Driver .notImplemented ();
343
344
}
344
-
345
+
345
346
public Time getTime (int i ,java .util .Calendar cal ) throws SQLException
346
347
{
347
348
throw org .postgresql .Driver .notImplemented ();
348
349
}
349
-
350
+
350
351
public Timestamp getTimestamp (int i ,java .util .Calendar cal ) throws SQLException
351
352
{
352
353
throw org .postgresql .Driver .notImplemented ();
353
354
}
354
-
355
+
355
356
public void registerOutParameter (int parameterIndex , int sqlType ,String typeName ) throws SQLException
356
357
{
357
358
throw org .postgresql .Driver .notImplemented ();
358
359
}
359
-
360
+
360
361
}
361
362
0 commit comments