package corbajdbc; import java.sql.*; public class C_Statement implements Statement { CorbaStatement stmtRef; private int iMaxFieldSize; private int iMaxRows; private int iTimeout; public C_Statement(CorbaStatement stmtRef) { this.stmtRef = stmtRef; this.iMaxFieldSize = 0; this.iMaxRows = 0; this.iTimeout = 5000; } public ResultSet executeQuery(String sSQL) throws SQLException { CorbaResultSet resultRef; resultRef = stmtRef.executeQuery(sSQL); System.out.println(resultRef.sayhello()); return new C_ResultSet(resultRef); } public void clearWarnings() throws SQLException {} public SQLWarning getWarnings() throws SQLException {return null;} public boolean execute(String sSQL) throws SQLException {return true;} public int getUpdateCount() throws SQLException {return 1;} public int executeUpdate(String sSQL) throws SQLException {return 1;} public ResultSet getResultSet() throws SQLException {return null;} public int getMaxFieldSize() {return iMaxFieldSize;} public void setMaxFieldSize(int iMaxFieldSize) throws SQLException {this.iMaxFieldSize = iMaxFieldSize;} public int getMaxRows() {return iMaxRows;} public void setMaxRows(int iMaxRows) throws SQLException {this.iMaxRows = iMaxRows;} public void setEscapeProcessing(boolean bNewState) throws SQLException {} public void setQueryTimeout(int iNewValue) throws SQLException {this.iTimeout = iNewValue;} public int getQueryTimeout() {return iTimeout;} public void setCursorName(String sCursor) throws SQLException{} public boolean getMoreResults() throws SQLException {return false;} public void cancel() throws SQLException {} public void close() throws SQLException {} }