Get the tools you need to learn Java skills fast!
Video tutorials, eBooks, hands-on lab exercises, sample code.
Get started
The moose likes JDBC and Relational Databases and the fly likes Need help Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of The Software Craftsman this week in the Agile forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "Need help" Watch "Need help" New topic

Need help

pankaj semwal
Ranch Hand

Joined: Oct 07, 2008
Posts: 301
Hi List[],

When i am entering the data in the table its not showing all the records in the table.
i.e when i entered 25 records in the table its shown only 20 records.

I am using MYSQL . Please help me.

For getting connection i am using singleton class
and my class look like

con = ConnectionFactory.getConnection();
.}catch(Exception e)
finally {
try {
if (con != null) {
} catch (Exception e) {
log.error("Error in closing" + e);
Vijitha Kumara

Joined: Mar 24, 2008
Posts: 3881

Why not show us the code between "try" and "catch", perhaps that would give an idea.

[How to ask questions] [Twitter]
Sandeep Kumar Jakkaraju
Ranch Hand

Joined: Feb 25, 2009
Posts: 75
Is your program multi-threaded !!!

Where is this code in ???

Campbell Ritchie

Joined: Oct 13, 2005
Posts: 41599
And please don't use thread titles like "need help".
pankaj semwal
Ranch Hand

Joined: Oct 07, 2008
Posts: 301
This is my code.And i am using Single ton class to get the connection.

Amir Iqbal
Ranch Hand

Joined: Jun 23, 2007
Posts: 97
well first of all it really a messy code, try to use simple code by putting corresponding code into seprate methods
then comes towards the actual problem.
would you please tell what kind of exception or error you are facing when you execute this code???

what comes in "j" after the following line executes??

tell us please.


i am Java +ve Now !
Have you tried LearnNowOnline?
subject: Need help