se ejecuto limpieza del codigo, reformateo del codigo y optimizacion de los imports por parte del IDE

This commit is contained in:
Daniel Cortes
2019-01-20 02:16:59 -03:00
parent 4ddc2b2ee7
commit b14222c875
42 changed files with 293 additions and 326 deletions

View File

@@ -41,20 +41,26 @@ public abstract class EgresoDAO {
protected ConnectionHolder connectionHolder;
public abstract List<Egreso> findAll();
public abstract List<Egreso> findById(int id);
public abstract List<Egreso> findByCaja(Caja caja);
public abstract List<Egreso> findByNro(String nro);
public abstract List<Egreso> findByTipoEgreso(TipoEgreso tipoEgreso);
public abstract boolean insertEgreso(Egreso egreso);
public abstract boolean updateEgreso(Egreso egreso);
public abstract boolean deleteEgreso(Egreso egreso);
public abstract int getTotalEgreso(Caja caja);
List<Egreso> egresosFromResultSet(ResultSet rs) throws SQLException {
ArrayList<Egreso> egresoList = new ArrayList<>();
while(rs.next()){
while (rs.next()) {
int tipoEgresoId = rs.getInt("tipo_egreso_id");
TipoEgresoDAO tipoEgresoDAO = new SQLiteTipoEgresoDAO();
TipoEgreso tipoEgreso = tipoEgresoDAO.findById(tipoEgresoId).get(0);