| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202 |
- package org.elasticsearch.jdbc;
- import java.io.InputStream;
- import java.io.Reader;
- import java.net.URL;
- import java.sql.*;
- import java.util.Calendar;
- public abstract class AbstractFeatureNotSupportedPreparedStatement extends ElasticStatement implements PreparedStatement {
- public AbstractFeatureNotSupportedPreparedStatement(ElasticConnection connection) {
- super(connection);
- }
- @Override
- public int executeUpdate() throws SQLException {
- throw new SQLFeatureNotSupportedException("executeUpdate");
- }
- @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");
- }
- @Override
- public void setNull(int parameterIndex, int sqlType, String typeName) throws SQLException {
- throw new SQLFeatureNotSupportedException("setNull");
- }
- @Override
- public void setDate(int parameterIndex, Date x, Calendar cal) throws SQLException {
- throw new SQLFeatureNotSupportedException("setDate");
- }
- @Override
- public void setTime(int parameterIndex, Time x, Calendar cal) throws SQLException {
- throw new SQLFeatureNotSupportedException("setTime");
- }
- @Override
- public void setTimestamp(int parameterIndex, Timestamp x, Calendar cal) throws SQLException {
- throw new SQLFeatureNotSupportedException("setTimestamp");
- }
- }
|