Tag: cws_src680_qiq User: fs Date: 2006/06/26 14:09:11 Modified: dba/dbaccess/qa/complex/dbaccess/RowSet.java
Log: moved HsqlDatabase to package connectivity.tools File Changes: Directory: /dba/dbaccess/qa/complex/dbaccess/ ============================================= File [changed]: RowSet.java Url: http://dba.openoffice.org/source/browse/dba/dbaccess/qa/complex/dbaccess/RowSet.java?r1=1.6&r2=1.6.56.1 Delta lines: +12 -17 --------------------- --- RowSet.java 6 Feb 2006 16:53:01 -0000 1.6 +++ RowSet.java 26 Jun 2006 21:09:09 -0000 1.6.56.1 @@ -4,9 +4,9 @@ * * $RCSfile: RowSet.java,v $ * - * $Revision: 1.6 $ + * $Revision: 1.6.56.1 $ * - * last change: $Author: rt $ $Date: 2006/02/06 16:53:01 $ + * last change: $Author: fs $ $Date: 2006/06/26 21:09:09 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -34,27 +34,18 @@ ************************************************************************/ package complex.dbaccess; -import com.sun.star.awt.XWindow; -import com.sun.star.frame.*; -import com.sun.star.text.XTextDocument; import com.sun.star.uno.UnoRuntime; -import com.sun.star.util.XCloseable; import com.sun.star.beans.*; import com.sun.star.lang.*; import com.sun.star.sdbcx.*; import com.sun.star.sdbc.*; import com.sun.star.sdb.*; -import com.sun.star.container.*; import com.sun.star.lang.XMultiServiceFactory; +import com.sun.star.util.XRefreshable; +import connectivity.tools.HsqlDatabase; import complexlib.ComplexTestCase; - -import java.io.PrintWriter; -import java.io.File; -import java.util.Random; - -import util.utils; -import util.dbg; +import complexlib.ComplexTestCase.AssureException; public class RowSet extends ComplexTestCase { @@ -218,8 +209,8 @@ // -------------------------------------------------------------------------------------------------------- void createStruture() throws SQLException { - m_database.executeStatement( "DROP TABLE \"TEST1\" IF EXISTS" ); - m_database.executeStatement( "CREATE TABLE \"TEST1\" (\"ID\" integer not null primary key, \"col2\" varchar(50) )" ); + m_database.executeSQL( "DROP TABLE \"TEST1\" IF EXISTS" ); + m_database.executeSQL( "CREATE TABLE \"TEST1\" (\"ID\" integer not null primary key, \"col2\" varchar(50) )" ); XConnection connection = m_database.defaultConnection(); XPreparedStatement prep = connection.prepareStatement("INSERT INTO \"TEST1\" values (?,?)"); @@ -229,6 +220,10 @@ para.setString(2, "Test" + i); prep.executeUpdate(); } + + XTablesSupplier suppTables = (XTablesSupplier)UnoRuntime.queryInterface( XTablesSupplier.class, connection ); + XRefreshable refresh = (XRefreshable)UnoRuntime.queryInterface( XRefreshable.class, suppTables.getTables() ); + refresh.refresh(); } // -------------------------------------------------------------------------------------------------------- --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
