This week's book giveaway is in the OCAJP forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff on-line!
See this thread for details.
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 OCA Java SE 8 Programmer I Study Guide 1Z0-808 this week in the OCAJP forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "Need help" Watch "Need help" New topic
Author

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

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

Joined: Mar 24, 2008
Posts: 3866

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


SCJP 5 | SCWCD 5
[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
Sheriff

Joined: Oct 13, 2005
Posts: 40447
    
  28
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.

Regards,

i am Java +ve Now !
 
 
subject: Need help