I really like the method of auto-filling Javabeans from ResultSets described
by Ted Husted  in the earlier thread "Re: Performance, Reflection, and Object 
Creation vs. Cacheing". 

http://www.mail-archive.com/[email protected]/msg14397.html

However, my Javabeans currently use the Long datatype for storing a value
which is stored in the RDB's DATETIME field.
(This Long value is converted to something like 2002-05-24 12:34:22 using 
java.text.SimpleDateFormat and viceversa using java.text.ParsePosition.)

If I wish to use the method described by Ted Husted using ResultSetUtils,
what is the most appropriate datatype to use for storing dates, datetimes 
and timestamps in my Javabean ? Thank you.

By the way, where can I get the full ResultSetUtils.java ?

Stephen



---------------------------------
Sign up to watch the FIFA World Cup video highlights from your desk!

http://fifaworldcup.yahoo.com/fc/en

Reply via email to