From a465b21ddca95dd7a288808a11a683e6c587fd96 Mon Sep 17 00:00:00 2001 From: Ocke Janssen Date: Thu, 10 May 2001 13:31:14 +0000 Subject: #86724# bookmark fixes --- connectivity/source/inc/file/FResultSet.hxx | 94 +++++++++++++++-------------- 1 file changed, 50 insertions(+), 44 deletions(-) (limited to 'connectivity/source/inc/file/FResultSet.hxx') diff --git a/connectivity/source/inc/file/FResultSet.hxx b/connectivity/source/inc/file/FResultSet.hxx index ff6ab9754026..cca1039f5950 100644 --- a/connectivity/source/inc/file/FResultSet.hxx +++ b/connectivity/source/inc/file/FResultSet.hxx @@ -2,9 +2,9 @@ * * $RCSfile: FResultSet.hxx,v $ * - * $Revision: 1.15 $ + * $Revision: 1.16 $ * - * last change: $Author: oj $ $Date: 2001-05-07 10:37:53 $ + * last change: $Author: oj $ $Date: 2001-05-10 14:31:14 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -113,6 +113,9 @@ #ifndef _COMPHELPER_BROADCASTHELPER_HXX_ #include #endif +#ifndef CONNECTIVITY_STDTYPEDEFS_HXX +#include "connectivity/StdTypeDefs.hxx" +#endif namespace connectivity { @@ -249,61 +252,64 @@ OFILEKeyCompare(const void * elem1, const void * elem2); { protected: - ::std::vector m_aBindVector; - ::std::vector m_aColMapping; // pos 0 is unused so we don't have to decrement 1 everytime - - OValueRow m_aRow; - OValueRow m_aEvaluateRow; // contains all values of a row - OValueRow m_aParameterRow; - OValueRow m_aInsertRow; // needed for insert by cursor - ORefAssignValues m_aAssignValues; // needed for insert,update and parameters + ::std::vector m_aBindVector; + ::std::vector m_aColMapping; // pos 0 is unused so we don't have to decrement 1 everytime + + OValueRow m_aRow; + OValueRow m_aEvaluateRow; // contains all values of a row + OValueRow m_aParameterRow; + OValueRow m_aInsertRow; // needed for insert by cursor + ORefAssignValues m_aAssignValues; // needed for insert,update and parameters // to compare with the restrictions - ::std::vector* m_pEvaluationKeySet; - ::std::vector::iterator m_aEvaluateIter; + TIntVector* m_pEvaluationKeySet; + TIntVector::iterator m_aEvaluateIter; + - ::std::map m_aBookmarkToPos; + TInt2IntMap m_aBookmarks; // map from bookmarks to logical position + ::std::vector m_aBookmarksPositions;// vector of iterators to bookmark map, the order is the logical position - OKeySet* m_pFileSet; - OKeySet::iterator m_aFileSetIter; + OKeySet* m_pFileSet; + OKeySet::iterator m_aFileSetIter; - sal_Int32 m_nOrderbyColumnNumber[SQL_ORDERBYKEYS]; - BOOL bOrderbyAscending[SQL_ORDERBYKEYS]; + sal_Int32 m_nOrderbyColumnNumber[SQL_ORDERBYKEYS]; + BOOL bOrderbyAscending[SQL_ORDERBYKEYS]; - OFILESortIndex* m_pSortIndex; - ::vos::ORef m_xColumns; // this are the select columns - ::vos::ORef m_xParamColumns; - OFileTable* m_pTable; - connectivity::OSQLParseNode* m_pParseTree; + OFILESortIndex* m_pSortIndex; + ::vos::ORef m_xColumns; // this are the select columns + ::vos::ORef m_xParamColumns; + OFileTable* m_pTable; + connectivity::OSQLParseNode* m_pParseTree; - OSQLAnalyzer* m_pSQLAnalyzer; - connectivity::OSQLParseTreeIterator& m_aSQLIterator; + OSQLAnalyzer* m_pSQLAnalyzer; + connectivity::OSQLParseTreeIterator& m_aSQLIterator; - sal_Int32 m_nFetchSize; - sal_Int32 m_nResultSetType; - sal_Int32 m_nFetchDirection; - sal_Int32 m_nResultSetConcurrency; + sal_Int32 m_nFetchSize; + sal_Int32 m_nResultSetType; + sal_Int32 m_nFetchDirection; + sal_Int32 m_nResultSetConcurrency; ::com::sun::star::uno::WeakReferenceHelper m_aStatement; ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XResultSetMetaData> m_xMetaData; ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XDatabaseMetaData> m_xDBMetaData; ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameAccess> m_xColNames; // table columns - ::rtl::OUString m_aTableRange; - rtl_TextEncoding m_nTextEncoding; - sal_Int32 m_nRowPos; - sal_Int32 m_nFilePos; - sal_Int32 m_nLastVisitedPos; - sal_Int32 m_nRowCountResult; - sal_Bool m_bWasNull; - sal_Bool m_bBOF; // before first record - sal_Bool m_bEOF; // after last record - sal_Bool m_bLastRecord; - sal_Bool m_bFileSetFrozen; - sal_Bool m_bInserted; // true when moveToInsertRow was called - // set to false when cursor moved or cancel - sal_Bool m_bRowUpdated; - sal_Bool m_bRowInserted; - sal_Bool m_bRowDeleted; + ::rtl::OUString m_aTableRange; + rtl_TextEncoding m_nTextEncoding; + sal_Int32 m_nRowPos; + sal_Int32 m_nFilePos; + sal_Int32 m_nLastVisitedPos; + sal_Int32 m_nRowCountResult; + sal_Int32 m_nCurrentPosition; // current position of the resultset is returned when ask for getRow() + sal_Bool m_bWasNull; + sal_Bool m_bBOF; // before first record + sal_Bool m_bEOF; // after last record + sal_Bool m_bLastRecord; + sal_Bool m_bFileSetFrozen; + sal_Bool m_bInserted; // true when moveToInsertRow was called + // set to false when cursor moved or cancel + sal_Bool m_bRowUpdated; + sal_Bool m_bRowInserted; + sal_Bool m_bRowDeleted; void construct(); sal_Bool evaluate(); -- cgit