Package pl.edu.prz.kia.ntp.interfaceModule.delegate

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


    }
    public BiletDTO getBilet() {return bilet;}
    public void setBilet(BiletDTO bilet) {this.bilet = bilet;}
    public void save(ActionEvent action) {
        try {
        DelegateM4 delegate = new DelegateM4();
        long id = delegate.addBilet(bilet);
        } catch(Exception e) {e.printStackTrace();}
        session.setAttribute(SessionVariables.BILET_DTO, null);
        session.setAttribute(SessionVariables.BILET_LIST_DTO, null);
    }
View Full Code Here


        session.setAttribute(SessionVariables.BILET_DTO, null);
        session.setAttribute(SessionVariables.BILET_LIST_DTO, null);
    }
    public void update(ActionEvent action) {   
        try {
        DelegateM4 delegate = new DelegateM4();
        delegate.updateBilet(bilet);
        } catch(Exception e) {e.printStackTrace();}
        session.setAttribute(SessionVariables.BILET_DTO, null);
        session.setAttribute(SessionVariables.BILET_LIST_DTO, null);
    }
View Full Code Here

        session.setAttribute(SessionVariables.BILET_DTO, null);
        session.setAttribute(SessionVariables.BILET_LIST_DTO, null);
    }
    public void remove(ActionEvent action) {
        try {
        DelegateM4 delegate = new DelegateM4();
        delegate.removeBilet(bilet);
        } catch(Exception e) {e.printStackTrace();}
        session.setAttribute(SessionVariables.BILET_DTO, null);
        session.setAttribute(SessionVariables.BILET_LIST_DTO, null);     
    }
View Full Code Here

        this.typ = typ;
    }
   
    public void remove(ActionEvent event) {
        try{
            DelegateM4 delegate = new DelegateM4();
            delegate.removeTypBiletu(typ);
        }
        catch (Exception e) {e.printStackTrace();}
        session.setAttribute(SessionVariables.TYP_BILETU_DTO, null);
        session.setAttribute(SessionVariables.TYP_BILETU_LIST_DTO, null);
    }
View Full Code Here

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

    public void save(ActionEvent event) {
        try{
            DelegateM4 delegate = new DelegateM4();
            int id = delegate.addTypBiletu(typ);
        }catch (Exception e) {e.printStackTrace();}
        session.setAttribute(SessionVariables.TYP_BILETU_DTO, null);
        session.setAttribute(SessionVariables.TYP_BILETU_LIST_DTO, null);
    }
View Full Code Here

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

    public void update(ActionEvent event) {
        try {
            DelegateM4 delegate = new DelegateM4();
            delegate.updateTypBiletu(typ);
        }catch(Exception e) {e.printStackTrace();}
        session.setAttribute(SessionVariables.TYP_BILETU_DTO, null);
        session.setAttribute(SessionVariables.TYP_BILETU_LIST_DTO, null);
    }
View Full Code Here

        this.zamowienie = zamowienie;
    }
   
    public void save(ActionEvent action) {
        try {
            DelegateM4 delegate = new DelegateM4();
            long id = delegate.addZamowienie(zamowienie);
        } catch (Exception e) {e.printStackTrace();}
        session.setAttribute(SessionVariables.ZAMOWIENIE_DTO, null);
        session.setAttribute(SessionVariables.ZAMOWIENIE_LIST_DTO, null);
    }
View Full Code Here

        session.setAttribute(SessionVariables.ZAMOWIENIE_LIST_DTO, null);
    }
   
    public void update(ActionEvent action) {
        try {
            DelegateM4 delegate = new DelegateM4();
            delegate.updateZamowienie(zamowienie);
        } catch(Exception e) {e.printStackTrace();}
        session.setAttribute(SessionVariables.ZAMOWIENIE_DTO, null);
        session.setAttribute(SessionVariables.ZAMOWIENIE_LIST_DTO, null);
    }
View Full Code Here

        session.setAttribute(SessionVariables.ZAMOWIENIE_LIST_DTO, null);
    }
   
    public void remove(ActionEvent action) {
        try{
            DelegateM4 delegate = new DelegateM4();
            delegate.removeZamowienie(zamowienie);
        }
        catch (Exception e) {e.printStackTrace();}
        session.setAttribute(SessionVariables.ZAMOWIENIE_DTO, null);
        session.setAttribute(SessionVariables.ZAMOWIENIE_LIST_DTO, null);
    }
View Full Code Here

    public List<BiletDTO> getBilety(){
        if(bilety==null)
        {
            try
            {
                DelegateM4 delegate = new DelegateM4();
                BiletCriteriaTO criteria = new BiletCriteriaTO();
                bilety = delegate.getBilety(criteria);
            }
            catch (Exception e){bilety = new ArrayList<BiletDTO>();}
            session.setAttribute(SessionVariables.BILET_LIST_DTO, bilety);
        }
        return bilety;
View Full Code Here

TOP

Related Classes of pl.edu.prz.kia.ntp.interfaceModule.delegate.DelegateM4

Copyright © 2018 www.massapicom. 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.