se ejecuto limpieza del codigo, reformateo del codigo y optimizacion de los imports por parte del IDE
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user