simpledb.remote
Class SimpleStatement

java.lang.Object
  extended by simpledb.remote.StatementAdapter
      extended by simpledb.remote.SimpleStatement
All Implemented Interfaces:
Statement, 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
 ResultSet executeQuery(String qry)
           
 int executeUpdate(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 ResultSet executeQuery(String qry)
                       throws SQLException
Specified by:
executeQuery in interface Statement
Overrides:
executeQuery in class StatementAdapter
Throws:
SQLException

executeUpdate

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


Copyright © 2011. All Rights Reserved.