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
This commit is contained in:
Oliver Bolte 2008-07-25 06:40:56 +00:00
parent b88ff1a9b5
commit e65d55a986

View File

@ -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