1 7 8 package java.sql; 9 10 59 public interface Connection { 60 61 76 Statement createStatement() throws SQLException ; 77 78 107 PreparedStatement prepareStatement(String sql) 108 throws SQLException ; 109 110 137 CallableStatement prepareCall(String sql) throws SQLException ; 138 139 150 String nativeSQL(String sql) throws SQLException ; 151 152 180 void setAutoCommit(boolean autoCommit) throws SQLException ; 181 182 191 boolean getAutoCommit() throws SQLException ; 192 193 204 void commit() throws SQLException ; 205 206 216 void rollback() throws SQLException ; 217 218 231 void close() throws SQLException ; 232 233 250 boolean isClosed() throws SQLException ; 251 252 255 267 DatabaseMetaData getMetaData() throws SQLException ; 268 269 280 void setReadOnly(boolean readOnly) throws SQLException ; 281 282 290 boolean isReadOnly() throws SQLException ; 291 292 305 void setCatalog(String catalog) throws SQLException ; 306 307 314 String getCatalog() throws SQLException ; 315 316 319 int TRANSACTION_NONE = 0; 320 321 329 int TRANSACTION_READ_UNCOMMITTED = 1; 330 331 337 int TRANSACTION_READ_COMMITTED = 2; 338 339 349 int TRANSACTION_REPEATABLE_READ = 4; 350 351 362 int TRANSACTION_SERIALIZABLE = 8; 363 364 386 void setTransactionIsolation(int level) throws SQLException ; 387 388 402 int getTransactionIsolation() throws SQLException ; 403 404 425 SQLWarning getWarnings() throws SQLException ; 426 427 435 void clearWarnings() throws SQLException ; 436 437 438 440 462 Statement createStatement(int resultSetType, int resultSetConcurrency) 463 throws SQLException ; 464 465 491 PreparedStatement prepareStatement(String sql, int resultSetType, 492 int resultSetConcurrency) 493 throws SQLException ; 494 495 519 CallableStatement prepareCall(String sql, int resultSetType, 520 int resultSetConcurrency) throws SQLException ; 521 522 534 java.util.Map <String ,Class <?>> getTypeMap() throws SQLException ; 535 536 550 void setTypeMap(java.util.Map <String ,Class <?>> map) throws SQLException ; 551 552 554 555 570 void setHoldability(int holdability) throws SQLException ; 571 572 584 int getHoldability() throws SQLException ; 585 586 597 Savepoint setSavepoint() throws SQLException ; 598 599 611 Savepoint setSavepoint(String name) throws SQLException ; 612 613 628 void rollback(Savepoint savepoint) throws SQLException ; 629 630 641 void releaseSavepoint(Savepoint savepoint) throws SQLException ; 642 643 673 Statement createStatement(int resultSetType, int resultSetConcurrency, 674 int resultSetHoldability) throws SQLException ; 675 676 711 PreparedStatement prepareStatement(String sql, int resultSetType, 712 int resultSetConcurrency, int resultSetHoldability) 713 throws SQLException ; 714 715 747 CallableStatement prepareCall(String sql, int resultSetType, 748 int resultSetConcurrency, 749 int resultSetHoldability) throws SQLException ; 750 751 752 788 PreparedStatement prepareStatement(String sql, int autoGeneratedKeys) 789 throws SQLException ; 790 791 830 PreparedStatement prepareStatement(String sql, int columnIndexes[]) 831 throws SQLException ; 832 833 872 PreparedStatement prepareStatement(String sql, String columnNames[]) 873 throws SQLException ; 874 875 876 } 877 | Popular Tags |