/projects/derby-10.9.1.0/db-derby-10.9.1.0-src/java/stubs/jdbc4/java/sql/Statement.java

https://gitlab.com/essere.lab.public/qualitas.class-corpus · Java · 70 lines · 51 code · 3 blank · 16 comment · 0 complexity · ca147517a1d5a9926015c4a0c394e303 MD5 · raw file

  1. /*
  2. * Licensed to the Apache Software Foundation (ASF) under one or more
  3. * contributor license agreements. See the NOTICE file distributed with
  4. * this work for additional information regarding copyright ownership.
  5. * The ASF licenses this file to You under the Apache License, Version 2.0
  6. * (the "License"); you may not use this file except in compliance with
  7. * the License. You may obtain a copy of the License at
  8. *
  9. * http://www.apache.org/licenses/LICENSE-2.0
  10. *
  11. * Unless required by applicable law or agreed to in writing, software
  12. * distributed under the License is distributed on an "AS IS" BASIS,
  13. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. * See the License for the specific language governing permissions and
  15. * limitations under the License.
  16. */
  17. package java.sql;
  18. public interface Statement extends Wrapper
  19. {
  20. int CLOSE_ALL_RESULTS = 3;
  21. int CLOSE_CURRENT_RESULT = 1;
  22. int EXECUTE_FAILED = -3;
  23. int KEEP_CURRENT_RESULT = 2;
  24. int NO_GENERATED_KEYS = 2;
  25. int RETURN_GENERATED_KEYS = 1;
  26. int SUCCESS_NO_INFO = -2;
  27. public void addBatch(String sql) throws SQLException;
  28. public void cancel() throws SQLException;
  29. public void clearBatch() throws SQLException;
  30. public void clearWarnings() throws SQLException;
  31. public void close() throws SQLException;
  32. public boolean execute(String sql) throws SQLException;
  33. public boolean execute(String sql, int autoGeneratedKeys) throws SQLException;
  34. public boolean execute(String sql, int[] columnIndexes) throws SQLException;
  35. public boolean execute(String sql, String[] columnNames) throws SQLException;
  36. public int[] executeBatch() throws SQLException;
  37. public ResultSet executeQuery(String sql) throws SQLException;
  38. public int executeUpdate(String sql) throws SQLException;
  39. public int executeUpdate(String sql, int autoGeneratedKeys) throws SQLException;
  40. public int executeUpdate(String sql, int[] columnIndexes) throws SQLException;
  41. public int executeUpdate(String sql, String[] columnNames) throws SQLException;
  42. public Connection getConnection() throws SQLException;
  43. public int getFetchDirection() throws SQLException;
  44. public int getFetchSize() throws SQLException;
  45. public ResultSet getGeneratedKeys() throws SQLException;
  46. public int getMaxFieldSize() throws SQLException;
  47. public int getMaxRows() throws SQLException;
  48. public boolean getMoreResults() throws SQLException;
  49. public boolean getMoreResults(int current) throws SQLException;
  50. public int getQueryTimeout() throws SQLException;
  51. public ResultSet getResultSet() throws SQLException;
  52. public int getResultSetConcurrency() throws SQLException;
  53. public int getResultSetHoldability() throws SQLException;
  54. public int getResultSetType() throws SQLException;
  55. public int getUpdateCount() throws SQLException;
  56. public SQLWarning getWarnings() throws SQLException;
  57. public boolean isClosed() throws SQLException;
  58. public boolean isPoolable() throws SQLException;
  59. public void setCursorName(String name) throws SQLException;
  60. public void setEscapeProcessing(boolean enable) throws SQLException;
  61. public void setFetchDirection(int direction) throws SQLException;
  62. public void setFetchSize(int rows) throws SQLException;
  63. public void setMaxFieldSize(int max) throws SQLException;
  64. public void setMaxRows(int max) throws SQLException;
  65. public void setPoolable(boolean poolable) throws SQLException;
  66. public void setQueryTimeout(int seconds) throws SQLException;
  67. }