Tag: cws_dev300_odbmacros3
User: fs      
Date: 2008-07-23 13:35:55+0000
Modified:
   dba/connectivity/qa/connectivity/tools/HsqlDatabase.java

Log:
 copying following changes from CWS dba30g to CWS odbmacros3:

   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


File Changes:

Directory: /dba/connectivity/qa/connectivity/tools/
===================================================

File [changed]: HsqlDatabase.java
Url: 
http://dba.openoffice.org/source/browse/dba/connectivity/qa/connectivity/tools/HsqlDatabase.java?r1=1.4&r2=1.4.50.1
Delta lines:  +15 -2
--------------------
--- HsqlDatabase.java   2008-04-10 07:47:43+0000        1.4
+++ HsqlDatabase.java   2008-07-23 13:35:53+0000        1.4.50.1
@@ -7,7 +7,7 @@
  * OpenOffice.org - a multi-platform office productivity suite
  *
  * $RCSfile: HsqlDatabase.java,v $
- * $Revision: 1.4 $
+ * $Revision: 1.4.50.1 $
  *
  * This file is part of OpenOffice.org.
  *
@@ -43,6 +43,7 @@
 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 @@
         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




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to