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:
@@ -7,7 +7,7 @@
|
|||||||
* OpenOffice.org - a multi-platform office productivity suite
|
* OpenOffice.org - a multi-platform office productivity suite
|
||||||
*
|
*
|
||||||
* $RCSfile: HsqlDatabase.java,v $
|
* $RCSfile: HsqlDatabase.java,v $
|
||||||
* $Revision: 1.4 $
|
* $Revision: 1.5 $
|
||||||
*
|
*
|
||||||
* This file is part of OpenOffice.org.
|
* 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.XAppend;
|
||||||
import com.sun.star.sdbcx.XTablesSupplier;
|
import com.sun.star.sdbcx.XTablesSupplier;
|
||||||
import com.sun.star.uno.UnoRuntime;
|
import com.sun.star.uno.UnoRuntime;
|
||||||
|
import com.sun.star.io.IOException;
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
|
|
||||||
import com.sun.star.util.CloseVetoException;
|
import com.sun.star.util.CloseVetoException;
|
||||||
@@ -114,6 +115,18 @@ public class HsqlDatabase
|
|||||||
statement.execute( statementString );
|
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
|
/** closes the database document
|
||||||
*
|
*
|
||||||
* Any CloseVetoExceptions fired by third parties are ignored, and any reference to the
|
* Any CloseVetoExceptions fired by third parties are ignored, and any reference to the
|
||||||
|
Reference in New Issue
Block a user