LibreOffice Module dbaccess (master) 1
|
#include <hsqlimport.hxx>
Public Member Functions | |
HsqlImporter (css::uno::Reference< css::sdbc::XConnection > &rConnection, const css::uno::Reference< css::embed::XStorage > &rStorage) | |
void | importHsqlDatabase (weld::Window *pParent) |
Migrate a HSQL database to another. More... | |
Protected Member Functions | |
void | insertRow (const std::vector< css::uno::Any > &xRows, std::u16string_view sTable, const std::vector< ColumnDefinition > &rColTypes) |
void | processTree (HsqlBinaryNode &rNode, HsqlRowInputStream &rStream, const std::vector< ColumnDefinition > &rColTypes, const OUString &sTableName, sal_Int32 nIndexCount) |
void | parseTableRows (const std::vector< sal_Int32 > &rIndexes, const std::vector< ColumnDefinition > &rColTypes, const OUString &sTableName) |
Format from the indexed file position is the following: <Node x20><Row> Where Node is a 20 byte data, representing the rows in a binary tree: <Size x4><Balance x4><Left x4> <Right x4><Parent x4> More... | |
Private Attributes | |
css::uno::Reference< css::sdbc::XConnection > & | m_rConnection |
css::uno::Reference< css::embed::XStorage > | m_xStorage |
Definition at line 26 of file hsqlimport.hxx.
dbahsql::HsqlImporter::HsqlImporter | ( | css::uno::Reference< css::sdbc::XConnection > & | rConnection, |
const css::uno::Reference< css::embed::XStorage > & | rStorage | ||
) |
rConnection | reference to an sdbc connection. The migration will perform to this connection. |
rStorage | Storage where the HSQL database can be found. The schema definition should be in file "script" in form of DDL SQL statements. The data should be found in file "data". These are HSQLDB's own format. |
Definition at line 209 of file hsqlimport.cxx.
References m_xStorage.
void dbahsql::HsqlImporter::importHsqlDatabase | ( | weld::Window * | pParent | ) |
Migrate a HSQL database to another.
Definition at line 290 of file hsqlimport.cxx.
References ex, weld::Window::GetXWindow(), m_rConnection, m_xStorage, parser, parseTableRows(), SAL_WARN, and dbtools::showError().
|
protected |
Definition at line 215 of file hsqlimport.cxx.
References m_rConnection.
Referenced by processTree().
|
protected |
Format from the indexed file position is the following: <Node x20><Row> Where Node is a 20 byte data, representing the rows in a binary tree: <Size x4><Balance x4><Left x4> <Right x4><Parent x4>
Size is the size of <Row>; Balance: ? Left/Right/Parent: File position of the Left/Right/Parent child
Definition at line 262 of file hsqlimport.cxx.
References m_xStorage, processTree(), SAL_WARN, dbahsql::HsqlRowInputStream::setInputStream(), u, and xStream.
Referenced by importHsqlDatabase().
|
protected |
Definition at line 230 of file hsqlimport.cxx.
References dbahsql::HsqlBinaryNode::getLeft(), dbahsql::HsqlBinaryNode::getRight(), insertRow(), nIndexCount, processTree(), dbahsql::HsqlBinaryNode::readChildren(), and dbahsql::HsqlBinaryNode::readRow().
Referenced by parseTableRows(), and processTree().
|
private |
Definition at line 29 of file hsqlimport.hxx.
Referenced by importHsqlDatabase(), and insertRow().
|
private |
Definition at line 30 of file hsqlimport.hxx.
Referenced by HsqlImporter(), importHsqlDatabase(), and parseTableRows().