diff options
author | Jens-Heiner Rechtien <hr@openoffice.org> | 2004-08-02 16:55:20 +0000 |
---|---|---|
committer | Jens-Heiner Rechtien <hr@openoffice.org> | 2004-08-02 16:55:20 +0000 |
commit | cccd28c8cd3ee14299d97631a35c2bf08373cf45 (patch) | |
tree | 17474f2b8ab08987f98817010dde47bac0277fc8 /qadevOOo/runner/util/DBTools.java | |
parent | 1c20a60b5c65ac7f2d6905fdabe6c85dd0ab2ee8 (diff) |
INTEGRATION: CWS insight01 (1.2.58); FILE MERGED
2004/07/27 12:42:34 oj 1.2.58.3: oob in odb
2004/07/27 08:49:49 oj 1.2.58.2: file extension changed
2004/07/14 10:45:10 sw 1.2.58.1: #i29289#
Diffstat (limited to 'qadevOOo/runner/util/DBTools.java')
-rw-r--r-- | qadevOOo/runner/util/DBTools.java | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/qadevOOo/runner/util/DBTools.java b/qadevOOo/runner/util/DBTools.java index dace83bcb123..aaad0b5822e2 100644 --- a/qadevOOo/runner/util/DBTools.java +++ b/qadevOOo/runner/util/DBTools.java @@ -2,9 +2,9 @@ * * $RCSfile: DBTools.java,v $ * - * $Revision: 1.2 $ + * $Revision: 1.3 $ * - * last change:$Date: 2003-11-18 16:17:33 $ + * last change:$Date: 2004-08-02 17:55:20 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -87,6 +87,7 @@ import com.sun.star.io.XInputStream ; import com.sun.star.io.XTextInputStream ; import com.sun.star.io.XDataInputStream ; import com.sun.star.container.XNameAccess ; +import com.sun.star.frame.XStorable; import com.sun.star.sdbc.XCloseable ; import java.sql.Statement; import java.sql.Connection; @@ -372,6 +373,10 @@ public class DBTools { revokeDB(name) ; } catch (com.sun.star.uno.Exception e) {} + XStorable store = (XStorable) UnoRuntime.queryInterface(XStorable.class, dataSource); + String aFile = utils.getOfficeTemp (xMSF)+name+".odb"; + store.storeAsURL(aFile,new PropertyValue[]{}); + registerDB(name, dataSource) ; } @@ -846,4 +851,4 @@ public class DBTools { throws java.sql.SQLException { statement.executeUpdate("drop table if exists " + tbl_name); } -}
\ No newline at end of file +} |