simpledb.remote
Class SimpleStatement

java.lang.Object
  extended by simpledb.remote.StatementAdapter
      extended by simpledb.remote.SimpleStatement
All Implemented Interfaces:
java.sql.Statement, java.sql.Wrapper

public class SimpleStatement
extends StatementAdapter

An adapter class that wraps RemoteStatement. Its methods do nothing except transform RemoteExceptions into SQLExceptions.

Author:
Edward Sciore

Field Summary
 
Fields inherited from interface java.sql.Statement
CLOSE_ALL_RESULTS, CLOSE_CURRENT_RESULT, EXECUTE_FAILED, KEEP_CURRENT_RESULT, NO_GENERATED_KEYS, RETURN_GENERATED_KEYS, SUCCESS_NO_INFO
 
Constructor Summary
SimpleStatement(RemoteStatement s)
           
 
Method Summary
 java.sql.ResultSet executeQuery(java.lang.String qry)
           
 int executeUpdate(java.lang.String cmd)
           
 
Methods inherited from class simpledb.remote.StatementAdapter
addBatch, cancel, clearBatch, clearWarnings, close, execute, execute, execute, execute, executeBatch, executeUpdate, executeUpdate, executeUpdate, getConnection, getFetchDirection, getFetchSize, getGeneratedKeys, getMaxFieldSize, getMaxRows, getMoreResults, getMoreResults, getQueryTimeout, getResultSet, getResultSetConcurrency, getResultSetHoldability, getResultSetType, getUpdateCount, getWarnings, isClosed, isPoolable, isWrapperFor, setCursorName, setEscapeProcessing, setFetchDirection, setFetchSize, setMaxFieldSize, setMaxRows, setPoolable, setQueryTimeout, unwrap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleStatement

public SimpleStatement(RemoteStatement s)
Method Detail

executeQuery

public java.sql.ResultSet executeQuery(java.lang.String qry)
                                throws java.sql.SQLException
Specified by:
executeQuery in interface java.sql.Statement
Overrides:
executeQuery in class StatementAdapter
Throws:
java.sql.SQLException

executeUpdate

public int executeUpdate(java.lang.String cmd)
                  throws java.sql.SQLException
Specified by:
executeUpdate in interface java.sql.Statement
Overrides:
executeUpdate in class StatementAdapter
Throws:
java.sql.SQLException