Win a copy of JDBC Workbook this week in the JDBC and Relational Databases forum
or A Day in Code in the A Day in Code forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

Need help

 
Ranch Hand
Posts: 303
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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);
}
 
Bartender
Posts: 4107
72
Hibernate Fedora Chrome
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why not show us the code between "try" and "catch", perhaps that would give an idea.
 
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is your program multi-threaded !!!

Where is this code in ???

 
Marshal
Posts: 69395
276
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And please don't use thread titles like "need help".
 
pankaj semwal
Ranch Hand
Posts: 303
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is my code.And i am using Single ton class to get the connection.

 
Ranch Hand
Posts: 97
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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,
 
If you settle for what they are giving you, you deserve what you get. Fight for this tiny ad!
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic