Code example for ResultSet

Methods: getStringgetTimestamp

0
{ 
 
	public Object mapRow(ResultSet rs, int index) throws SQLException
	{ 
		Calendar wkCalendar = Calendar.getInstance();
		wkCalendar.setTime(new Date(rs.getTimestamp("reportdate").getTime()));
		RotoPlayerRecord wkRecord = new RotoPlayerRecord(rs.getString("playername"),
				                                         wkCalendar,
														 "", 
														 "", 
														 rs.getString("news"),
														 rs.getString("comment")
														 ); 
		 
		return wkRecord;
	} 
 
} 
Connect your IDE to all the code out there  Get Codota for Java