//============================================================================== // FakeConnection.java //============================================================================== package tribble.sql.test; import java.sql.SQLException; import java.sql.Statement; import tribble.sql.ConnectionAdapter; /******************************************************************************* * Fake JDBC connection driver class. * * *
*
Source code:
*
Available at: * http://david.tribble.com/src/java/tribble/sql/test/FakeConnection.java *
*
Documentation:
*
Available at: * http://david.tribble.com/docs/tribble/sql/test/FakeConnection.html *
*
* * @version @(#)$Revision: 1.2 $ $Date: 2008/09/06 18:42:06 $ * @since 2008-09-04 * @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 Test1 * @see FakeStatement */ class FakeConnection extends tribble.sql.ConnectionAdapter { static final String REV = "@(#)tribble/sql/test/FakeConnection.java $Revision: 1.2 $ $Date: 2008/09/06 18:42:06 $\n"; // ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ // Constructors /*************************************************************************** * Constructor. * * @since 1.2, 2008-09-02 */ FakeConnection() { } // ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ // Methods public Statement createStatement() throws SQLException { return new FakeStatement(this); } } // End FakeConnection.java