1 7 8 package java.sql; 9 10 import java.math.BigDecimal ; 11 import java.util.Calendar ; 12 13 40 41 public interface PreparedStatement extends Statement { 42 43 52 ResultSet executeQuery() throws SQLException ; 53 54 66 int executeUpdate() throws SQLException ; 67 68 77 void setNull(int parameterIndex, int sqlType) throws SQLException ; 78 79 88 void setBoolean(int parameterIndex, boolean x) throws SQLException ; 89 90 99 void setByte(int parameterIndex, byte x) throws SQLException ; 100 101 110 void setShort(int parameterIndex, short x) throws SQLException ; 111 112 121 void setInt(int parameterIndex, int x) throws SQLException ; 122 123 132 void setLong(int parameterIndex, long x) throws SQLException ; 133 134 143 void setFloat(int parameterIndex, float x) throws SQLException ; 144 145 154 void setDouble(int parameterIndex, double x) throws SQLException ; 155 156 165 void setBigDecimal(int parameterIndex, BigDecimal x) throws SQLException ; 166 167 179 void setString(int parameterIndex, String x) throws SQLException ; 180 181 191 void setBytes(int parameterIndex, byte x[]) throws SQLException ; 192 193 202 void setDate(int parameterIndex, java.sql.Date x) 203 throws SQLException ; 204 205 214 void setTime(int parameterIndex, java.sql.Time x) 215 throws SQLException ; 216 217 227 void setTimestamp(int parameterIndex, java.sql.Timestamp x) 228 throws SQLException ; 229 230 248 void setAsciiStream(int parameterIndex, java.io.InputStream x, int length) 249 throws SQLException ; 250 251 274 @Deprecated 275 void setUnicodeStream(int parameterIndex, java.io.InputStream x, 276 int length) throws SQLException ; 277 278 295 void setBinaryStream(int parameterIndex, java.io.InputStream x, 296 int length) throws SQLException ; 297 298 308 void clearParameters() throws SQLException ; 309 310 313 343 void setObject(int parameterIndex, Object x, int targetSqlType, int scale) 344 throws SQLException ; 345 346 357 void setObject(int parameterIndex, Object x, int targetSqlType) 358 throws SQLException ; 359 360 390 void setObject(int parameterIndex, Object x) throws SQLException ; 391 392 417 boolean execute() throws SQLException ; 418 419 421 429 void addBatch() throws SQLException ; 430 431 451 void setCharacterStream(int parameterIndex, 452 java.io.Reader reader, 453 int length) throws SQLException ; 454 455 466 void setRef (int i, Ref x) throws SQLException ; 467 468 478 void setBlob (int i, Blob x) throws SQLException ; 479 480 490 void setClob (int i, Clob x) throws SQLException ; 491 492 502 void setArray (int i, Array x) throws SQLException ; 503 504 527 ResultSetMetaData getMetaData() throws SQLException ; 528 529 546 void setDate(int parameterIndex, java.sql.Date x, Calendar cal) 547 throws SQLException ; 548 549 566 void setTime(int parameterIndex, java.sql.Time x, Calendar cal) 567 throws SQLException ; 568 569 586 void setTimestamp(int parameterIndex, java.sql.Timestamp x, Calendar cal) 587 throws SQLException ; 588 589 617 void setNull (int paramIndex, int sqlType, String typeName) 618 throws SQLException ; 619 620 622 632 void setURL(int parameterIndex, java.net.URL x) throws SQLException ; 633 634 645 ParameterMetaData getParameterMetaData() throws SQLException ; 646 647 } 648 | Popular Tags |