Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / May 2006

Tip: Looking for answers? Try searching our database.

Proper Data Type.

Thread view: 
Khan - 14 May 2006 07:05 GMT
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


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.