query.bind(section.getSite().getExecutionCourse().getSigla()); query.bind(section.getSite().getExecutionCourse().getExecutionPeriod().getName()); query.bind(section.getSite().getExecutionCourse().getExecutionPeriod().getExecutionYear().getYear());
    public IItem readBySectionAndName(ISection section, String name) throws ExcepcaoPersistencia {        try {            IItem item = null;            String oqlQuery = "select sectionItem from " + Item.class.getName();            oqlQuery += " where section.name = $1 and name = $2";            query.create(oqlQuery);            query.bind(section.getName());            query.bind(name);            List result = (List) query.execute();            lockRead(result);            if (result.size() != 0)                item = (IItem) result.get(0);            return item;        } catch (QueryException ex) {            throw new ExcepcaoPersistencia(ExcepcaoPersistencia.QUERY, ex);        }    }