try
{
con = DatabaseFactory.getInstance().getConnection();
statement = con.prepareStatement("SELECT id, level, name, hp, hpregen, fish_type, fish_group, fish_guts, guts_check_time, wait_time, combat_time FROM fish ORDER BY id");
resultSet = statement.executeQuery();
FishTemplate fish;
List<FishTemplate> fishes;
while (resultSet.next())
{
int id = resultSet.getInt("id");
int lvl = resultSet.getInt("level");
String name = resultSet.getString("name");
int hp = resultSet.getInt("hp");
int hpreg = resultSet.getInt("hpregen");
int type = resultSet.getInt("fish_type");
int group = resultSet.getInt("fish_group");
int fish_guts = resultSet.getInt("fish_guts");
int guts_check_time = resultSet.getInt("guts_check_time");
int wait_time = resultSet.getInt("wait_time");
int combat_time = resultSet.getInt("combat_time");
fish = new FishTemplate(id, lvl, name, hp, hpreg, type, group, fish_guts, guts_check_time, wait_time, combat_time);
if ((fishes = _fishes.get(group)) == null)
{
_fishes.put(group, fishes = new ArrayList<>());
}
fishes.add(fish);