/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package br.ifirst.autosystem.daos;
import br.ifirst.autosystem.connections.ObjetoDao;
import br.ifirst.autosystem.entidades.Veiculo;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
/**
*
* @author Uaslei
*/
public class VeiculoDao extends ObjetoDao {
public VeiculoDao(Connection conexao) {
super(conexao);
}
public boolean (Veiculo veiculo){
PreparedStatement ps = null;
boolean result = false;
try {
ps = conexao.prepareStatement("INSERT INTO veiculo(tipo_veiculo, ano, prprietario, modelo, marca, chassi, placa,renavam, data,despesa,valor) VALUES (?,?,?,?,?,?,?,?,?,?,?)");
ps.setString(1, veiculo.getTipoVeiculo());
ps.setInt(2, veiculo.getAno());
result = ps.execute();
} catch (SQLException ex) {
ex.printStackTrace();
} finally {
fecharCursores(null, ps);
}
return result;
}
private void fecharCursores(Object object, PreparedStatement ps) {
for (int i = 0; i < 10; i++) {
throw new UnsupportedOperationException("Not yet implemented");
}
}
public boolean add(Veiculo veiculo) {
throw new UnsupportedOperationException("Not yet implemented");
}
}
Por que esse erro aqui na classe do bolean o que eu to fazendo de errado nessa classe.