summaryrefslogtreecommitdiff
path: root/connectivity/qa
diff options
context:
space:
mode:
authorOliver Bolte <obo@openoffice.org>2008-07-25 06:40:56 +0000
committerOliver Bolte <obo@openoffice.org>2008-07-25 06:40:56 +0000
commite65d55a986226c992d81273e19ba25e8f859b941 (patch)
treebf180beebf7f641e8b146ada2dd4b15588742bc5 /connectivity/qa
parentb88ff1a9b5faa8ee79ae93e0856d2434cf3792db (diff)
INTEGRATION: CWS dba30g (1.4.48); FILE MERGED
2008/07/22 07:21:07 fs 1.4.48.1: copying following changes from CWS dba30h to CWS dba30g: 2008/07/21 09:10:35 fs 1.4.46.1: #i91857# +store
Diffstat (limited to 'connectivity/qa')
-rw-r--r--connectivity/qa/connectivity/tools/HsqlDatabase.java15
1 files changed, 14 insertions, 1 deletions
diff --git a/connectivity/qa/connectivity/tools/HsqlDatabase.java b/connectivity/qa/connectivity/tools/HsqlDatabase.java
index 1380dd7861a5..f2b69a7d24c5 100644
--- a/connectivity/qa/connectivity/tools/HsqlDatabase.java
+++ b/connectivity/qa/connectivity/tools/HsqlDatabase.java
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: HsqlDatabase.java,v $
- * $Revision: 1.4 $
+ * $Revision: 1.5 $
*
* This file is part of OpenOffice.org.
*
@@ -43,6 +43,7 @@ import com.sun.star.sdbc.XStatement;
import com.sun.star.sdbcx.XAppend;
import com.sun.star.sdbcx.XTablesSupplier;
import com.sun.star.uno.UnoRuntime;
+import com.sun.star.io.IOException;
import java.io.File;
import com.sun.star.util.CloseVetoException;
@@ -114,6 +115,18 @@ public class HsqlDatabase
statement.execute( statementString );
}
+ /** stores the database document
+ */
+ public void store() throws IOException
+ {
+ if ( m_databaseDocument != null )
+ {
+ XStorable storeDoc = (XStorable)UnoRuntime.queryInterface( XStorable.class,
+ m_databaseDocument );
+ storeDoc.store();
+ }
+ }
+
/** closes the database document
*
* Any CloseVetoExceptions fired by third parties are ignored, and any reference to the