Examples of DelegateM1


Examples of pl.edu.prz.kia.ntp.interfaceModule.delegate.DelegateM1

        this.typUzytkownika = typUzytkownika;
    }
   
    public void remove(ActionEvent event) {
        try{
            DelegateM1 delegate = new DelegateM1();
            delegate.removeTypUzytkownika(typUzytkownika);
        }
        catch (Exception e) {e.printStackTrace();}
        session.setAttribute(SessionVariables.TYP_UZYTKOWNIKA_DTO, null);
        session.setAttribute(SessionVariables.TYP_UZYTKOWNIKA_LIST_DTO, null);
    }
View Full Code Here

Examples of pl.edu.prz.kia.ntp.interfaceModule.delegate.DelegateM1

        session.setAttribute(SessionVariables.TYP_UZYTKOWNIKA_LIST_DTO, null);
    }

    public void save(ActionEvent event) {
        try{
            DelegateM1 delegate = new DelegateM1();
            int id = delegate.addTypUzytkownika(typUzytkownika);
        }catch (Exception e) {e.printStackTrace();}
        session.setAttribute(SessionVariables.TYP_UZYTKOWNIKA_DTO, null);
        session.setAttribute(SessionVariables.TYP_UZYTKOWNIKA_LIST_DTO, null);
    }
View Full Code Here

Examples of pl.edu.prz.kia.ntp.interfaceModule.delegate.DelegateM1

        session.setAttribute(SessionVariables.TYP_UZYTKOWNIKA_LIST_DTO, null);
    }

    public void update(ActionEvent event) {
        try {
            DelegateM1 delegate = new DelegateM1();
            delegate.updateTypUzytkownika(typUzytkownika);
        }catch(Exception e) {e.printStackTrace();}

        session.setAttribute(SessionVariables.TYP_UZYTKOWNIKA_DTO, null);
        session.setAttribute(SessionVariables.TYP_UZYTKOWNIKA_LIST_DTO, null);
    }
View Full Code Here

Examples of pl.edu.prz.kia.ntp.interfaceModule.delegate.DelegateM1

    }
   
    public List<TypUzytkownikaDTO> getTypUzytkownika() {
        if(typyUzytkownikow == null) {
            try {
                DelegateM1 delegate = new DelegateM1();
                TypUzytkownikaCriteriaTO criteria = new TypUzytkownikaCriteriaTO();
                typyUzytkownikow = delegate.getTypUzytkownika(criteria);
            }
            catch(Exception e) {typyUzytkownikow = new ArrayList<TypUzytkownikaDTO>();}
            session.setAttribute(SessionVariables.TYP_UZYTKOWNIKA_LIST_DTO, typyUzytkownikow);
            }
        return typyUzytkownikow;
View Full Code Here

Examples of pl.edu.prz.kia.ntp.interfaceModule.delegate.DelegateM1

    }
   
    public List<UzytkownikDTO> getUzytkownicy() {
        if(uzytkownicy == null) {
            try {
                DelegateM1 delegate = new DelegateM1();
                UzytkownikCriteriaTO criteria = new UzytkownikCriteriaTO();
                uzytkownicy = delegate.getUzytkownicy(criteria);
            }
            catch(Exception e) {uzytkownicy = new ArrayList<UzytkownikDTO>();}
            session.setAttribute(SessionVariables.UZYTKOWNIK_LIST_DTO, uzytkownicy);
            }
        return uzytkownicy;
View Full Code Here

Examples of pl.edu.prz.kia.ntp.interfaceModule.delegate.DelegateM1

        return d1;
    }

    public void remove(ActionEvent event) {
        try{
            DelegateM1 delegate = new DelegateM1();
            delegate.removeUzytkownik(uzytkownik);
        } catch (Exception e) {e.printStackTrace();}
        session.setAttribute(SessionVariables.UZYTKOWNIK_DTO, null);
        session.setAttribute(SessionVariables.UZYTKOWNIK_LIST_DTO, null);
    }
View Full Code Here

Examples of pl.edu.prz.kia.ntp.interfaceModule.delegate.DelegateM1

        session.setAttribute(SessionVariables.UZYTKOWNIK_LIST_DTO, null);
    }

    public void save(ActionEvent event) {
        try {
            DelegateM1 delegate = new DelegateM1();
            long id = delegate.addUzytkownik(uzytkownik);
        } catch (Exception e) {e.printStackTrace();}
        session.setAttribute(SessionVariables.UZYTKOWNIK_DTO, null);
        session.setAttribute(SessionVariables.UZYTKOWNIK_LIST_DTO, null);
    }
View Full Code Here

Examples of pl.edu.prz.kia.ntp.interfaceModule.delegate.DelegateM1

        session.setAttribute(SessionVariables.UZYTKOWNIK_LIST_DTO, null);
    }

    public void update(ActionEvent event) {
        try {
            DelegateM1 delegate = new DelegateM1();
            delegate.updateUzytkownik(uzytkownik);
        } catch(Exception e) {e.printStackTrace();}
        session.setAttribute(SessionVariables.UZYTKOWNIK_DTO, null);
        session.setAttribute(SessionVariables.UZYTKOWNIK_LIST_DTO, null);
    }
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.