123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273 |
- package me.km.databank;
- import java.sql.Connection;
- import java.sql.ResultSet;
- import java.sql.SQLException;
- import java.sql.SQLWarning;
- import java.sql.Statement;
- public class DummyStatement implements Statement
- {
- @Override
- public ResultSet executeQuery(String sql) throws SQLException
- {
- throw new SQLException("Dummy Handler");
- }
- @Override
- public int executeUpdate(String sql) throws SQLException
- {
- throw new SQLException("Dummy Handler");
- }
- @Override
- public void close() throws SQLException
- {
- throw new SQLException("Dummy Handler");
- }
- @Override
- public int getMaxFieldSize() throws SQLException
- {
- throw new SQLException("Dummy Handler");
- }
- @Override
- public void setMaxFieldSize(int max) throws SQLException
- {
- throw new SQLException("Dummy Handler");
- }
- @Override
- public int getMaxRows() throws SQLException
- {
- throw new SQLException("Dummy Handler");
- }
- @Override
- public void setMaxRows(int max) throws SQLException
- {
- throw new SQLException("Dummy Handler");
- }
- @Override
- public void setEscapeProcessing(boolean enable) throws SQLException
- {
- throw new SQLException("Dummy Handler");
- }
- @Override
- public int getQueryTimeout() throws SQLException
- {
- throw new SQLException("Dummy Handler");
- }
- @Override
- public void setQueryTimeout(int seconds) throws SQLException
- {
- throw new SQLException("Dummy Handler");
- }
- @Override
- public void cancel() throws SQLException
- {
- throw new SQLException("Dummy Handler");
- }
- @Override
- public SQLWarning getWarnings() throws SQLException
- {
- throw new SQLException("Dummy Handler");
- }
- @Override
- public void clearWarnings() throws SQLException
- {
- throw new SQLException("Dummy Handler");
- }
- @Override
- public void setCursorName(String name) throws SQLException
- {
- throw new SQLException("Dummy Handler");
- }
- @Override
- public boolean execute(String sql) throws SQLException
- {
- throw new SQLException("Dummy Handler");
- }
- @Override
- public ResultSet getResultSet() throws SQLException
- {
- throw new SQLException("Dummy Handler");
- }
- @Override
- public int getUpdateCount() throws SQLException
- {
- throw new SQLException("Dummy Handler");
- }
- @Override
- public boolean getMoreResults() throws SQLException
- {
- throw new SQLException("Dummy Handler");
- }
- @Override
- public void setFetchDirection(int direction) throws SQLException
- {
- throw new SQLException("Dummy Handler");
- }
- @Override
- public int getFetchDirection() throws SQLException
- {
- throw new SQLException("Dummy Handler");
- }
- @Override
- public void setFetchSize(int rows) throws SQLException
- {
- throw new SQLException("Dummy Handler");
- }
- @Override
- public int getFetchSize() throws SQLException
- {
- throw new SQLException("Dummy Handler");
- }
- @Override
- public int getResultSetConcurrency() throws SQLException
- {
- throw new SQLException("Dummy Handler");
- }
- @Override
- public int getResultSetType() throws SQLException
- {
- throw new SQLException("Dummy Handler");
- }
- @Override
- public void addBatch(String sql) throws SQLException
- {
- throw new SQLException("Dummy Handler");
- }
- @Override
- public void clearBatch() throws SQLException
- {
- throw new SQLException("Dummy Handler");
- }
- @Override
- public int[] executeBatch() throws SQLException
- {
- throw new SQLException("Dummy Handler");
- }
- @Override
- public Connection getConnection() throws SQLException
- {
- throw new SQLException("Dummy Handler");
- }
- @Override
- public boolean getMoreResults(int current) throws SQLException
- {
- throw new SQLException("Dummy Handler");
- }
- @Override
- public ResultSet getGeneratedKeys() throws SQLException
- {
- throw new SQLException("Dummy Handler");
- }
- @Override
- public int executeUpdate(String sql, int autoGeneratedKeys) throws SQLException
- {
- throw new SQLException("Dummy Handler");
- }
- @Override
- public int executeUpdate(String sql, int[] columnIndexes) throws SQLException
- {
- throw new SQLException("Dummy Handler");
- }
- @Override
- public int executeUpdate(String sql, String[] columnNames) throws SQLException
- {
- throw new SQLException("Dummy Handler");
- }
- @Override
- public boolean execute(String sql, int autoGeneratedKeys) throws SQLException
- {
- throw new SQLException("Dummy Handler");
- }
- @Override
- public boolean execute(String sql, int[] columnIndexes) throws SQLException
- {
- throw new SQLException("Dummy Handler");
- }
- @Override
- public boolean execute(String sql, String[] columnNames) throws SQLException
- {
- throw new SQLException("Dummy Handler");
- }
- @Override
- public int getResultSetHoldability() throws SQLException
- {
- throw new SQLException("Dummy Handler");
- }
- @Override
- public boolean isClosed() throws SQLException
- {
- throw new SQLException("Dummy Handler");
- }
- @Override
- public void setPoolable(boolean poolable) throws SQLException
- {
- }
- @Override
- public boolean isPoolable() throws SQLException
- {
- throw new SQLException("Dummy Handler");
- }
- @Override
- public void closeOnCompletion() throws SQLException
- {
- throw new SQLException("Dummy Handler");
- }
- @Override
- public boolean isCloseOnCompletion() throws SQLException
- {
- throw new SQLException("Dummy Handler");
- }
- @Override
- public <T> T unwrap(Class<T> iface) throws SQLException
- {
- throw new SQLException("Dummy Handler");
- }
- @Override
- public boolean isWrapperFor(Class<?> iface) throws SQLException
- {
- throw new SQLException("Dummy Handler");
- }
- }
|