Hi all,
I have a table with 12,000 rows, i'm getting total rows by
using
"int total = resultsAdapter.getRowCount();".
But in textbox total rows are appearing just 1,000, maybe i'm not using
the proper datatype. Which datatype i should use double or what ...
instead of integer.
Thanx.
jcsnippets.atspace.com - 14 May 2006 12:28 GMT
> Hi all,
> I have a table with 12,000 rows, i'm getting total rows by
[quoted text clipped - 3 lines]
> the proper datatype. Which datatype i should use double or what ...
> instead of integer.
I don't think the datatype is the issue here. An int can hold much larger
values than 1000 (-2^31 to 2^31-1 to be precise) so that should not be a
problem.
I've had a quick look in the JavaDocs
(http://java.sun.com/j2se/1.5.0/docs/api/index.html) and I cannot find any
method called getRowCount() related to database classes. Is this a method
from a custom class? Given the one line of code, it's not possible to
guess...
Last but not least, can you confirm there is no limit on the number of rows
that is being fetched at once? If there is one (and thousand seems like a
possible one), then that's the reason you're only seeing 1000 rows instead
of 12000.
Best regards,
JayCee
--
http://jcsnippets.atspace.com/
a collection of source code, tips and tricks