public List<Insumo> select(Insumo selectInsumo) throws SQLException{
		String nom = selectInsumo.getNombre();
		Long id = selectInsumo.getId();
		Connection con = SQLiteConnectionFactory.getInstance().getConnection();
		String sql = null;
		
		if (nom != null && !nom.trim().equals("")){
			sql = "select id, nombre, cantidad from insumos where nombre = ? ";
			if(id != null){
				sql = sql + "and id = ?";
			}
		}else if (id != null){
			sql = "select id, nombre, cantidad from insumos where id = ?";
		}else{
			sql = "select id, nombre, cantidad from insumos";
		}

		PreparedStatement stmt = con.prepareStatement(sql, 1);
		int param = 1;
		if (nom != null && !nom.trim().equals("")){
			stmt.setString(param, selectInsumo.getNombre());
			param ++;
		}
		if (id != null){
			stmt.setLong(param, id.longValue());
		}
		ResultSet resultSet = stmt.executeQuery();
		List<Insumo> insumoLista = new ArrayList<Insumo>();
		while (resultSet.next()){
			Insumo nuevoInsumo = new Insumo();
			nuevoInsumo.setId(resultSet.getLong(1));
			nuevoInsumo.setNombre(resultSet.getString(2));
			nuevoInsumo.setCantidad(resultSet.getInt(3));
			insumoLista.add(nuevoInsumo);
		}
		return insumoLista;
	}