public AlumnoVO[] consultar(AlumnoVO alumno) {
		String query = "SELECT * FROM alumnos \n WHERE ";
		Statement consulta = Conexion.getConexion().hacerConsulta();
		AlumnoVO[] a = new AlumnoVO[1];
		
		if(alumno.getMatricula() != null){
			query += " CAST(matricula AS char) LIKE '" + alumno.getMatricula() + "%' AND";
		}
		
		if(alumno.getNombre() != null){
			query += "\n nombre LIKE '" + alumno.getNombre() + "%' AND";
		}
		if(alumno.getApellidoPaterno() != null){
			query += "\n apellidoPaterno LIKE '" + alumno.getApellidoPaterno() + "%' AND";
		}
		if(alumno.getApellidoMaterno() != null){
			query += "\n apellidoMaterno LIKE '" + alumno.getApellidoMaterno() + "%' AND";
		}
		if(alumno.getGrupo() != null){
			query += "\n (grupo = "+ alumno.getGrupo().toString() + " OR capacitacion ="+ alumno.getGrupo().toString() + ") AND";
		}
		query = query.substring(0, query.length() -3);
		query += ";";
		System.out.println(query);
		try{
			a = this.recuperacion(consulta.executeQuery(query));
		}catch(SQLException e){
			System.out.println("error tipo sql");
			System.out.println(e.getCause());
		}catch (NullPointerException e){
			System.out.println("DAO");
		}catch(Exception e){
			System.out.println(e);
			return null;
		}
		return a;
	}