AbstractFeatureNotSupportedPreparedStatement.java 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202
  1. package org.elasticsearch.jdbc;
  2. import java.io.InputStream;
  3. import java.io.Reader;
  4. import java.net.URL;
  5. import java.sql.*;
  6. import java.util.Calendar;
  7. public abstract class AbstractFeatureNotSupportedPreparedStatement extends ElasticStatement implements PreparedStatement {
  8. public AbstractFeatureNotSupportedPreparedStatement(ElasticConnection connection) {
  9. super(connection);
  10. }
  11. @Override
  12. public int executeUpdate() throws SQLException {
  13. throw new SQLFeatureNotSupportedException("executeUpdate");
  14. }
  15. @Override
  16. public void setNull(int parameterIndex, int sqlType) throws SQLException {
  17. throw new SQLFeatureNotSupportedException("setNull");
  18. }
  19. @Override
  20. public void setBytes(int parameterIndex, byte[] x) throws SQLException {
  21. throw new SQLFeatureNotSupportedException("setBytes");
  22. }
  23. @Override
  24. public void setAsciiStream(int parameterIndex, InputStream x, int length) throws SQLException {
  25. throw new SQLFeatureNotSupportedException("setAsciiStream");
  26. }
  27. @Override
  28. public void setUnicodeStream(int parameterIndex, InputStream x, int length) throws SQLException {
  29. throw new SQLFeatureNotSupportedException("setUnicodeStream");
  30. }
  31. @Override
  32. public void setBinaryStream(int parameterIndex, InputStream x, int length) throws SQLException {
  33. throw new SQLFeatureNotSupportedException("setBinaryStream");
  34. }
  35. @Override
  36. public void setObject(int parameterIndex, Object x, int targetSqlType) throws SQLException {
  37. throw new SQLFeatureNotSupportedException("setObject");
  38. }
  39. @Override
  40. public void addBatch() throws SQLException {
  41. throw new SQLFeatureNotSupportedException("addBatch");
  42. }
  43. @Override
  44. public void setCharacterStream(int parameterIndex, Reader reader, int length) throws SQLException {
  45. throw new SQLFeatureNotSupportedException("setCharacterStream");
  46. }
  47. @Override
  48. public void setRef(int parameterIndex, Ref x) throws SQLException {
  49. throw new SQLFeatureNotSupportedException("setRef");
  50. }
  51. @Override
  52. public void setBlob(int parameterIndex, Blob x) throws SQLException {
  53. throw new SQLFeatureNotSupportedException("setRef");
  54. }
  55. @Override
  56. public void setClob(int parameterIndex, Clob x) throws SQLException {
  57. throw new SQLFeatureNotSupportedException("setRef");
  58. }
  59. @Override
  60. public void setArray(int parameterIndex, Array x) throws SQLException {
  61. throw new SQLFeatureNotSupportedException("setArray");
  62. }
  63. @Override
  64. public void setURL(int parameterIndex, URL x) throws SQLException {
  65. throw new SQLFeatureNotSupportedException("setURL");
  66. }
  67. @Override
  68. public void setRowId(int parameterIndex, RowId x) throws SQLException {
  69. throw new SQLFeatureNotSupportedException("setRowId");
  70. }
  71. @Override
  72. public void setNString(int parameterIndex, String value) throws SQLException {
  73. throw new SQLFeatureNotSupportedException("setNString");
  74. }
  75. @Override
  76. public void setNCharacterStream(int parameterIndex, Reader value, long length) throws SQLException {
  77. throw new SQLFeatureNotSupportedException("setNCharacterStream");
  78. }
  79. @Override
  80. public void setNClob(int parameterIndex, NClob value) throws SQLException {
  81. throw new SQLFeatureNotSupportedException("setNClob");
  82. }
  83. @Override
  84. public void setClob(int parameterIndex, Reader reader, long length) throws SQLException {
  85. throw new SQLFeatureNotSupportedException("setClob");
  86. }
  87. @Override
  88. public void setBlob(int parameterIndex, InputStream inputStream, long length) throws SQLException {
  89. throw new SQLFeatureNotSupportedException("setBlob");
  90. }
  91. @Override
  92. public void setNClob(int parameterIndex, Reader reader, long length) throws SQLException {
  93. throw new SQLFeatureNotSupportedException("setNClob");
  94. }
  95. @Override
  96. public void setSQLXML(int parameterIndex, SQLXML xmlObject) throws SQLException {
  97. throw new SQLFeatureNotSupportedException("setSQLXML");
  98. }
  99. @Override
  100. public void setObject(int parameterIndex, Object x, int targetSqlType, int scaleOrLength) throws SQLException {
  101. throw new SQLFeatureNotSupportedException("setObject");
  102. }
  103. @Override
  104. public void setAsciiStream(int parameterIndex, InputStream x, long length) throws SQLException {
  105. throw new SQLFeatureNotSupportedException("setAsciiStream");
  106. }
  107. @Override
  108. public void setBinaryStream(int parameterIndex, InputStream x, long length) throws SQLException {
  109. throw new SQLFeatureNotSupportedException("setBinaryStream");
  110. }
  111. @Override
  112. public void setCharacterStream(int parameterIndex, Reader reader, long length) throws SQLException {
  113. throw new SQLFeatureNotSupportedException("setCharacterStream");
  114. }
  115. @Override
  116. public void setAsciiStream(int parameterIndex, InputStream x) throws SQLException {
  117. throw new SQLFeatureNotSupportedException("setAsciiStream");
  118. }
  119. @Override
  120. public void setBinaryStream(int parameterIndex, InputStream x) throws SQLException {
  121. throw new SQLFeatureNotSupportedException("setBinaryStream");
  122. }
  123. @Override
  124. public void setCharacterStream(int parameterIndex, Reader reader) throws SQLException {
  125. throw new SQLFeatureNotSupportedException("setCharacterStream");
  126. }
  127. @Override
  128. public void setNCharacterStream(int parameterIndex, Reader value) throws SQLException {
  129. throw new SQLFeatureNotSupportedException("setNCharacterStream");
  130. }
  131. @Override
  132. public void setClob(int parameterIndex, Reader reader) throws SQLException {
  133. throw new SQLFeatureNotSupportedException("setClob");
  134. }
  135. @Override
  136. public void setBlob(int parameterIndex, InputStream inputStream) throws SQLException {
  137. throw new SQLFeatureNotSupportedException("setBlob");
  138. }
  139. @Override
  140. public void setNClob(int parameterIndex, Reader reader) throws SQLException {
  141. throw new SQLFeatureNotSupportedException("setNClob");
  142. }
  143. @Override
  144. public void setNull(int parameterIndex, int sqlType, String typeName) throws SQLException {
  145. throw new SQLFeatureNotSupportedException("setNull");
  146. }
  147. @Override
  148. public void setDate(int parameterIndex, Date x, Calendar cal) throws SQLException {
  149. throw new SQLFeatureNotSupportedException("setDate");
  150. }
  151. @Override
  152. public void setTime(int parameterIndex, Time x, Calendar cal) throws SQLException {
  153. throw new SQLFeatureNotSupportedException("setTime");
  154. }
  155. @Override
  156. public void setTimestamp(int parameterIndex, Timestamp x, Calendar cal) throws SQLException {
  157. throw new SQLFeatureNotSupportedException("setTimestamp");
  158. }
  159. }