Date: Thursday, November 24, 2005 @ 12:17:10
Author: gilles
Path: /cvsroot/carob/carob/include
Modified: DriverResultSet.hpp (1.8 -> 1.9)
Added getter on the number of columns and the number of rows _in memory_
---------------------+
DriverResultSet.hpp | 14 +++++++++++++-
1 files changed, 13 insertions(+), 1 deletion(-)
Index: carob/include/DriverResultSet.hpp
diff -u carob/include/DriverResultSet.hpp:1.8
carob/include/DriverResultSet.hpp:1.9
--- carob/include/DriverResultSet.hpp:1.8 Wed Nov 23 17:30:45 2005
+++ carob/include/DriverResultSet.hpp Thu Nov 24 12:17:10 2005
@@ -152,7 +152,19 @@
* @exception DriverSQLException if a database access error occurs
*/
void close() throw (SQLException, UnexpectedException);
-
+
+ /**
+ * Gets the number of column in this resultSet
+ * @return number of columns value
+ */
+ int32_t getNumberOfColumns() { return nbOfColumns; }
+ /**
+ * Gets the number of rows that have been fetched yet.
+ * Note: this is not the number of rows of the ResultSet, but the current
+ * number of rows in memory !
+ * @return number of rows fetched until now
+ */
+ int32_t getNumberOfRowsInMemory() { return nbOfRows; }
protected:
/**
* De-serialize only data rows, not any metadata.
_______________________________________________
Carob-commits mailing list
[email protected]
https://forge.continuent.org/mailman/listinfo/carob-commits