|
|
@@ -0,0 +1,186 @@
|
|
|
+package org.elasticsearch.jdbc;
|
|
|
+
|
|
|
+
|
|
|
+import java.io.InputStream;
|
|
|
+import java.io.Reader;
|
|
|
+import java.net.URL;
|
|
|
+import java.sql.*;
|
|
|
+
|
|
|
+public abstract class AbstractFeatureNotSupportedPreparedStatement extends ElasticStatement implements PreparedStatement {
|
|
|
+
|
|
|
+ public AbstractFeatureNotSupportedPreparedStatement(ElasticConnection connection) {
|
|
|
+ super(connection);
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public ResultSet executeQuery() throws SQLException {
|
|
|
+ throw new SQLFeatureNotSupportedException("executeQuery");
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public int executeUpdate() throws SQLException {
|
|
|
+ throw new SQLFeatureNotSupportedException("executeQuery");
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public void setNull(int parameterIndex, int sqlType) throws SQLException {
|
|
|
+ throw new SQLFeatureNotSupportedException("setNull");
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public void setBytes(int parameterIndex, byte[] x) throws SQLException {
|
|
|
+ throw new SQLFeatureNotSupportedException("setBytes");
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public void setAsciiStream(int parameterIndex, InputStream x, int length) throws SQLException {
|
|
|
+ throw new SQLFeatureNotSupportedException("setAsciiStream");
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public void setUnicodeStream(int parameterIndex, InputStream x, int length) throws SQLException {
|
|
|
+ throw new SQLFeatureNotSupportedException("setUnicodeStream");
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public void setBinaryStream(int parameterIndex, InputStream x, int length) throws SQLException {
|
|
|
+ throw new SQLFeatureNotSupportedException("setBinaryStream");
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public void setObject(int parameterIndex, Object x, int targetSqlType) throws SQLException {
|
|
|
+ throw new SQLFeatureNotSupportedException("setObject");
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public void addBatch() throws SQLException {
|
|
|
+ throw new SQLFeatureNotSupportedException("addBatch");
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public void setCharacterStream(int parameterIndex, Reader reader, int length) throws SQLException {
|
|
|
+ throw new SQLFeatureNotSupportedException("setCharacterStream");
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public void setRef(int parameterIndex, Ref x) throws SQLException {
|
|
|
+ throw new SQLFeatureNotSupportedException("setRef");
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public void setBlob(int parameterIndex, Blob x) throws SQLException {
|
|
|
+ throw new SQLFeatureNotSupportedException("setRef");
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public void setClob(int parameterIndex, Clob x) throws SQLException {
|
|
|
+ throw new SQLFeatureNotSupportedException("setRef");
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public void setArray(int parameterIndex, Array x) throws SQLException {
|
|
|
+ throw new SQLFeatureNotSupportedException("setArray");
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public void setURL(int parameterIndex, URL x) throws SQLException {
|
|
|
+ throw new SQLFeatureNotSupportedException("setURL");
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public void setRowId(int parameterIndex, RowId x) throws SQLException {
|
|
|
+ throw new SQLFeatureNotSupportedException("setRowId");
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public void setNString(int parameterIndex, String value) throws SQLException {
|
|
|
+ throw new SQLFeatureNotSupportedException("setNString");
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public void setNCharacterStream(int parameterIndex, Reader value, long length) throws SQLException {
|
|
|
+ throw new SQLFeatureNotSupportedException("setNCharacterStream");
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public void setNClob(int parameterIndex, NClob value) throws SQLException {
|
|
|
+ throw new SQLFeatureNotSupportedException("setNClob");
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public void setClob(int parameterIndex, Reader reader, long length) throws SQLException {
|
|
|
+ throw new SQLFeatureNotSupportedException("setClob");
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public void setBlob(int parameterIndex, InputStream inputStream, long length) throws SQLException {
|
|
|
+ throw new SQLFeatureNotSupportedException("setBlob");
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public void setNClob(int parameterIndex, Reader reader, long length) throws SQLException {
|
|
|
+ throw new SQLFeatureNotSupportedException("setNClob");
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public void setSQLXML(int parameterIndex, SQLXML xmlObject) throws SQLException {
|
|
|
+ throw new SQLFeatureNotSupportedException("setSQLXML");
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public void setObject(int parameterIndex, Object x, int targetSqlType, int scaleOrLength) throws SQLException {
|
|
|
+ throw new SQLFeatureNotSupportedException("setObject");
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public void setAsciiStream(int parameterIndex, InputStream x, long length) throws SQLException {
|
|
|
+ throw new SQLFeatureNotSupportedException("setAsciiStream");
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public void setBinaryStream(int parameterIndex, InputStream x, long length) throws SQLException {
|
|
|
+ throw new SQLFeatureNotSupportedException("setBinaryStream");
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public void setCharacterStream(int parameterIndex, Reader reader, long length) throws SQLException {
|
|
|
+ throw new SQLFeatureNotSupportedException("setCharacterStream");
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public void setAsciiStream(int parameterIndex, InputStream x) throws SQLException {
|
|
|
+ throw new SQLFeatureNotSupportedException("setAsciiStream");
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public void setBinaryStream(int parameterIndex, InputStream x) throws SQLException {
|
|
|
+ throw new SQLFeatureNotSupportedException("setBinaryStream");
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public void setCharacterStream(int parameterIndex, Reader reader) throws SQLException {
|
|
|
+ throw new SQLFeatureNotSupportedException("setCharacterStream");
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public void setNCharacterStream(int parameterIndex, Reader value) throws SQLException {
|
|
|
+ throw new SQLFeatureNotSupportedException("setNCharacterStream");
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public void setClob(int parameterIndex, Reader reader) throws SQLException {
|
|
|
+ throw new SQLFeatureNotSupportedException("setClob");
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public void setBlob(int parameterIndex, InputStream inputStream) throws SQLException {
|
|
|
+ throw new SQLFeatureNotSupportedException("setBlob");
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public void setNClob(int parameterIndex, Reader reader) throws SQLException {
|
|
|
+ throw new SQLFeatureNotSupportedException("setNClob");
|
|
|
+ }
|
|
|
+}
|