package org.es.jdbc.api; import java.sql.*; public abstract class AbstractFeatureNotSupportedStatement implements Statement { @Override public final int getFetchDirection() throws SQLException { throw new SQLFeatureNotSupportedException("getFetchDirection"); } @Override public final void setFetchDirection(final int direction) throws SQLException { throw new SQLFeatureNotSupportedException("setFetchDirection"); } @Override public final void addBatch(final String sql) throws SQLException { throw new SQLFeatureNotSupportedException("addBatch sql"); } @Override public void clearBatch() throws SQLException { throw new SQLFeatureNotSupportedException("clearBatch"); } @Override public int[] executeBatch() throws SQLException { throw new SQLFeatureNotSupportedException("executeBatch"); } @Override public final void closeOnCompletion() throws SQLException { throw new SQLFeatureNotSupportedException("closeOnCompletion"); } @Override public final boolean isCloseOnCompletion() throws SQLException { throw new SQLFeatureNotSupportedException("isCloseOnCompletion"); } @Override public final int executeUpdate(String sql) throws SQLException { throw new SQLFeatureNotSupportedException("executeUpdate"); } @Override public void setCursorName(String name) throws SQLException { throw new SQLFeatureNotSupportedException("setCursorName"); } @Override public int getUpdateCount() throws SQLException { throw new SQLFeatureNotSupportedException("getUpdateCount"); } @Override public boolean getMoreResults() throws SQLException { throw new SQLFeatureNotSupportedException("getMoreResults"); } @Override public ResultSet getGeneratedKeys() throws SQLException { throw new SQLFeatureNotSupportedException("getGeneratedKeys"); } @Override public int executeUpdate(String sql, int autoGeneratedKeys) throws SQLException { throw new SQLFeatureNotSupportedException("executeUpdate"); } @Override public int executeUpdate(String sql, int[] columnIndexes) throws SQLException { throw new SQLFeatureNotSupportedException("executeUpdate"); } @Override public int executeUpdate(String sql, String[] columnNames) throws SQLException { throw new SQLFeatureNotSupportedException("executeUpdate"); } @Override public boolean execute(String sql, int autoGeneratedKeys) throws SQLException { throw new SQLFeatureNotSupportedException("execute"); } @Override public boolean execute(String sql, int[] columnIndexes) throws SQLException { throw new SQLFeatureNotSupportedException("execute"); } @Override public boolean execute(String sql, String[] columnNames) throws SQLException { throw new SQLFeatureNotSupportedException("execute"); } }