CachedRowSet Timestamp problem

All,
Is there a workaround for exception when attempting to read a timestamp from a CachedRowSet ?

if(type == 93){                                                              //timestamp                                                        cell.setCellValue(outputResultsCrs.getTimestamp(i));
}

java.lang.ClassCastException: oracle.sql.TIMESTAMP cannot be cast to java.sql.Timestamp
WaponiAsked:
Who is Participating?
 
CEHJConnect With a Mentor Commented:
Try
cell.setCellValue(outputResultsCrs.getTimestamp(i).timestampValue());

Open in new window

0
 
WaponiAuthor Commented:
..
0
 
CEHJCommented:
:)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.