File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JDBC and the fly likes Need help Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Need help" Watch "Need help" New topic
Author

Need help

pankaj semwal
Ranch Hand

Joined: Oct 07, 2008
Posts: 300
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: 3825

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: 38350
    
  23
And please don't use thread titles like "need help".
pankaj semwal
Ranch Hand

Joined: Oct 07, 2008
Posts: 300
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 !
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Need help