tribble.sql.test
Class FakeStatement

java.lang.Object
  extended by tribble.sql.StatementAdapter
      extended by tribble.sql.test.FakeStatement
All Implemented Interfaces:
java.sql.Statement

 class FakeStatement
extends StatementAdapter

Fake JDBC statement driver class.

Source code:
Available at: http://david.tribble.com/src/java/tribble/sql/test/FakeStatement.java
Documentation:
Available at: http://david.tribble.com/docs/tribble/sql/test/FakeStatement.html

Since:
2008-09-02
Version:
@(#)$Revision: 1.3 $ $Date: 2008/09/06 18:42:29 $
Author:
David R. Tribble (david@tribble.com)

Copyright ©2008 by David R. Tribble, all rights reserved.
Permission is granted to any person or entity except those designated by by the United States Department of State as a terrorist, or terrorist government or agency, to use and distribute this source code provided that the original copyright notice remains present and unaltered.

See Also:
Test1, FakeConnection, FakeResultSet

Field Summary
(package private) static java.lang.String REV
           
 
Fields inherited from class tribble.sql.StatementAdapter
CLOSE_ALL_RESULTS, CLOSE_CURRENT_RESULT, EXECUTE_FAILED, KEEP_CURRENT_RESULT, NO_GENERATED_KEYS, RETURN_GENERATED_KEYS, SUCCESS_NO_INFO
 
Constructor Summary
FakeStatement(java.sql.Connection conn)
          Constructor.
 
Method Summary
 java.sql.ResultSet executeQuery(java.lang.String stmt)
          Execute an SQL query.
 
Methods inherited from class tribble.sql.StatementAdapter
addBatch, cancel, clearBatch, clearWarnings, close, execute, execute, execute, execute, executeBatch, executeUpdate, executeUpdate, executeUpdate, executeUpdate, getConnection, getFetchDirection, getFetchSize, getGeneratedKeys, getMaxFieldSize, getMaxRows, getMoreResults, getMoreResults, getQueryTimeout, getResultSet, getResultSetConcurrency, getResultSetHoldability, getResultSetType, getUpdateCount, getWarnings, setCursorName, setEscapeProcessing, setFetchDirection, setFetchSize, setMaxFieldSize, setMaxRows, setQueryTimeout
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

REV

static final java.lang.String REV
See Also:
Constant Field Values
Constructor Detail

FakeStatement

FakeStatement(java.sql.Connection conn)
Constructor.

Since:
1.2, 2008-09-02
Method Detail

executeQuery

public java.sql.ResultSet executeQuery(java.lang.String stmt)
                                throws java.sql.SQLException
Execute an SQL query.

Specified by:
executeQuery in interface java.sql.Statement
Overrides:
executeQuery in class StatementAdapter
Parameters:
stmt - A JDBC statement with which to execute the SQL query.
Returns:
The result set of the query if it was successful, otherwise an exception is thrown.
Throws:
java.sql.SQLException
Since:
1.1, 2008-09-02