This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes JDBC and Relational Databases and the fly likes ints, bigints, longs and strings Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "ints, bigints, longs and strings" Watch "ints, bigints, longs and strings" New topic

ints, bigints, longs and strings

Stuart Rogers
Ranch Hand

Joined: Oct 02, 2008
Posts: 140
I'm rewriting some code that worked great when the database tables' columns were defined as INTs

How should I rewrite the above snippet now that the database tables' columns are defined as BIGINTs? This does not work


Still-learning Stuart
Stuart Rogers
Ranch Hand

Joined: Oct 02, 2008
Posts: 140
Ack, never mind, I found it myself


Still-learning Stuart
Jeanne Boyarsky
author & internet detective

Joined: May 26, 2003
Posts: 32481

Thanks for posting the solution for others who encounter the problem.

[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
Lei Guoguo

Joined: Mar 31, 2009
Posts: 26
you can try String.valueOf();

I'm a chinese, my english is so bad, I need help. If you want to help me, you can send your question to my e-mail:, I will help you, and improve my english. Thanks everyone.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: ints, bigints, longs and strings
It's not a secret anymore!