String oqlQuery = "select turno from " + ShiftStudent.class.getName() + " where turno.nome = $1" + " and turno.disciplinaExecucao.sigla = $2" + " and turno.disciplinaExecucao.executionPeriod.name = $3" + " and turno.disciplinaExecucao.executionPeriod.executionYear.year = $4";
String oqlQuery = "select shift from " + ShiftStudent.class.getName() + " where shift.nome = $1" + " and shift.disciplinaExecucao.sigla = $2" + " and shift.disciplinaExecucao.executionPeriod.name = $3" + " and shift.disciplinaExecucao.executionPeriod.executionYear.year = $4";
	public List readByShift(ITurno shift) throws ExcepcaoPersistencia {		try {			String oqlQuery = "select turno from " + ShiftStudent.class.getName()							+ " where turno.nome = $1"							+ " and turno.disciplinaExecucao.sigla = $2"							+ " and turno.disciplinaExecucao.executionPeriod.name = $3"							+ " and turno.disciplinaExecucao.executionPeriod.executionYear.year = $4";			query.create(oqlQuery);			query.bind(shift.getNome());						IDisciplinaExecucao executionCourse = shift.getDisciplinaExecucao();			query.bind(executionCourse.getSigla());			query.bind(executionCourse.getExecutionPeriod().getName());			query.bind(executionCourse.getExecutionPeriod().getExecutionYear().getYear());			List result = (List) query.execute();						lockRead(result);			List studentList = new ArrayList();						Iterator iterator = result.iterator();			while (iterator.hasNext()) {				ITurnoAluno shiftStudent = (ITurnoAluno) iterator.next();				studentList.add(shiftStudent.getStudent());					}						return studentList;		} catch (QueryException ex) {			throw new ExcepcaoPersistencia(ExcepcaoPersistencia.QUERY, ex);		}	}