Stupid question? long format, with prepared statement

S

Smashingraph

Hello!
I would like to know what I have to use to make this work.

when I have: ps.setInt(1,r.getId().intValue());
and want to have: ps.setLong(4,r.getDate(). ....
what do I have to put? .longValue() doesn't work ...

please help me

Thank you very much

Raph
 
V

VisionSet

Smashingraph said:
when I have: ps.setInt(1,r.getId().intValue());
and want to have: ps.setLong(4,r.getDate(). ....
what do I have to put? .longValue() doesn't work ...

public long java.util.Date.getTime()

Read the API, that took 15 seconds.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,756
Messages
2,569,535
Members
45,007
Latest member
OrderFitnessKetoCapsules

Latest Threads

Top