I have a requirement to add my local timezone offset to a date that I am reading from the database (i.e. the business date field below) which will then be tranformed into an epoch date (businessDate.getTime()).
public List<Long> mapRow(ResultSet rs, int rowNum) throws SQLException {
Date businessDate = rs.getDate(BUSINESS_DATE);
Integer numberOfTxns = rs.getInt(TRAN_COUNT);
List<Long> count = new ArrayList<Long>();
count.add(businessDate.getTime());
count.add(new Long(numberOfTxns));
return count;
}
thanks