Respondendo sua pergunta anterior as datas que estou trabalhando nesse metodo são todas do tipo Calendar
Alterei e esta assim mais esta dando erro no setCalendar, setTime
public void cadastraFilmes(FilmesTO filmesTO) throws Exception {
Connection c = ConectarBD.getConnection();
Calendar calendar = Calendar.getInstance();
try {
PreparedStatement pstm = c.prepareStatement("INSERT INTO CADCLIENTE (titulo, subtitulo, codigo, Genero, duracao, produtora, " +
"pais, midia, ano, condicao, estado, legenda, idioma, distribuidora, datacompra, datacadastro) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)");
pstm.setString(1, filmesTO.getTitulo());
pstm.setString(2, filmesTO.getSubtitulo());
pstm.setString(3, filmesTO.getCodigo());
pstm.setString(4, filmesTO.getGenero());
pstm.setString(5, filmesTO.getDuracao());
pstm.setString(6, filmesTO.getProdutora());
pstm.setString(7, filmesTO.getPais());
pstm.setString(8, filmesTO.getMidia());
pstm.setCalendar(9, calendar.setTime(filmesTO.getAno())); <-----
pstm.setString(10, filmesTO.getCondicao());
pstm.setString(11, filmesTO.getEstado());
pstm.setString(12, filmesTO.getLegenda());
pstm.setString(13, filmesTO.getIdioma());
pstm.setString(14, filmesTO.getDistribuidora());
pstm.setCalendar(15, calendar.setTime(filmesTO.getDatacompra())); <-----
pstm.setCalendar(16, calendar.setTime(filmesTO.getDatacadastro())); <-----
pstm.execute();
} catch (Exception ex) {
ex.printStackTrace();
System.out.println("Erro: " + ex);
throw new Exception(ex);
}
}
}