summaryrefslogtreecommitdiff
path: root/connectivity/source/inc/dbase
diff options
context:
space:
mode:
Diffstat (limited to 'connectivity/source/inc/dbase')
-rw-r--r--connectivity/source/inc/dbase/DCatalog.hxx51
-rw-r--r--connectivity/source/inc/dbase/DCode.hxx71
-rw-r--r--connectivity/source/inc/dbase/DColumns.hxx57
-rw-r--r--connectivity/source/inc/dbase/DConnection.hxx60
-rw-r--r--connectivity/source/inc/dbase/DDatabaseMetaData.hxx70
-rw-r--r--connectivity/source/inc/dbase/DDatabaseMetaDataResultSet.hxx196
-rw-r--r--connectivity/source/inc/dbase/DDatabaseMetaDataResultSetMetaData.hxx110
-rw-r--r--connectivity/source/inc/dbase/DDriver.hxx63
-rw-r--r--connectivity/source/inc/dbase/DIndex.hxx162
-rw-r--r--connectivity/source/inc/dbase/DIndexColumns.hxx62
-rw-r--r--connectivity/source/inc/dbase/DIndexIter.hxx87
-rw-r--r--connectivity/source/inc/dbase/DIndexPage.hxx38
-rw-r--r--connectivity/source/inc/dbase/DIndexes.hxx63
-rw-r--r--connectivity/source/inc/dbase/DPreparedStatement.hxx52
-rw-r--r--connectivity/source/inc/dbase/DResultSet.hxx92
-rw-r--r--connectivity/source/inc/dbase/DStatement.hxx52
-rw-r--r--connectivity/source/inc/dbase/DTable.hxx187
-rw-r--r--connectivity/source/inc/dbase/DTables.hxx60
-rw-r--r--connectivity/source/inc/dbase/dindexnode.hxx349
19 files changed, 0 insertions, 1882 deletions
diff --git a/connectivity/source/inc/dbase/DCatalog.hxx b/connectivity/source/inc/dbase/DCatalog.hxx
deleted file mode 100644
index 6814277ba0..0000000000
--- a/connectivity/source/inc/dbase/DCatalog.hxx
+++ /dev/null
@@ -1,51 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2000, 2010 Oracle and/or its affiliates.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- * <http://www.openoffice.org/license.html>
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-
-#ifndef _CONNECTIVITY_DBASE_CATALOG_HXX_
-#define _CONNECTIVITY_DBASE_CATALOG_HXX_
-
-#include "file/FCatalog.hxx"
-
-namespace connectivity
-{
- namespace dbase
- {
- class ODbaseConnection;
- class ODbaseCatalog : public file::OFileCatalog
- {
- public:
- virtual void refreshTables();
-
- public:
- ODbaseCatalog(ODbaseConnection* _pCon);
- };
- }
-}
-#endif // _CONNECTIVITY_DBASE_CATALOG_HXX_
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/inc/dbase/DCode.hxx b/connectivity/source/inc/dbase/DCode.hxx
deleted file mode 100644
index c5a0d66790..0000000000
--- a/connectivity/source/inc/dbase/DCode.hxx
+++ /dev/null
@@ -1,71 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2000, 2010 Oracle and/or its affiliates.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- * <http://www.openoffice.org/license.html>
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-#ifndef CONNECTIVITY_DBASE_DCODE_HXX
-#define CONNECTIVITY_DBASE_DCODE_HXX
-
-#include "file/fanalyzer.hxx"
-#include <com/sun/star/container/XIndexAccess.hpp>
-#include <com/sun/star/beans/XPropertySet.hpp>
-#include "file/fcode.hxx"
-
-namespace connectivity
-{
- namespace file
- {
- class OConnection;
- }
- namespace dbase
- {
- class OFILEAnalyzer : public file::OSQLAnalyzer
- {
- public:
- OFILEAnalyzer(file::OConnection* _pConnection) : file::OSQLAnalyzer(_pConnection){}
- virtual file::OOperandAttr* createOperandAttr(sal_Int32 _nPos,
- const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet>& _xCol,
- const ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameAccess>& _xIndexes=NULL);
- };
-
- // Attribute aus einer Ergebniszeile
- class OFILEOperandAttr : public file::OOperandAttr
- {
- ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet> m_xIndex;
- public:
- OFILEOperandAttr(sal_uInt16 _nPos,
- const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet>& _xColumn,
- const ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameAccess>& _xIndexes=NULL);
-
- virtual sal_Bool isIndexed() const;
- virtual file::OEvaluateSet* preProcess(file::OBoolOperator* pOp, file::OOperand* pRight = 0);
- TYPEINFO();
- };
- }
-}
-
-#endif // CONNECTIVITY_DBASE_DCODE_HXX
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/inc/dbase/DColumns.hxx b/connectivity/source/inc/dbase/DColumns.hxx
deleted file mode 100644
index 1595441002..0000000000
--- a/connectivity/source/inc/dbase/DColumns.hxx
+++ /dev/null
@@ -1,57 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2000, 2010 Oracle and/or its affiliates.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- * <http://www.openoffice.org/license.html>
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-
-#ifndef _CONNECTIVITY_DBASE_COLUMNS_HXX_
-#define _CONNECTIVITY_DBASE_COLUMNS_HXX_
-
-#include "file/FColumns.hxx"
-
-namespace connectivity
-{
- namespace dbase
- {
- class ODbaseColumns : public file::OColumns
- {
- protected:
- virtual sdbcx::ObjectType createObject(const ::rtl::OUString& _rName);
- virtual void impl_refresh() throw(::com::sun::star::uno::RuntimeException);
- virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > createDescriptor();
- virtual sdbcx::ObjectType appendObject( const ::rtl::OUString& _rForName, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >& descriptor );
- virtual void dropObject(sal_Int32 _nPos,const ::rtl::OUString _sElementName);
- public:
- ODbaseColumns(file::OFileTable* _pTable,
- ::osl::Mutex& _rMutex,
- const TStringVector &_rVector
- ) : file::OColumns(_pTable,_rMutex,_rVector)
- {}
- };
- }
-}
-#endif // _CONNECTIVITY_DBASE_COLUMNS_HXX_
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/inc/dbase/DConnection.hxx b/connectivity/source/inc/dbase/DConnection.hxx
deleted file mode 100644
index 97c1ca32f0..0000000000
--- a/connectivity/source/inc/dbase/DConnection.hxx
+++ /dev/null
@@ -1,60 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2000, 2010 Oracle and/or its affiliates.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- * <http://www.openoffice.org/license.html>
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-
-#ifndef _CONNECTIVITY_DBASE_DCONNECTION_HXX_
-#define _CONNECTIVITY_DBASE_DCONNECTION_HXX_
-
-#include "file/FConnection.hxx"
-
-namespace connectivity
-{
- namespace dbase
- {
- class ODriver;
- typedef file::OConnection ODbaseConnection_Base;
- class ODbaseConnection : public ODbaseConnection_Base
- {
- protected:
- virtual ~ODbaseConnection();
- public:
- ODbaseConnection(ODriver* _pDriver);
- // XServiceInfo
- DECLARE_SERVICE_INFO();
-
- // XConnection
- virtual ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XDatabaseMetaData > SAL_CALL getMetaData( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
- virtual ::com::sun::star::uno::Reference< ::com::sun::star::sdbcx::XTablesSupplier > createCatalog();
- virtual ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XStatement > SAL_CALL createStatement( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
- virtual ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XPreparedStatement > SAL_CALL prepareStatement( const ::rtl::OUString& sql ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
- virtual ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XPreparedStatement > SAL_CALL prepareCall( const ::rtl::OUString& sql ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
- };
- }
-}
-#endif // _CONNECTIVITY_DBASE_DCONNECTION_HXX_
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/inc/dbase/DDatabaseMetaData.hxx b/connectivity/source/inc/dbase/DDatabaseMetaData.hxx
deleted file mode 100644
index 1c661bcecc..0000000000
--- a/connectivity/source/inc/dbase/DDatabaseMetaData.hxx
+++ /dev/null
@@ -1,70 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2000, 2010 Oracle and/or its affiliates.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- * <http://www.openoffice.org/license.html>
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-
-#ifndef _CONNECTIVITY_DBASE_ODATABASEMETADATA_HXX_
-#define _CONNECTIVITY_DBASE_ODATABASEMETADATA_HXX_
-
-#include "file/FDatabaseMetaData.hxx"
-
-namespace connectivity
-{
- namespace dbase
- {
- //**************************************************************
- //************ Class: java.sql.DatabaseMetaDataDate
- //**************************************************************
-
- class ODbaseDatabaseMetaData : public file::ODatabaseMetaData
- {
- virtual ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XResultSet > impl_getTypeInfo_throw();
- virtual sal_Bool SAL_CALL isReadOnly( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
- virtual ::rtl::OUString SAL_CALL getURL( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
- virtual ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XResultSet > SAL_CALL getColumns( const ::com::sun::star::uno::Any& catalog, const ::rtl::OUString& schemaPattern, const ::rtl::OUString& tableNamePattern, const ::rtl::OUString& columnNamePattern ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
- virtual ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XResultSet > SAL_CALL getIndexInfo( const ::com::sun::star::uno::Any& catalog, const ::rtl::OUString& schema, const ::rtl::OUString& table, sal_Bool unique, sal_Bool approximate ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
-
- virtual sal_Int32 SAL_CALL getMaxBinaryLiteralLength( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
- virtual sal_Int32 SAL_CALL getMaxCharLiteralLength( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
- virtual sal_Int32 SAL_CALL getMaxColumnNameLength( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
- virtual sal_Int32 SAL_CALL getMaxColumnsInIndex( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
- virtual sal_Int32 SAL_CALL getMaxColumnsInTable( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
-
- virtual sal_Bool SAL_CALL supportsAlterTableWithAddColumn( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
- virtual sal_Bool SAL_CALL supportsAlterTableWithDropColumn( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
-
- virtual sal_Bool impl_storesMixedCaseQuotedIdentifiers_throw( );
- virtual sal_Bool impl_supportsMixedCaseQuotedIdentifiers_throw( );
- protected:
- virtual ~ODbaseDatabaseMetaData();
- public:
- ODbaseDatabaseMetaData(file::OConnection* _pCon);
- };
- }
-}
-#endif // _CONNECTIVITY_DBASE_ODATABASEMETADATA_HXX_
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/inc/dbase/DDatabaseMetaDataResultSet.hxx b/connectivity/source/inc/dbase/DDatabaseMetaDataResultSet.hxx
deleted file mode 100644
index b7e76b3622..0000000000
--- a/connectivity/source/inc/dbase/DDatabaseMetaDataResultSet.hxx
+++ /dev/null
@@ -1,196 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2000, 2010 Oracle and/or its affiliates.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- * <http://www.openoffice.org/license.html>
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-
-#ifndef _CONNECTIVITY_FILE_ADATABASEMETADATARESULTSET_HXX_
-#define _CONNECTIVITY_FILE_ADATABASEMETADATARESULTSET_HXX_
-
-#include <com/sun/star/sdbc/XResultSet.hpp>
-#include <com/sun/star/sdbc/XRow.hpp>
-#include <com/sun/star/sdbc/XResultSetMetaDataSupplier.hpp>
-#include <com/sun/star/sdbc/XCloseable.hpp>
-#include <com/sun/star/sdbc/XColumnLocate.hpp>
-#include <com/sun/star/util/XCancellable.hpp>
-#include <com/sun/star/sdbc/XWarningsSupplier.hpp>
-#include <com/sun/star/sdbc/XResultSetUpdate.hpp>
-#include <com/sun/star/sdbc/XRowUpdate.hpp>
-#include <cppuhelper/compbase7.hxx>
-#include <comphelper/proparrhlp.hxx>
-#include "file/FStatement.hxx"
-#include "connectivity/CommonTools.hxx"
-#include <comphelper/propertycontainer.hxx>
-
-namespace connectivity
-{
- namespace file
- {
- namespace ::com::sun::star::sdbc = ::com::sun::star::sdbc;
- namespace ::com::sun::star::beans = ::com::sun::star::beans;
- namespace ::com::sun::star::util = ::com::sun::star::util;
-
- class ODatabaseMetaDataResultSetMetaData;
- typedef ::cppu::WeakComponentImplHelper7< ::com::sun::star::sdbc::XResultSet,
- ::com::sun::star::sdbc::XRow,
- ::com::sun::star::sdbc::XResultSetMetaDataSupplier,
- ::com::sun::star::util::XCancellable,
- ::com::sun::star::sdbc::XWarningsSupplier,
- ::com::sun::star::sdbc::XCloseable,
- ::com::sun::star::sdbc::XColumnLocate> ODatabaseMetaDataResultSet_BASE;
-
- DECLARE_STL_VECTOR(::com::sun::star::uno::Any,ORow);
- DECLARE_STL_VECTOR(ORow, ORows);
-
- class ODatabaseMetaDataResultSet : public comphelper::OBaseMutex,
- public ODatabaseMetaDataResultSet_BASE,
- public ::comphelper::OPropertyContainer,
- public ::comphelper::OPropertyArrayUsageHelper<ODatabaseMetaDataResultSet>
- {
-
-
- ORows m_aRows;
- ORowsIterator m_aRowsIter;
- ::com::sun::star::uno::WeakReferenceHelper
- m_aStatement;
- ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XResultSetMetaData>
- m_xMetaData;
- sal_Int32 m_nRowPos;
- sal_Int32 m_nColPos;
-
- sal_Int32 m_nFetchSize;
- sal_Int32 m_nResultSetType;
- sal_Int32 m_nFetchDirection;
- sal_Int32 m_nResultSetConcurrency;
-
- sal_Bool m_bWasNull;
- sal_Bool m_bBOF;
-
- void construct();
-
- protected:
-
- // OPropertyArrayUsageHelper
- virtual ::cppu::IPropertyArrayHelper* createArrayHelper( ) const;
- // OPropertySetHelper
- virtual ::cppu::IPropertyArrayHelper & SAL_CALL getInfoHelper();
-
- virtual ~ODatabaseMetaDataResultSet();
- public:
- DECLARE_CTY_DEFAULTS(ODatabaseMetaDataResultSet_BASE);
- // a Constructor, that is needed for when Returning the Object is needed:
- ODatabaseMetaDataResultSet( );
-
-
- void setRows(const ORows& _rRows) { m_aRows = _rRows; }
-
- void setCatalogsMap();
- void setSchemasMap();
- void setColumnPrivilegesMap();
- void setColumnsMap();
- void setTablesMap();
- void setTableTypes();
- void setProcedureColumnsMap();
- void setProceduresMap();
- void setExportedKeysMap();
- void setImportedKeysMap();
- void setPrimaryKeysMap();
- void setIndexInfoMap();
- void setTablePrivilegesMap();
- void setCrossReferenceMap();
- void setTypeInfoMap();
-
- private:
- // ::cppu::OComponentHelper
- virtual void SAL_CALL disposing(void);
- // XInterface
- virtual ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
- virtual void SAL_CALL acquire() throw();
- virtual void SAL_CALL release() throw();
- //XTypeProvider
- virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes( ) throw(::com::sun::star::uno::RuntimeException);
- // XPropertySet
- virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo( ) throw(::com::sun::star::uno::RuntimeException)
- {
- return ::cppu::OPropertySetHelper::createPropertySetInfo(getInfoHelper());
- }
- // XResultSet
- virtual sal_Bool SAL_CALL next( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
- virtual sal_Bool SAL_CALL isBeforeFirst( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
- virtual sal_Bool SAL_CALL isAfterLast( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
- virtual sal_Bool SAL_CALL isFirst( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
- virtual sal_Bool SAL_CALL isLast( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
- virtual void SAL_CALL beforeFirst( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
- virtual void SAL_CALL afterLast( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
- virtual sal_Bool SAL_CALL first( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
- virtual sal_Bool SAL_CALL last( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
- virtual sal_Int32 SAL_CALL getRow( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
- virtual sal_Bool SAL_CALL absolute( sal_Int32 row ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
- virtual sal_Bool SAL_CALL relative( sal_Int32 rows ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
- virtual sal_Bool SAL_CALL previous( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
- virtual void SAL_CALL refreshRow( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
- virtual sal_Bool SAL_CALL rowUpdated( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
- virtual sal_Bool SAL_CALL rowInserted( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
- virtual sal_Bool SAL_CALL rowDeleted( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
- virtual ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL getStatement( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
- // XRow
- virtual sal_Bool SAL_CALL wasNull( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
- virtual ::rtl::OUString SAL_CALL getString( sal_Int32 columnIndex ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
- virtual sal_Bool SAL_CALL getBoolean( sal_Int32 columnIndex ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
- virtual sal_Int8 SAL_CALL getByte( sal_Int32 columnIndex ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
- virtual sal_Int16 SAL_CALL getShort( sal_Int32 columnIndex ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
- virtual sal_Int32 SAL_CALL getInt( sal_Int32 columnIndex ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
- virtual sal_Int64 SAL_CALL getLong( sal_Int32 columnIndex ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
- virtual float SAL_CALL getFloat( sal_Int32 columnIndex ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
- virtual double SAL_CALL getDouble( sal_Int32 columnIndex ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
- virtual ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getBytes( sal_Int32 columnIndex ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
- virtual ::com::sun::star::util::Date SAL_CALL getDate( sal_Int32 columnIndex ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
- virtual ::com::sun::star::util::Time SAL_CALL getTime( sal_Int32 columnIndex ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
- virtual ::com::sun::star::util::DateTime SAL_CALL getTimestamp( sal_Int32 columnIndex ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
- virtual ::com::sun::star::uno::Reference< ::com::sun::star::io::XInputStream > SAL_CALL getBinaryStream( sal_Int32 columnIndex ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
- virtual ::com::sun::star::uno::Reference< ::com::sun::star::io::XInputStream > SAL_CALL getCharacterStream( sal_Int32 columnIndex ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
- virtual ::com::sun::star::uno::Any SAL_CALL getObject( sal_Int32 columnIndex, const ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameAccess >& typeMap ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
- virtual ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XRef > SAL_CALL getRef( sal_Int32 columnIndex ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
- virtual ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XBlob > SAL_CALL getBlob( sal_Int32 columnIndex ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
- virtual ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XClob > SAL_CALL getClob( sal_Int32 columnIndex ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
- virtual ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XArray > SAL_CALL getArray( sal_Int32 columnIndex ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
- // XResultSetMetaDataSupplier
- virtual ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XResultSetMetaData > SAL_CALL getMetaData( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
- // XCancellable
- virtual void SAL_CALL cancel( ) throw(::com::sun::star::uno::RuntimeException);
- // XCloseable
- virtual void SAL_CALL close( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
- // XWarningsSupplier
- virtual ::com::sun::star::uno::Any SAL_CALL getWarnings( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
- virtual void SAL_CALL clearWarnings( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
- // XColumnLocate
- virtual sal_Int32 SAL_CALL findColumn( const ::rtl::OUString& columnName ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
- };
- }
-
-}
-#endif // _CONNECTIVITY_FILE_ADATABASEMETADATARESULTSET_HXX_
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/inc/dbase/DDatabaseMetaDataResultSetMetaData.hxx b/connectivity/source/inc/dbase/DDatabaseMetaDataResultSetMetaData.hxx
deleted file mode 100644
index fb990b1190..0000000000
--- a/connectivity/source/inc/dbase/DDatabaseMetaDataResultSetMetaData.hxx
+++ /dev/null
@@ -1,110 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2000, 2010 Oracle and/or its affiliates.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- * <http://www.openoffice.org/license.html>
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-
-#ifndef _CONNECTIVITY_FILE_ADATABASEMETADATARESULTSETMETADATA_HXX_
-#define _CONNECTIVITY_FILE_ADATABASEMETADATARESULTSETMETADATA_HXX_
-
-#include <com/sun/star/sdbc/XResultSetMetaData.hpp>
-#include <cppuhelper/implbase1.hxx>
-#ifndef _VECTOR_
-#include <vector>
-#endif
-#include "FDatabaseMetaDataResultSet.hxx"
-#include "OColumn.hxx"
-
-namespace connectivity
-{
- namespace file
- {
- //**************************************************************
- //************ Class: ResultSetMetaData
- //**************************************************************
- typedef ::cppu::WeakImplHelper1< ::com::sun::star::sdbc::XResultSetMetaData> ODatabaseMetaResultSetMetaData_BASE;
-
- class ODatabaseMetaDataResultSetMetaData : public ODatabaseMetaResultSetMetaData_BASE
- {
- friend class ODatabaseMetaDataResultSet;
-
- ::std::vector<sal_Int32> m_vMapping; // when not every column is needed
- ::std::map<sal_Int32,connectivity::OColumn> m_mColumns;
- ::std::map<sal_Int32,connectivity::OColumn>::const_iterator m_mColumnsIter;
-
- sal_Int32 m_nColCount;
-
- protected:
- void setColumnPrivilegesMap();
- void setColumnsMap();
- void setTablesMap();
- void setProcedureColumnsMap();
- void setPrimaryKeysMap();
- void setIndexInfoMap();
- void setTablePrivilegesMap();
- void setCrossReferenceMap();
- void setTypeInfoMap();
- void setProceduresMap();
- void setTableTypes();
- public:
- // a Constructor, that is needed for when Returning the Object is needed:
- ODatabaseMetaDataResultSetMetaData( ODatabaseMetaDataResultSet* _pRes)
- : m_nColCount(0)
- {
- }
- ~ODatabaseMetaDataResultSetMetaData();
-
- /// Avoid ambigous cast error from the compiler.
- inline operator ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XResultSetMetaData > () throw()
- { return this; }
-
- virtual sal_Int32 SAL_CALL getColumnCount( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
- virtual sal_Bool SAL_CALL isAutoIncrement( sal_Int32 column ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
- virtual sal_Bool SAL_CALL isCaseSensitive( sal_Int32 column ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
- virtual sal_Bool SAL_CALL isSearchable( sal_Int32 column ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
- virtual sal_Bool SAL_CALL isCurrency( sal_Int32 column ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
- virtual sal_Int32 SAL_CALL isNullable( sal_Int32 column ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
- virtual sal_Bool SAL_CALL isSigned( sal_Int32 column ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
- virtual sal_Int32 SAL_CALL getColumnDisplaySize( sal_Int32 column ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
- virtual ::rtl::OUString SAL_CALL getColumnLabel( sal_Int32 column ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
- virtual ::rtl::OUString SAL_CALL getColumnName( sal_Int32 column ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
- virtual ::rtl::OUString SAL_CALL getSchemaName( sal_Int32 column ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
- virtual sal_Int32 SAL_CALL getPrecision( sal_Int32 column ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
- virtual sal_Int32 SAL_CALL getScale( sal_Int32 column ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
- virtual ::rtl::OUString SAL_CALL getTableName( sal_Int32 column ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
- virtual ::rtl::OUString SAL_CALL getCatalogName( sal_Int32 column ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
- virtual sal_Int32 SAL_CALL getColumnType( sal_Int32 column ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
- virtual ::rtl::OUString SAL_CALL getColumnTypeName( sal_Int32 column ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
- virtual sal_Bool SAL_CALL isReadOnly( sal_Int32 column ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
- virtual sal_Bool SAL_CALL isWritable( sal_Int32 column ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
- virtual sal_Bool SAL_CALL isDefinitelyWritable( sal_Int32 column ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
- virtual ::rtl::OUString SAL_CALL getColumnServiceName( sal_Int32 column ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
- };
- }
-}
-#endif // _CONNECTIVITY_FILE_ADATABASEMETARESULTSETMETADATA_HXX_
-
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/inc/dbase/DDriver.hxx b/connectivity/source/inc/dbase/DDriver.hxx
deleted file mode 100644
index a4ac77d24a..0000000000
--- a/connectivity/source/inc/dbase/DDriver.hxx
+++ /dev/null
@@ -1,63 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2000, 2010 Oracle and/or its affiliates.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- * <http://www.openoffice.org/license.html>
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-
-#ifndef _CONNECTIVITY_DBASE_DDRIVER_HXX_
-#define _CONNECTIVITY_DBASE_DDRIVER_HXX_
-
-#include <cppuhelper/compbase2.hxx>
-#include "connectivity/CommonTools.hxx"
-#include "file/FDriver.hxx"
-
-namespace connectivity
-{
- namespace dbase
- {
-
- ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL ODriver_CreateInstance(const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& _rxFactory) throw( ::com::sun::star::uno::Exception );
-
- class ODriver : public file::OFileDriver
- {
- public:
- ODriver(const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& _rxFactory) : file::OFileDriver(_rxFactory){}
-
- // XInterface
- static ::rtl::OUString getImplementationName_Static( ) throw(::com::sun::star::uno::RuntimeException);
- // static ::com::sun::star::uno::Sequence< ::rtl::OUString > getSupportedServiceNames_Static( ) throw (::com::sun::star::uno::RuntimeException);
-
- ::rtl::OUString SAL_CALL getImplementationName( ) throw(::com::sun::star::uno::RuntimeException);
- // XDriver
- virtual ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection > SAL_CALL connect( const ::rtl::OUString& url, const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& info ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
- virtual sal_Bool SAL_CALL acceptsURL( const ::rtl::OUString& url ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
- virtual ::com::sun::star::uno::Sequence< ::com::sun::star::sdbc::DriverPropertyInfo > SAL_CALL getPropertyInfo( const ::rtl::OUString& url, const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& info ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
- };
- }
-
-}
-#endif //_CONNECTIVITY_DBASE_DDRIVER_HXX_
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/inc/dbase/DIndex.hxx b/connectivity/source/inc/dbase/DIndex.hxx
deleted file mode 100644
index 0576e84085..0000000000
--- a/connectivity/source/inc/dbase/DIndex.hxx
+++ /dev/null
@@ -1,162 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2000, 2010 Oracle and/or its affiliates.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- * <http://www.openoffice.org/license.html>
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-
-#ifndef _CONNECTIVITY_DBASE_INDEX_HXX_
-#define _CONNECTIVITY_DBASE_INDEX_HXX_
-
-#include "connectivity/sdbcx/VIndex.hxx"
-#include <com/sun/star/lang/XUnoTunnel.hpp>
-#include "dbase/DTable.hxx"
-#include "dbase/dindexnode.hxx"
-
-#define dBASE_III_GROUP "dBase III"
-
-namespace connectivity
-{
- namespace dbase
- {
- class OIndexIterator;
- class ONDXKey;
-
- typedef sdbcx::OIndex ODbaseIndex_BASE;
- typedef file::OBoolOperator OBoolOperator_BASE;
- typedef file::OOperand OOperand_BASE;
-
- class ODbaseIndex : public ODbaseIndex_BASE
- {
- friend SvStream& operator << (SvStream &rStream, ODbaseIndex&);
- friend SvStream& operator >> (SvStream &rStream, ODbaseIndex&);
-
- friend class ONDXNode;
- friend class ONDXPage;
- friend class ONDXPagePtr;
- friend class OIndexIterator;
-
- public:
- //==================================================================
- // Kopfsatz-Struktur, verbleibt im Speicher
- //==================================================================
- struct NDXHeader
- {
- sal_uInt32 db_rootpage; /* Position der Rootpage */
- sal_uInt32 db_pagecount; /* Anzahl Pages */
- sal_uInt8 db_frei[4]; /* reserviert */
- sal_uInt16 db_keylen; /* Laenge des Schluessels */
- sal_uInt16 db_maxkeys; /* Max. # keys pro Seite */
- sal_uInt16 db_keytype; /* Art des Schluessels
- (0-Text)
- (1-Numerisch) */
- sal_uInt16 db_keyrec; /* Laenge eines IndexSatzes
- SatzNr + keylen */
- sal_uInt8 db_frei1[3]; /* reserviert */
- sal_uInt8 db_unique; /* eindeutig */
- char db_name[488]; /* index_name (Feldname) */
- };
-
- private:
- SvStream* m_pFileStream; // Stream zum Lesen/Schreiben des Index
- NDXHeader m_aHeader;
- ONDXPageList m_aCollector; // Pool von nicht mehr benoetigten Seiten
- ONDXPagePtr m_aRoot, // Wurzel des b+ Baums
- m_aCurLeaf; // aktuelles Blatt
- sal_uInt16 m_nCurNode; // Position des aktuellen Knoten
-
- sal_uInt32 m_nPageCount,
- m_nRootPage;
-
- ODbaseTable* m_pTable;
- sal_Bool m_bUseCollector : 1; // Verwenden des GarbageCollectors
-
- ::rtl::OUString getCompletePath();
- void closeImpl();
- /* closes and kill the index file and throws an error.
- */
- void impl_killFileAndthrowError_throw(sal_uInt16 _nErrorId,const ::rtl::OUString& _sFile);
- protected:
- virtual ~ODbaseIndex();
- public:
- ODbaseIndex(ODbaseTable* _pTable);
- ODbaseIndex(ODbaseTable* _pTable,const NDXHeader& _aHeader,const ::rtl::OUString& _Name);
-
- sal_Bool openIndexFile();
- virtual void refreshColumns();
-
- // com::sun::star::lang::XUnoTunnel
- virtual sal_Int64 SAL_CALL getSomething( const com::sun::star::uno::Sequence< sal_Int8 >& aIdentifier ) throw(com::sun::star::uno::RuntimeException);
- static com::sun::star::uno::Sequence< sal_Int8 > getUnoTunnelImplementationId();
-
- virtual void SAL_CALL acquire() throw();
- virtual void SAL_CALL release() throw();
-
- const ODbaseTable* getTable() const { return m_pTable; }
- const NDXHeader& getHeader() const { return m_aHeader; }
- virtual OIndexIterator* createIterator(OBoolOperator_BASE* pOp,
- const OOperand_BASE* pOperand = NULL);
-
- void SetRootPos(sal_uInt32 nPos) {m_nRootPage = nPos;}
- void SetPageCount(sal_uInt32 nCount) {m_nPageCount = nCount;}
-
- sal_uInt32 GetRootPos() {return m_nRootPage;}
- sal_uInt32 GetPageCount() {return m_nPageCount;}
-
- sal_Bool IsText() const {return m_aHeader.db_keytype == 0;}
- sal_uInt16 GetMaxNodes() const {return m_aHeader.db_maxkeys;}
-
- virtual sal_Bool Insert(sal_uInt32 nRec, const ORowSetValue& rValue);
- virtual sal_Bool Update(sal_uInt32 nRec, const ORowSetValue&, const ORowSetValue&);
- virtual sal_Bool Delete(sal_uInt32 nRec, const ORowSetValue& rValue);
- virtual sal_Bool Find(sal_uInt32 nRec, const ORowSetValue& rValue);
-
- void createINFEntry();
- sal_Bool CreateImpl();
- sal_Bool DropImpl();
-
- DECLARE_SERVICE_INFO();
- protected:
-
- ONDXPage* CreatePage(sal_uInt32 nPagePos, ONDXPage* pParent = NULL, sal_Bool bLoad = sal_False);
- void Collect(ONDXPage*);
- ONDXPagePtr getRoot();
-
- sal_Bool isUnique() const { return m_IsUnique; }
- sal_Bool UseCollector() const {return m_bUseCollector;}
- // Tree operationen
- void Insert(ONDXPagePtr aCurPage, ONDXNode& rNode);
- void Release(sal_Bool bSave = sal_True);
- sal_Bool ConvertToKey(ONDXKey* rKey, sal_uInt32 nRec, const ORowSetValue& rValue);
- };
-
- SvStream& operator << (SvStream &rStream, ODbaseIndex&);
- SvStream& operator >> (SvStream &rStream, ODbaseIndex&);
- }
-}
-
-#endif // _CONNECTIVITY_DBASE_INDEX_HXX_
-
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/inc/dbase/DIndexColumns.hxx b/connectivity/source/inc/dbase/DIndexColumns.hxx
deleted file mode 100644
index 247c878580..0000000000
--- a/connectivity/source/inc/dbase/DIndexColumns.hxx
+++ /dev/null
@@ -1,62 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2000, 2010 Oracle and/or its affiliates.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- * <http://www.openoffice.org/license.html>
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-
-#ifndef _CONNECTIVITY_DBASE_INDEXCOLUMNS_HXX_
-#define _CONNECTIVITY_DBASE_INDEXCOLUMNS_HXX_
-
-#include "connectivity/sdbcx/VCollection.hxx"
-#include "dbase/DIndex.hxx"
-#include "dbase/DTable.hxx"
-
-namespace connectivity
-{
- namespace dbase
- {
- class ODbaseIndexColumns : public sdbcx::OCollection
- {
- ODbaseIndex* m_pIndex;
- protected:
- virtual sdbcx::ObjectType createObject(const ::rtl::OUString& _rName);
- virtual void impl_refresh() throw(::com::sun::star::uno::RuntimeException);
- virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > createDescriptor();
- virtual sdbcx::ObjectType appendObject( const ::rtl::OUString& _rForName, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >& descriptor );
- public:
- ODbaseIndexColumns( ODbaseIndex* _pIndex,
- ::osl::Mutex& _rMutex,
- const TStringVector &_rVector)
- : sdbcx::OCollection(*_pIndex,_pIndex->getTable()->getConnection()->getMetaData()->supportsMixedCaseQuotedIdentifiers(),_rMutex,_rVector)
- , m_pIndex(_pIndex)
- {}
-
- };
- }
-}
-#endif // _CONNECTIVITY_DBASE_INDEXCOLUMNS_HXX_
-
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/inc/dbase/DIndexIter.hxx b/connectivity/source/inc/dbase/DIndexIter.hxx
deleted file mode 100644
index 81ff212d4d..0000000000
--- a/connectivity/source/inc/dbase/DIndexIter.hxx
+++ /dev/null
@@ -1,87 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2000, 2010 Oracle and/or its affiliates.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- * <http://www.openoffice.org/license.html>
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-
-#ifndef _CONNECTIVITY_DBASE_INDEXITER_HXX_
-#define _CONNECTIVITY_DBASE_INDEXITER_HXX_
-
-#include "file/fcode.hxx"
-#include "dbase/DIndex.hxx"
-#include "dbase/dindexnode.hxx"
-
-namespace connectivity
-{
- namespace dbase
- {
- //==================================================================
- // IndexIterator
- //==================================================================
- class OIndexIterator
- {
- protected:
- file::OBoolOperator* m_pOperator;
- const file::OOperand* m_pOperand;
- ODbaseIndex* m_pIndex;
- ONDXPagePtr m_aRoot,
- m_aCurLeaf;
- sal_uInt16 m_nCurNode;
-
- protected:
- sal_uIntPtr Find(sal_Bool bFirst);
- sal_uIntPtr GetCompare(sal_Bool bFirst);
- sal_uIntPtr GetLike(sal_Bool bFirst);
- sal_uIntPtr GetNull(sal_Bool bFirst);
- sal_uIntPtr GetNotNull(sal_Bool bFirst);
-
- ONDXKey* GetFirstKey(ONDXPage* pPage,
- const file::OOperand& rKey);
- ONDXKey* GetNextKey();
- ODbaseIndex* GetIndex() const {return m_pIndex;}
-
-
- public:
- OIndexIterator(ODbaseIndex* pInd,
- file::OBoolOperator* pOp,
- const file::OOperand* pOper)
- :m_pOperator(pOp)
- ,m_pOperand(pOper)
- ,m_pIndex(pInd)
- ,m_nCurNode(NODE_NOTFOUND)
- {
- pInd->acquire();
- }
-
- virtual ~OIndexIterator();
- sal_uIntPtr First();
- sal_uIntPtr Next();
-
- };
- }
-}
-#endif // _CONNECTIVITY_DBASE_INDEXITER_HXX_
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/inc/dbase/DIndexPage.hxx b/connectivity/source/inc/dbase/DIndexPage.hxx
deleted file mode 100644
index 2e693765ca..0000000000
--- a/connectivity/source/inc/dbase/DIndexPage.hxx
+++ /dev/null
@@ -1,38 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2000, 2010 Oracle and/or its affiliates.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- * <http://www.openoffice.org/license.html>
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-
-#ifndef _CONNECTIVITY_DBASE_INDEXPAGE_HXX_
-#define _CONNECTIVITY_DBASE_INDEXPAGE_HXX_
-
-#include <rtl/ref.hxx>
-#include <tools/stream.hxx>
-#include <vector>
-
-#endif // _CONNECTIVITY_DBASE_INDEXPAGE_HXX_
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/inc/dbase/DIndexes.hxx b/connectivity/source/inc/dbase/DIndexes.hxx
deleted file mode 100644
index c29130d840..0000000000
--- a/connectivity/source/inc/dbase/DIndexes.hxx
+++ /dev/null
@@ -1,63 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2000, 2010 Oracle and/or its affiliates.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- * <http://www.openoffice.org/license.html>
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-
-#ifndef _CONNECTIVITY_DBASE_INDEXES_HXX_
-#define _CONNECTIVITY_DBASE_INDEXES_HXX_
-
-#include "connectivity/sdbcx/VCollection.hxx"
-#include "dbase/DTable.hxx"
-
-namespace connectivity
-{
- namespace dbase
- {
- class ODbaseTable;
-
- typedef sdbcx::OCollection ODbaseIndexes_BASE;
-
- class ODbaseIndexes : public ODbaseIndexes_BASE
- {
- ODbaseTable* m_pTable;
- protected:
- virtual sdbcx::ObjectType createObject(const ::rtl::OUString& _rName);
- virtual void impl_refresh() throw(::com::sun::star::uno::RuntimeException);
- virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > createDescriptor();
- virtual sdbcx::ObjectType appendObject( const ::rtl::OUString& _rForName, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >& descriptor );
- virtual void dropObject(sal_Int32 _nPos,const ::rtl::OUString _sElementName);
- public:
- ODbaseIndexes(ODbaseTable* _pTable, ::osl::Mutex& _rMutex,
- const TStringVector &_rVector) : ODbaseIndexes_BASE(*_pTable,_pTable->getConnection()->getMetaData()->supportsMixedCaseQuotedIdentifiers(),_rMutex,_rVector)
- , m_pTable(_pTable)
- {}
-
- };
- }
-}
-#endif // _CONNECTIVITY_DBASE_INDEXES_HXX_
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/inc/dbase/DPreparedStatement.hxx b/connectivity/source/inc/dbase/DPreparedStatement.hxx
deleted file mode 100644
index beaec2e58e..0000000000
--- a/connectivity/source/inc/dbase/DPreparedStatement.hxx
+++ /dev/null
@@ -1,52 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2000, 2010 Oracle and/or its affiliates.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- * <http://www.openoffice.org/license.html>
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-
-#ifndef _CONNECTIVITY_DBASE_DPREPAREDSTATEMENT_HXX_
-#define _CONNECTIVITY_DBASE_DPREPAREDSTATEMENT_HXX_
-
-#include "file/FPreparedStatement.hxx"
-
-namespace connectivity
-{
- namespace dbase
- {
- class OConnection;
- class ODbasePreparedStatement : public file::OPreparedStatement
- {
- protected:
- virtual file::OResultSet* createResultSet();
- public:
- ODbasePreparedStatement( file::OConnection* _pConnection) : file::OPreparedStatement( _pConnection){}
- DECLARE_SERVICE_INFO();
- };
- }
-}
-
-#endif //_CONNECTIVITY_DBASE_DPREPAREDSTATEMENT_HXX_
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/inc/dbase/DResultSet.hxx b/connectivity/source/inc/dbase/DResultSet.hxx
deleted file mode 100644
index 9b2837916c..0000000000
--- a/connectivity/source/inc/dbase/DResultSet.hxx
+++ /dev/null
@@ -1,92 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2000, 2010 Oracle and/or its affiliates.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- * <http://www.openoffice.org/license.html>
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-#ifndef _CONNECTIVITY_DBASE_DRESULTSET_HXX_
-#define _CONNECTIVITY_DBASE_DRESULTSET_HXX_
-
-#include "file/FResultSet.hxx"
-#include <com/sun/star/sdbcx/XRowLocate.hpp>
-#include <com/sun/star/sdbcx/XDeleteRows.hpp>
-#include <cppuhelper/implbase2.hxx>
-
-namespace connectivity
-{
- namespace dbase
- {
- class ODbaseResultSet;
- // these typedef's are only necessary for the compiler
- typedef ::cppu::ImplHelper2< ::com::sun::star::sdbcx::XRowLocate,
- ::com::sun::star::sdbcx::XDeleteRows> ODbaseResultSet_BASE;
- typedef file::OResultSet ODbaseResultSet_BASE2;
- typedef ::comphelper::OPropertyArrayUsageHelper<ODbaseResultSet> ODbaseResultSet_BASE3;
-
-
- class ODbaseResultSet : public ODbaseResultSet_BASE2,
- public ODbaseResultSet_BASE,
- public ODbaseResultSet_BASE3
- {
- sal_Bool m_bBookmarkable;
- protected:
- // OPropertyArrayUsageHelper
- virtual ::cppu::IPropertyArrayHelper* createArrayHelper() const;
- // OPropertySetHelper
- virtual ::cppu::IPropertyArrayHelper & SAL_CALL getInfoHelper();
- virtual sal_Bool fillIndexValues(const ::com::sun::star::uno::Reference< ::com::sun::star::sdbcx::XColumnsSupplier> &_xIndex);
- virtual file::OSQLAnalyzer* createAnalyzer();
- public:
- DECLARE_SERVICE_INFO();
-
- ODbaseResultSet( file::OStatement_Base* pStmt,connectivity::OSQLParseTreeIterator& _aSQLIterator);
-
- // XInterface
- virtual ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
- virtual void SAL_CALL acquire() throw();
- virtual void SAL_CALL release() throw();
- //XTypeProvider
- virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes( ) throw(::com::sun::star::uno::RuntimeException);
- // XPropertySet
- virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo( ) throw(::com::sun::star::uno::RuntimeException);
-
- // XRowLocate
- virtual ::com::sun::star::uno::Any SAL_CALL getBookmark( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
- virtual sal_Bool SAL_CALL moveToBookmark( const ::com::sun::star::uno::Any& bookmark ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
- virtual sal_Bool SAL_CALL moveRelativeToBookmark( const ::com::sun::star::uno::Any& bookmark, sal_Int32 rows ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
- virtual sal_Int32 SAL_CALL compareBookmarks( const ::com::sun::star::uno::Any& first, const ::com::sun::star::uno::Any& second ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
- virtual sal_Bool SAL_CALL hasOrderedBookmarks( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
- virtual sal_Int32 SAL_CALL hashBookmark( const ::com::sun::star::uno::Any& bookmark ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
- // XDeleteRows
- virtual ::com::sun::star::uno::Sequence< sal_Int32 > SAL_CALL deleteRows( const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any >& rows ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
-
- // own methods
- sal_Int32 getCurrentFilePos() const;
-
- };
- }
-}
-#endif //_CONNECTIVITY_DBASE_DRESULTSET_HXX_
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/inc/dbase/DStatement.hxx b/connectivity/source/inc/dbase/DStatement.hxx
deleted file mode 100644
index edb8c0310c..0000000000
--- a/connectivity/source/inc/dbase/DStatement.hxx
+++ /dev/null
@@ -1,52 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2000, 2010 Oracle and/or its affiliates.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- * <http://www.openoffice.org/license.html>
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-
-#ifndef _CONNECTIVITY_DBASE_DSTATEMENT_HXX_
-#define _CONNECTIVITY_DBASE_DSTATEMENT_HXX_
-
-#include "file/FStatement.hxx"
-
-namespace connectivity
-{
- namespace dbase
- {
- class OConnection;
- class ODbaseStatement : public file::OStatement
- {
- protected:
- virtual file::OResultSet* createResultSet();
- public:
- ODbaseStatement( file::OConnection* _pConnection) : file::OStatement( _pConnection){}
- DECLARE_SERVICE_INFO();
- };
- }
-}
-
-#endif //_CONNECTIVITY_DBASE_DSTATEMENT_HXX_
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/inc/dbase/DTable.hxx b/connectivity/source/inc/dbase/DTable.hxx
deleted file mode 100644
index 7f5e59bf6c..0000000000
--- a/connectivity/source/inc/dbase/DTable.hxx
+++ /dev/null
@@ -1,187 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2000, 2010 Oracle and/or its affiliates.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- * <http://www.openoffice.org/license.html>
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-
-#ifndef _CONNECTIVITY_DBASE_TABLE_HXX_
-#define _CONNECTIVITY_DBASE_TABLE_HXX_
-
-#include "file/FTable.hxx"
-#include "connectivity/sdbcx/VColumn.hxx"
-#include "connectivity/CommonTools.hxx"
-#include <tools/urlobj.hxx>
-
-
-namespace connectivity
-{
- namespace dbase
- {
- typedef file::OFileTable ODbaseTable_BASE;
- class ODbaseConnection;
-
- typedef ::std::map< ::rtl::OUString,
- ::com::sun::star::uno::Reference< ::com::sun::star::container::XNamed>, comphelper::UStringMixLess > OContainer;
-
- class ODbaseTable : public ODbaseTable_BASE
- {
- // der Typ einer dBase datei wird mit dem ersten Byte bestimmt
- public:
- enum DBFType { dBaseIII = 0x03,
- dBaseIV = 0x04,
- dBaseV = 0x05,
- VisualFoxPro = 0x30,
- VisualFoxProAuto = 0x31, // Visual FoxPro w. AutoIncrement field
- dBaseFS = 0x43,
- dBaseFSMemo = 0xB3,
- dBaseIIIMemo = 0x83,
- dBaseIVMemo = 0x8B,
- dBaseIVMemoSQL = 0x8E,
- FoxProMemo = 0xF5
- };
- enum DBFMemoType { MemodBaseIII = 0,
- MemodBaseIV,
- MemoFoxPro
- };
-
- private:
- struct DBFHeader { /* Kopfsatz-Struktur */
- DBFType db_typ; /* Dateityp */
- sal_uInt8 db_aedat[3]; /* Datum der letzen Aenderung */
- /* JJ MM TT */
- sal_uInt32 db_anz; /* Anzahl der Saetze */
- sal_uInt16 db_kopf; /* laenge Kopfsatz-Struktur */
- sal_uInt16 db_slng; /* laenge der Daten-Saetze */
- sal_uInt8 db_frei[20]; /* reserviert */
- };
- struct DBFColumn { /* Feldbezeichner */
- sal_uInt8 db_fnm[11]; /* Feldname */
- sal_uInt8 db_typ; /* Feldtyp */
- sal_uInt32 db_adr; /* Feldadresse */
- sal_uInt8 db_flng; /* Feldlaenge */
- sal_uInt8 db_dez; /* Dezimalstellen fuer N */
- sal_uInt8 db_frei2[14]; /* reserviert */
- };
- struct DBFMemoHeader
- {
- DBFMemoType db_typ; /* Dateityp */
- sal_uInt32 db_next; /* naechster freier Block */
- sal_uInt16 db_size; /* Blockgroesse: dBase 3 fest */
- };
-
- ::std::vector<sal_Int32> m_aTypes; // holds all type for columns just to avoid to ask the propertyset
- ::std::vector<sal_Int32> m_aPrecisions; // same as aboth
- ::std::vector<sal_Int32> m_aScales;
- ::std::vector<sal_Int32> m_aRealFieldLengths;
- DBFHeader m_aHeader;
- DBFMemoHeader m_aMemoHeader;
- SvStream* m_pMemoStream;
- rtl_TextEncoding m_eEncoding;
- sal_Bool m_bWriteableMemo;
-
- void alterColumn(sal_Int32 index,
- const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet>& descriptor ,
- const ::com::sun::star::uno::Reference< ::com::sun::star::sdbcx::XDataDescriptorFactory>& xOldColumn );
- void readHeader();
- void fillColumns();
- String createTempFile();
- void copyData(ODbaseTable* _pNewTable,sal_Int32 _nPos);
- sal_Bool CreateFile(const INetURLObject& aFile, sal_Bool& bCreateMemo);
- sal_Bool CreateMemoFile(const INetURLObject& aFile);
- sal_Bool HasMemoFields() const { return m_aHeader.db_typ > dBaseIV;}
- sal_Bool ReadMemoHeader();
- sal_Bool ReadMemo(sal_uIntPtr nBlockNo, ORowSetValue& aVariable);
-
- sal_Bool WriteMemo(ORowSetValue& aVariable, sal_uIntPtr& rBlockNr);
- sal_Bool WriteBuffer();
- sal_Bool UpdateBuffer(OValueRefVector& rRow, OValueRefRow pOrgRow,const ::com::sun::star::uno::Reference< ::com::sun::star::container::XIndexAccess>& _xCols);
- ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet> isUniqueByColumnName(sal_Int32 _nColumnPos);
- void AllocBuffer();
-
- void throwInvalidDbaseFormat();
- void SAL_CALL renameImpl( const ::rtl::OUString& newName ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::container::ElementExistException, ::com::sun::star::uno::RuntimeException);
- void throwInvalidColumnType(const sal_uInt16 _nErrorId,const ::rtl::OUString& _sColumnName);
-
- protected:
- virtual void FileClose();
-// using ::connectivity::sdbcx::OTableDescriptor_BASE::rBHelper;
-
- public:
- virtual void refreshColumns();
- virtual void refreshIndexes();
-
- public:
- ODbaseTable( sdbcx::OCollection* _pTables,ODbaseConnection* _pConnection);
- ODbaseTable( sdbcx::OCollection* _pTables,ODbaseConnection* _pConnection,
- const ::rtl::OUString& _Name,
- const ::rtl::OUString& _Type,
- const ::rtl::OUString& _Description = ::rtl::OUString(),
- const ::rtl::OUString& _SchemaName = ::rtl::OUString(),
- const ::rtl::OUString& _CatalogName = ::rtl::OUString()
- );
-
- void construct(); // can throw any exception
-
- virtual sal_Int32 getCurrentLastPos() const;
- virtual sal_Bool seekRow(IResultSetHelper::Movement eCursorPosition, sal_Int32 nOffset, sal_Int32& nCurPos);
- virtual sal_Bool fetchRow(OValueRefRow& _rRow,const OSQLColumns& _rCols, sal_Bool _bUseTableDefs,sal_Bool bRetrieveData);
-
- virtual ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
- //XTypeProvider
- virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes( ) throw(::com::sun::star::uno::RuntimeException);
- virtual void SAL_CALL disposing(void);
-
- // com::sun::star::lang::XUnoTunnel
- virtual sal_Int64 SAL_CALL getSomething( const ::com::sun::star::uno::Sequence< sal_Int8 >& aIdentifier ) throw(::com::sun::star::uno::RuntimeException);
- static ::com::sun::star::uno::Sequence< sal_Int8 > getUnoTunnelImplementationId();
- // XAlterTable
- virtual void SAL_CALL alterColumnByName( const ::rtl::OUString& colName, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >& descriptor ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::container::NoSuchElementException, ::com::sun::star::uno::RuntimeException);
- virtual void SAL_CALL alterColumnByIndex( sal_Int32 index, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >& descriptor ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException);
- // XRename
- virtual void SAL_CALL rename( const ::rtl::OUString& newName ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::container::ElementExistException, ::com::sun::star::uno::RuntimeException);
-
- sal_Bool DropImpl();
- sal_Bool CreateImpl();
-
-
- virtual sal_Bool InsertRow(OValueRefVector& rRow, sal_Bool bFlush,const ::com::sun::star::uno::Reference< ::com::sun::star::container::XIndexAccess>& _xCols);
- virtual sal_Bool DeleteRow(const OSQLColumns& _rCols);
- virtual sal_Bool UpdateRow(OValueRefVector& rRow, OValueRefRow& pOrgRow,const ::com::sun::star::uno::Reference< ::com::sun::star::container::XIndexAccess>& _xCols);
-
- virtual void addColumn(const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet>& descriptor);
- virtual void dropColumn(sal_Int32 _nPos);
-
- static String getEntry(file::OConnection* _pConnection,const ::rtl::OUString& _sURL );
- static sal_Bool Drop_Static(const ::rtl::OUString& _sUrl,sal_Bool _bHasMemoFields,sdbcx::OCollection* _pIndexes );
-
- virtual void refreshHeader();
-
- virtual ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XDatabaseMetaData> getMetaData() const;
- };
- }
-}
-#endif // _CONNECTIVITY_DBASE_TABLE_HXX_
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/inc/dbase/DTables.hxx b/connectivity/source/inc/dbase/DTables.hxx
deleted file mode 100644
index 29f10222d9..0000000000
--- a/connectivity/source/inc/dbase/DTables.hxx
+++ /dev/null
@@ -1,60 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2000, 2010 Oracle and/or its affiliates.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- * <http://www.openoffice.org/license.html>
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-
-#ifndef _CONNECTIVITY_DBASE_TABLES_HXX_
-#define _CONNECTIVITY_DBASE_TABLES_HXX_
-
-#include "file/FTables.hxx"
-
-namespace connectivity
-{
- namespace dbase
- {
- // namespace ::com::sun::star::sdbcx = ::com::sun::star::sdbcx;
- typedef file::OTables ODbaseTables_BASE;
-
- class ODbaseTables : public ODbaseTables_BASE
- {
- protected:
- virtual sdbcx::ObjectType createObject(const ::rtl::OUString& _rName);
- virtual void impl_refresh() throw(::com::sun::star::uno::RuntimeException);
- virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > createDescriptor();
- virtual sdbcx::ObjectType appendObject( const ::rtl::OUString& _rForName, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >& descriptor );
- virtual void dropObject(sal_Int32 _nPos,const ::rtl::OUString _sElementName);
- public:
- ODbaseTables(const ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XDatabaseMetaData >& _rMetaData,::cppu::OWeakObject& _rParent, ::osl::Mutex& _rMutex,
- const TStringVector &_rVector) : ODbaseTables_BASE(_rMetaData,_rParent,_rMutex,_rVector)
- {}
-
- virtual ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
- };
- }
-}
-#endif // _CONNECTIVITY_DBASE_TABLES_HXX_
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/inc/dbase/dindexnode.hxx b/connectivity/source/inc/dbase/dindexnode.hxx
deleted file mode 100644
index af5284ca28..0000000000
--- a/connectivity/source/inc/dbase/dindexnode.hxx
+++ /dev/null
@@ -1,349 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2000, 2010 Oracle and/or its affiliates.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- * <http://www.openoffice.org/license.html>
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-#ifndef _CONNECTIVITY_DBASE_INDEXNODE_HXX_
-#define _CONNECTIVITY_DBASE_INDEXNODE_HXX_
-
-#include "file/fcode.hxx"
-#include "file/FTable.hxx"
-#include "dbase/DIndexPage.hxx"
-#include "connectivity/FValue.hxx"
-#include <tools/ref.hxx>
-
-#define NODE_NOTFOUND 0xFFFF
-#define PAGE_SIZE 512
-
-namespace connectivity
-{
- namespace dbase
- {
-
- class ONDXNode;
- class ODbaseIndex;
- //==================================================================
- // Index Key
- //==================================================================
- typedef file::OOperand ONDXKey_BASE;
- class ONDXKey : public ONDXKey_BASE
- {
- friend class ONDXNode;
- sal_uInt32 nRecord; /* Satzzeiger */
- ORowSetValue xValue; /* Schluesselwert */
-
- public:
- ONDXKey(sal_uInt32 nRec=0);
- ONDXKey(const ORowSetValue& rVal, sal_Int32 eType, sal_uInt32 nRec);
- ONDXKey(const rtl::OUString& aStr, sal_uInt32 nRec = 0);
- ONDXKey(double aVal, sal_uInt32 nRec = 0);
-
- inline ONDXKey(const ONDXKey& rKey);
-
- inline ONDXKey& operator= (const ONDXKey& rKey);
- virtual void setValue(const ORowSetValue& _rVal);
-
- virtual const ORowSetValue& getValue() const;
-
- sal_uInt32 GetRecord() const { return nRecord; }
- void setRecord(sal_uInt32 _nRec) { nRecord = _nRec; }
- void ResetRecord() { nRecord = 0; }
-
- sal_Bool operator == (const ONDXKey& rKey) const;
- sal_Bool operator != (const ONDXKey& rKey) const;
- sal_Bool operator < (const ONDXKey& rKey) const;
- sal_Bool operator <= (const ONDXKey& rKey) const;
- sal_Bool operator > (const ONDXKey& rKey) const;
- sal_Bool operator >= (const ONDXKey& rKey) const;
-
- sal_Bool Load (SvFileStream& rStream, sal_Bool bText);
- sal_Bool Write(SvFileStream& rStream, sal_Bool bText);
-
- static sal_Bool IsText(sal_Int32 eType);
-
- private:
- StringCompare Compare(const ONDXKey& rKey) const;
- };
-
-
-
-
- //==================================================================
- // Index Seitenverweis
- //==================================================================
- SV_DECL_REF(ONDXPage) // Basisklasse da weitere Informationen gehalten werden muessen
-
-
- class ONDXPagePtr : public ONDXPageRef
- {
- friend SvStream& operator << (SvStream &rStream, const ONDXPagePtr&);
- friend SvStream& operator >> (SvStream &rStream, ONDXPagePtr&);
-
- sal_uInt32 nPagePos; // Position in der Indexdatei
-
- public:
- ONDXPagePtr(sal_uInt32 nPos = 0):nPagePos(nPos){}
- ONDXPagePtr(const ONDXPagePtr& rRef);
- ONDXPagePtr(ONDXPage* pRefPage);
-
- ONDXPagePtr& operator=(const ONDXPagePtr& rRef);
- ONDXPagePtr& operator=(ONDXPage* pPageRef);
-
- sal_uInt32 GetPagePos() const {return nPagePos;}
- sal_Bool HasPage() const {return nPagePos != 0;}
- // sal_Bool Is() const { return isValid(); }
- };
- //==================================================================
- // Index Seite
- //==================================================================
- class ONDXPage : public SvRefBase
- {
- friend class ODbaseIndex;
-
- friend SvStream& operator << (SvStream &rStream, const ONDXPage&);
- friend SvStream& operator >> (SvStream &rStream, ONDXPage&);
-
- sal_uInt32 nPagePos; // Position in der Indexdatei
- sal_Bool bModified : 1;
- sal_uInt16 nCount;
-
- ONDXPagePtr aParent, // VaterSeite
- aChild; // Zeiger auf rechte ChildPage
- ODbaseIndex& rIndex;
- ONDXNode* ppNodes; // array von Knoten
-
- public:
- // Knoten Operationen
- sal_uInt16 Count() const {return nCount;}
-
- sal_Bool Insert(ONDXNode& rNode, sal_uInt32 nRowsLeft = 0);
- sal_Bool Insert(sal_uInt16 nIndex, ONDXNode& rNode);
- sal_Bool Append(ONDXNode& rNode);
- sal_Bool Delete(sal_uInt16);
- void Remove(sal_uInt16);
- void Release(sal_Bool bSave = sal_True);
- void ReleaseFull(sal_Bool bSave = sal_True);
-
- // Aufteilen und Zerlegen
- ONDXNode Split(ONDXPage& rPage);
- void Merge(sal_uInt16 nParentNodePos, ONDXPagePtr xPage);
-
- // Zugriffsoperationen
- ONDXNode& operator[] (sal_uInt16 nPos);
- const ONDXNode& operator[] (sal_uInt16 nPos) const;
-
- sal_Bool IsRoot() const;
- sal_Bool IsLeaf() const;
- sal_Bool IsModified() const;
- sal_Bool HasParent();
- sal_Bool HasChild() const;
-
- sal_Bool IsFull() const;
-
- sal_uInt32 GetPagePos() const {return nPagePos;}
- ONDXPagePtr& GetChild(ODbaseIndex* pIndex = 0);
-
- // Parent braucht nicht nachgeladen zu werden
- ONDXPagePtr GetParent();
- ODbaseIndex& GetIndex() {return rIndex;}
- const ODbaseIndex& GetIndex() const {return rIndex;}
-
- // Setzen des Childs, ueber Referenz, um die PagePos zu erhalten
- void SetChild(ONDXPagePtr aCh);
- void SetParent(ONDXPagePtr aPa);
-
- sal_uInt16 Search(const ONDXKey& rSearch);
- sal_uInt16 Search(const ONDXPage* pPage);
- void SearchAndReplace(const ONDXKey& rSearch, ONDXKey& rReplace);
-
- protected:
- ONDXPage(ODbaseIndex& rIndex, sal_uInt32 nPos, ONDXPage* = NULL);
- ~ONDXPage();
-
- virtual void QueryDelete();
-
- void SetModified(sal_Bool bMod) {bModified = bMod;}
- void SetPagePos(sal_uInt32 nPage) {nPagePos = nPage;}
-
- sal_Bool Find(const ONDXKey&); // rek. Abstieg
- sal_uInt16 FindPos(const ONDXKey& rKey) const;
-
-#if OSL_DEBUG_LEVEL > 1
- void PrintPage();
-#endif
- };
-
- SV_IMPL_REF(ONDXPage);
-
- SvStream& operator << (SvStream &rStream, const ONDXPagePtr&);
- SvStream& operator >> (SvStream &rStream, ONDXPagePtr&);
-
- inline sal_Bool ONDXPage::IsRoot() const {return !aParent.Is();}
- inline sal_Bool ONDXPage::IsLeaf() const {return !aChild.HasPage();}
- inline sal_Bool ONDXPage::IsModified() const {return bModified;}
- inline sal_Bool ONDXPage::HasParent() {return aParent.Is();}
- inline sal_Bool ONDXPage::HasChild() const {return aChild.HasPage();}
- inline ONDXPagePtr ONDXPage::GetParent() {return aParent;}
-
- inline void ONDXPage::SetParent(ONDXPagePtr aPa = ONDXPagePtr())
- {
- aParent = aPa;
- }
-
- inline void ONDXPage::SetChild(ONDXPagePtr aCh = ONDXPagePtr())
- {
- aChild = aCh;
- if (aChild.Is())
- aChild->SetParent(this);
- }
- SvStream& operator >> (SvStream &rStream, ONDXPage& rPage);
- SvStream& operator << (SvStream &rStream, const ONDXPage& rPage);
-
-
- typedef ::std::vector<ONDXPage*> ONDXPageList;
-
- //==================================================================
- // Index Knoten
- //==================================================================
- class ONDXNode
- {
- friend class ONDXPage;
- ONDXPagePtr aChild; /* naechster Seitenverweis */
- ONDXKey aKey;
-
- public:
- ONDXNode(){}
- ONDXNode(const ONDXKey& rKey,
- ONDXPagePtr aPagePtr = ONDXPagePtr())
- :aChild(aPagePtr),aKey(rKey) {}
-
- // verweist der Knoten auf eine Seite
- sal_Bool HasChild() const {return aChild.HasPage();}
- // Ist ein Index angegeben, kann gegebenfalls die Seite nachgeladen werden
- ONDXPagePtr& GetChild(ODbaseIndex* pIndex = NULL, ONDXPage* = NULL);
-
- const ONDXKey& GetKey() const { return aKey;}
- ONDXKey& GetKey() { return aKey;}
-
- // Setzen des Childs, ueber Referenz, um die PagePos zu erhalten
- void SetChild(ONDXPagePtr aCh = ONDXPagePtr(), ONDXPage* = NULL);
- void SetKey(ONDXKey& rKey) {aKey = rKey;}
-
- void Write(SvStream &rStream, const ONDXPage& rPage) const;
- void Read(SvStream &rStream, ODbaseIndex&);
- };
- //==================================================================
- // inline implementation
- //==================================================================
-// inline ONDXKey::ONDXKey(const ORowSetValue& rVal, sal_Int32 eType, sal_uInt32 nRec)
-// : ONDXKey_BASE(eType)
-// , nRecord(nRec),xValue(rVal)
-// {
-// }
-
-
-// inline ONDXKey::ONDXKey(const rtl::OUString& aStr, sal_uInt32 nRec)
-// : ONDXKey_BASE(::com::sun::star::sdbc::DataType::VARCHAR)
-// ,nRecord(nRec)
-// {
-// if (aStr.len())
-// xValue = aStr;
-// }
-
-// inline ONDXKey::ONDXKey(double aVal, sal_uInt32 nRec)
-// : ONDXKey_BASE(::com::sun::star::sdbc::DataType::DOUBLE)
-// ,nRecord(nRec)
-// ,xValue(aVal)
-// {
-// }
-
-// inline ONDXKey::ONDXKey(sal_uInt32 nRec)
-// :nRecord(nRec)
-// {
-// }
-
- inline ONDXKey::ONDXKey(const ONDXKey& rKey)
- : ONDXKey_BASE(rKey.getDBType())
- ,nRecord(rKey.nRecord)
- ,xValue(rKey.xValue)
- {
- }
-
- inline ONDXKey& ONDXKey::operator=(const ONDXKey& rKey)
- {
- if(&rKey == this)
- return *this;
-
- xValue = rKey.xValue;
- nRecord = rKey.nRecord;
- m_eDBType = rKey.getDBType();
- return *this;
- }
-
- inline sal_Bool ONDXKey::operator == (const ONDXKey& rKey) const
- {
- if(&rKey == this)
- return sal_True;
- return Compare(rKey) == COMPARE_EQUAL;
- }
- inline sal_Bool ONDXKey::operator != (const ONDXKey& rKey) const
- {
- return !operator== (rKey);
- }
- inline sal_Bool ONDXKey::operator < (const ONDXKey& rKey) const
- {
- return Compare(rKey) == COMPARE_LESS;
- }
- inline sal_Bool ONDXKey::operator > (const ONDXKey& rKey) const
- {
- return Compare(rKey) == COMPARE_GREATER;
- }
- inline sal_Bool ONDXKey::operator <= (const ONDXKey& rKey) const
- {
- return !operator > (rKey);
- }
- inline sal_Bool ONDXKey::operator >= (const ONDXKey& rKey) const
- {
- return !operator< (rKey);
- }
-
- inline void ONDXNode::SetChild(ONDXPagePtr aCh, ONDXPage* pParent)
- {
- aChild = aCh;
- if (aChild.Is())
- aChild->SetParent(pParent);
- }
-
- }
-
-}
-
-
-
-
-#endif // _CONNECTIVITY_DBASE_INDEXNODE_HXX_
-
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */