public void inserirDados(Collection list) {
Sindical_Bean beanInterno=null;
Iterator it= list.iterator();
String sql=("Insert Into tblBaixaSindical (idPagamento,cnpj,valorJuro,valorMulta,valorDaGuia,exercicio,tipo,meio,banco," +
"entidadeSindical,usuario,capitalSocial,dataVencimento,dataPagamento,dataBaixa) values " +
"(000,"+beanInterno.getCnpj()+",0,0,"+beanInterno.getValorContribuicao()+","+beanInterno.getExercicio()+","
+"tipo,"+",normal,Fecomercio,"+",63,"+",0,"+beanInterno.getDataVencimento()+","+beanInterno.getDataPagamento()+","+
beanInterno.getDataBaixa()+");");
conexaoSQLServer = con.conectarBancoSqlServer();
try {
stmt =conexaoSQLServer.createStatement();
rs= stmt.executeQuery(sql);
while(it.hasNext()){
beanInterno=(Sindical_Bean) it.next();
rs= stmt.executeQuery(sql);
}
} catch (SQLException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
Falow!!!