package net.sourceforge.mayfly.jdbc;
import net.sourceforge.mayfly.MayflyConnection;
import net.sourceforge.mayfly.MayflyException;
import net.sourceforge.mayfly.UnimplementedException;
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.SQLWarning;
import java.sql.Statement;
public class JdbcStatement implements Statement {
private final MayflyConnection mayflyConnection;
public JdbcStatement(MayflyConnection mayflyConnection) {
this.mayflyConnection = mayflyConnection;
}
public ResultSet executeQuery(String sql) throws SQLException {
try {
return mayflyConnection.query(sql);
}
catch (MayflyException e) {
throw e.asSqlException();
}
}
public int executeUpdate(String sql) throws SQLException {
try {
return mayflyConnection.execute(sql);
}
catch (MayflyException e) {
throw e.asSqlException();
}
}
public void close() throws SQLException {
}
public int getMaxFieldSize() throws SQLException {
throw new UnimplementedException();
}
public void setMaxFieldSize(int max) throws SQLException {
throw new UnimplementedException();
}
public int getMaxRows() throws SQLException {
return 0;
}
public void setMaxRows(int max) throws SQLException {
throw new UnimplementedException();
}
public void setEscapeProcessing(boolean enable) throws SQLException {
throw new UnimplementedException();
}
public int getQueryTimeout() throws SQLException {
return 0;
}
public void setQueryTimeout(int seconds) throws SQLException {
throw new UnimplementedException();
}
public void cancel() throws SQLException {
throw new UnimplementedException();
}
public SQLWarning getWarnings() throws SQLException {
throw new UnimplementedException();
}
public void clearWarnings() throws SQLException {
throw new UnimplementedException();
}
public void setCursorName(String name) throws SQLException {
throw new UnimplementedException();
}
public boolean execute(String sql) throws SQLException {
throw new UnimplementedException();
}
public ResultSet getResultSet() throws SQLException {
throw new UnimplementedException();
}
public int getUpdateCount() throws SQLException {
throw new UnimplementedException();
}
public boolean getMoreResults() throws SQLException {
throw new UnimplementedException();
}
public void setFetchDirection(int direction) throws SQLException {
throw new UnimplementedException();
}
public int getFetchDirection() throws SQLException {
throw new UnimplementedException();
}
public void setFetchSize(int rows) throws SQLException {
throw new UnimplementedException();
}
public int getFetchSize() throws SQLException {
throw new UnimplementedException();
}
public int getResultSetConcurrency() throws SQLException {
throw new UnimplementedException();
}
public int getResultSetType() throws SQLException {
throw new UnimplementedException();
}
public void addBatch(String sql) throws SQLException {
throw new UnimplementedException();
}
public void clearBatch() throws SQLException {
throw new UnimplementedException();
}
public int[] executeBatch() throws SQLException {
throw new UnimplementedException();
}
public Connection getConnection() throws SQLException {
throw new UnimplementedException();
}
public boolean getMoreResults(int current) throws SQLException {
throw new UnimplementedException();
}
public ResultSet getGeneratedKeys() throws SQLException {
throw new UnimplementedException();
}
public int executeUpdate(String sql, int autoGeneratedKeys)
throws SQLException {
throw new UnimplementedException();
}
public int executeUpdate(String sql, int[] columnIndexes)
throws SQLException {
throw new UnimplementedException();
}
public int executeUpdate(String sql, String[] columnNames)
throws SQLException {
throw new UnimplementedException();
}
public boolean execute(String sql, int autoGeneratedKeys)
throws SQLException {
throw new UnimplementedException();
}
public boolean execute(String sql, int[] columnIndexes)
throws SQLException {
throw new UnimplementedException();
}
public boolean execute(String sql, String[] columnNames)
throws SQLException {
throw new UnimplementedException();
}
public int getResultSetHoldability() throws SQLException {
throw new UnimplementedException();
}
public boolean isClosed() throws SQLException {
throw new UnimplementedException();
}
public boolean isPoolable() throws SQLException {
throw new UnimplementedException();
}
public void setPoolable(boolean poolable) throws SQLException {
throw new UnimplementedException();
}
public boolean isWrapperFor(Class<?> iface) throws SQLException {
throw new UnimplementedException();
}
public <T> T unwrap(Class<T> iface) throws SQLException {
throw new UnimplementedException();
}
}