* @param res
* @return returns a {@link DataEntry}
* @throws SQLException
*/
public static DataEntry createEntryFromRes(ResultSet res) throws Exception {
DataType type = DataType.fromId(res.getInt("action"));
DataEntry entry = (DataEntry)type.getEntryClass().newInstance();
entry.setPlayer(DataManager.getPlayer(res.getInt("player_id")));
entry.setDate(res.getString("date"));
entry.setDataId(res.getInt("data_id"));
entry.setType(DataType.fromId(res.getInt("action")));
entry.interpretSqlData(res.getString("data"));