Tag: cws_src680_sqlite
User: aklitzing
Date: 2006/08/18 13:08:39

Modified:
   dba/connectivity/source/drivers/sqlite3/sqResultSet.cxx

Log:
 * Changed to new API of sqQueryPreparedCursor

File Changes:

Directory: /dba/connectivity/source/drivers/sqlite3/
====================================================

File [changed]: sqResultSet.cxx
Url: 
http://dba.openoffice.org/source/browse/dba/connectivity/source/drivers/sqlite3/sqResultSet.cxx?r1=1.1.2.2&r2=1.1.2.3
Delta lines:  +14 -12
---------------------
--- sqResultSet.cxx     18 Aug 2006 19:01:32 -0000      1.1.2.2
+++ sqResultSet.cxx     18 Aug 2006 20:08:36 -0000      1.1.2.3
@@ -4,9 +4,9 @@
  *
  *  $RCSfile: sqResultSet.cxx,v $
  *
- *  $Revision: 1.1.2.2 $
+ *  $Revision: 1.1.2.3 $
  *
- *  last change: $Author: aklitzing $ $Date: 2006/08/18 19:01:32 $
+ *  last change: $Author: aklitzing $ $Date: 2006/08/18 20:08:36 $
  *
  *  Original contributor: André Klitzing
  *
@@ -380,7 +380,7 @@
        ::osl::MutexGuard aGuard( m_aMutex );
        checkDisposed(OResultSet_BASE::rBHelper.bDisposed);
 
-       return !m_pQuery->isExecuted();
+       return m_pQuery->isBeforeFirst();
 }
 // -------------------------------------------------------------------------
 sal_Bool SAL_CALL OResultSet::isAfterLast(  ) throw(SQLException, 
RuntimeException)
@@ -388,7 +388,7 @@
        ::osl::MutexGuard aGuard( m_aMutex );
        checkDisposed(OResultSet_BASE::rBHelper.bDisposed);
 
-       return m_pQuery->isDone();
+       return m_pQuery->isAfterLast();
 }
 // -------------------------------------------------------------------------
 sal_Bool SAL_CALL OResultSet::isFirst(  ) throw(SQLException, RuntimeException)
@@ -396,7 +396,7 @@
        ::osl::MutexGuard aGuard( m_aMutex );
        checkDisposed(OResultSet_BASE::rBHelper.bDisposed);
 
-       return m_pQuery->getCurrentRow() == 0;
+       return m_pQuery->isFirst();
 }
 // -------------------------------------------------------------------------
 sal_Bool SAL_CALL OResultSet::isLast(  ) throw(SQLException, RuntimeException)
@@ -404,7 +404,7 @@
        ::osl::MutexGuard aGuard( m_aMutex );
        checkDisposed(OResultSet_BASE::rBHelper.bDisposed);
 
-       return sal_False;
+       return m_pQuery->isLast();
 }
 // -------------------------------------------------------------------------
 void SAL_CALL OResultSet::beforeFirst(  ) throw(SQLException, RuntimeException)
@@ -412,13 +412,15 @@
        ::osl::MutexGuard aGuard( m_aMutex );
        checkDisposed(OResultSet_BASE::rBHelper.bDisposed);
 
-       m_pQuery->reset();
+       m_pQuery->beforeFirst();
 }
 // -------------------------------------------------------------------------
 void SAL_CALL OResultSet::afterLast(  ) throw(SQLException, RuntimeException)
 {
        ::osl::MutexGuard aGuard( m_aMutex );
        checkDisposed(OResultSet_BASE::rBHelper.bDisposed);
+
+       m_pQuery->afterLast();
 }
 // -------------------------------------------------------------------------
 
@@ -438,7 +440,7 @@
        ::osl::MutexGuard aGuard( m_aMutex );
        checkDisposed(OResultSet_BASE::rBHelper.bDisposed);
 
-       return sal_False;
+       return m_pQuery->first();
 }
 // -------------------------------------------------------------------------
 
@@ -447,7 +449,7 @@
        ::osl::MutexGuard aGuard( m_aMutex );
        checkDisposed(OResultSet_BASE::rBHelper.bDisposed);
 
-       return sal_False;
+       return m_pQuery->last();
 }
 // -------------------------------------------------------------------------
 sal_Bool SAL_CALL OResultSet::absolute( sal_Int32 row ) throw(SQLException, 
RuntimeException)
@@ -455,7 +457,7 @@
        ::osl::MutexGuard aGuard( m_aMutex );
        checkDisposed(OResultSet_BASE::rBHelper.bDisposed);
 
-       return sal_False;
+       return m_pQuery->absolute(row);
 }
 // -------------------------------------------------------------------------
 sal_Bool SAL_CALL OResultSet::relative( sal_Int32 row ) throw(SQLException, 
RuntimeException)
@@ -463,7 +465,7 @@
        ::osl::MutexGuard aGuard( m_aMutex );
        checkDisposed(OResultSet_BASE::rBHelper.bDisposed);
 
-       return sal_False;
+       return m_pQuery->relative(row);
 }
 // -------------------------------------------------------------------------
 sal_Bool SAL_CALL OResultSet::previous(  ) throw(SQLException, 
RuntimeException)
@@ -471,7 +473,7 @@
        ::osl::MutexGuard aGuard( m_aMutex );
        checkDisposed(OResultSet_BASE::rBHelper.bDisposed);
 
-       return sal_False;
+       return m_pQuery->prevRow();
 }
 // -------------------------------------------------------------------------
 Reference< XInterface > SAL_CALL OResultSet::getStatement(  ) 
throw(SQLException, RuntimeException)




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to