super(connSource, connDestination);
}
public PreparedStatement prepareStatement(ResultSet rs,
PreparedStatement statement, List<String> messages) throws Exception {
Curso cur = (Curso) getObject(rs);
statement.setLong(1, cur.getId());
statement.setDate(2, new java.sql.Date(cur.getTimestamp().getTime()));
statement.setString(3, cur.getLocal());
statement.setString(4, cur.getNome());
statement.setInt(5, cur.getAssiduidade());
statement.setInt(6, cur.getCargaHorario());
statement.setString(7, cur.getEmenta());
statement.setNull(8, Types.NULL);
if (!(cur.getTelecentro() == null)){
statement.setLong(9, cur.getTelecentro().getId());
} else {
statement.setNull(9, Types.NULL);
}
return statement;