Examples of DAOTutor


Examples of com.ibs.academic.dao.DAOTutor

        setStudentItem(item);
        setUpdateItem(true);
    }

    public List<Tutor> findTutor(String name){
        DAOTutor daoTutor = DAOTutor.getInstance();
        Query<Tutor> query = daoTutor.getDs().createQuery(Tutor.class);
        query.or(
                query.criteria("firstname").equal(Pattern.compile(name, Pattern.CASE_INSENSITIVE)),
                query.criteria("lastname").equal(Pattern.compile(name, Pattern.CASE_INSENSITIVE))
        );
        return query.asList();
View Full Code Here

Examples of com.ibs.academic.dao.DAOTutor

    public Object getAsObject(FacesContext context, UIComponent component, String value) {
        if(value.trim().equals("")){
            return null;
        }
        else{
            DAOTutor t = DAOTutor.getInstance();
            AutoComplete autoComplete = (AutoComplete)component;

            Tutor tutor = t.get(new ObjectId((String)autoComplete.getSubmittedValue()));
            return tutor;
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.