AbstractFeatureNotSupportedStatement.java 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. package org.es.jdbc.api;
  2. import java.sql.*;
  3. public abstract class AbstractFeatureNotSupportedStatement implements Statement {
  4. @Override
  5. public final int getFetchDirection() throws SQLException {
  6. throw new SQLFeatureNotSupportedException("getFetchDirection");
  7. }
  8. @Override
  9. public final void setFetchDirection(final int direction) throws SQLException {
  10. throw new SQLFeatureNotSupportedException("setFetchDirection");
  11. }
  12. @Override
  13. public final void addBatch(final String sql) throws SQLException {
  14. throw new SQLFeatureNotSupportedException("addBatch sql");
  15. }
  16. @Override
  17. public void clearBatch() throws SQLException {
  18. throw new SQLFeatureNotSupportedException("clearBatch");
  19. }
  20. @Override
  21. public int[] executeBatch() throws SQLException {
  22. throw new SQLFeatureNotSupportedException("executeBatch");
  23. }
  24. @Override
  25. public final void closeOnCompletion() throws SQLException {
  26. throw new SQLFeatureNotSupportedException("closeOnCompletion");
  27. }
  28. @Override
  29. public final boolean isCloseOnCompletion() throws SQLException {
  30. throw new SQLFeatureNotSupportedException("isCloseOnCompletion");
  31. }
  32. @Override
  33. public final int executeUpdate(String sql) throws SQLException {
  34. throw new SQLFeatureNotSupportedException("executeUpdate");
  35. }
  36. @Override
  37. public void setCursorName(String name) throws SQLException {
  38. throw new SQLFeatureNotSupportedException("setCursorName");
  39. }
  40. @Override
  41. public int getUpdateCount() throws SQLException {
  42. throw new SQLFeatureNotSupportedException("getUpdateCount");
  43. }
  44. @Override
  45. public boolean getMoreResults() throws SQLException {
  46. throw new SQLFeatureNotSupportedException("getMoreResults");
  47. }
  48. @Override
  49. public ResultSet getGeneratedKeys() throws SQLException {
  50. throw new SQLFeatureNotSupportedException("getGeneratedKeys");
  51. }
  52. @Override
  53. public int executeUpdate(String sql, int autoGeneratedKeys) throws SQLException {
  54. throw new SQLFeatureNotSupportedException("executeUpdate");
  55. }
  56. @Override
  57. public int executeUpdate(String sql, int[] columnIndexes) throws SQLException {
  58. throw new SQLFeatureNotSupportedException("executeUpdate");
  59. }
  60. @Override
  61. public int executeUpdate(String sql, String[] columnNames) throws SQLException {
  62. throw new SQLFeatureNotSupportedException("executeUpdate");
  63. }
  64. @Override
  65. public boolean execute(String sql, int autoGeneratedKeys) throws SQLException {
  66. throw new SQLFeatureNotSupportedException("execute");
  67. }
  68. @Override
  69. public boolean execute(String sql, int[] columnIndexes) throws SQLException {
  70. throw new SQLFeatureNotSupportedException("execute");
  71. }
  72. @Override
  73. public boolean execute(String sql, String[] columnNames) throws SQLException {
  74. throw new SQLFeatureNotSupportedException("execute");
  75. }
  76. }