try {
ps = conn.prepareStatement(sql);
bindParameters(ps, args);
rs = ps.executeQuery();
while (rs.next()) {
Post post = new Post(rs.getLong("id"), rs.getString("title"), rs.getString("content"), rs.getDate("creation"));
list.add(post);
}
return list;
}
finally {