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

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


    public List<SeansDTO> getSeanse(){
        if(seanse==null)
        {
            try
            {
                DelegateM2 delegate = new DelegateM2();
                SeanseCriteriaTO criteria = new SeanseCriteriaTO();
                seanse = delegate.getSeans(criteria);
            }
            catch (Exception e){seanse = new ArrayList<SeansDTO>();}
            session.setAttribute(SessionVariables.SEANS_LIST_DTO, seanse);
        }
        return (List<SeansDTO>)seanse;
View Full Code Here


    }
   
    public List<RepertuarDTO> getRepertuar() {
        if(Repertuar == null){
            try{
                DelegateM2 delegate = new DelegateM2();
                RepertuarCriteriaTO criteria = new RepertuarCriteriaTO();
                Repertuar  = delegate.getRepertuar(criteria);
            } catch(Exception e) {Repertuar = new ArrayList<RepertuarDTO>();}
            session.setAttribute(SessionVariables.REPERTUAR_LIST_DTO, Repertuar);
        }
        return Repertuar;
    }
View Full Code Here

        }
   
    public List<GatunekFilmuDTO> getGatunkiFilmow(){
        if(gatunkiFilmow == null) {
            try{
                DelegateM2 delegate = new DelegateM2();
                GatunekFilmuCriteriaTO criteria = new GatunekFilmuCriteriaTO();
                gatunkiFilmow = delegate.getGatunekFilmu(criteria);
            }
            catch(Exception e){ gatunkiFilmow = new ArrayList<GatunekFilmuDTO>();}
            session.setAttribute(SessionVariables.GATUNEK_FILMU_LIST_DTO, gatunkiFilmow);
        }return gatunkiFilmow;
    }
View Full Code Here

    public void remove(ActionEvent event) {
    }

    public void save(ActionEvent event) {
        try{
            DelegateM2 delegate = new DelegateM2();
            long id = delegate.addGatunekFilmu(gatunekFilmu);
        } catch (Exception e) {e.printStackTrace();}
        session.setAttribute(SessionVariables.GATUNEK_FILMU_DTO, null);
        session.setAttribute(SessionVariables.GATUNEK_FILMU_LIST_DTO, null);
    }
View Full Code Here

   
        public RepertuarDTO getRepertuar() {return repertuar;}
        public void setRepertuar(RepertuarDTO repertuar) {this.repertuar = repertuar;}
        public void save(ActionEvent action) {
        try {
        DelegateM2 delegate = new DelegateM2();
        long id = delegate.addRepertuar(repertuar);
        } catch(Exception e) {e.printStackTrace();}
        session.setAttribute(SessionVariables.REPERTUAR_DTO, null);
        session.setAttribute(SessionVariables.REPERTUAR_LIST_DTO, null);
        }
View Full Code Here

        }
        public SeansDTO getSeanse() {return seans;}
        public void setSeanse(SeansDTO seans) {this.seans = seans;}
        public void save(ActionEvent action) {
            try {
            DelegateM2 delegate = new DelegateM2();
            long id = delegate.addSeans(seans);
            } catch(Exception e) {e.printStackTrace();}
            session.setAttribute(SessionVariables.SEANS_DTO, null);
            session.setAttribute(SessionVariables.SEANS_LIST_DTO, null);
        }
View Full Code Here

            session.setAttribute(SessionVariables.SEANS_DTO, null);
            session.setAttribute(SessionVariables.SEANS_LIST_DTO, null);
        }
        public void update(ActionEvent action) {   
            try {
            DelegateM2 delegate = new DelegateM2();
            delegate.updateSeans(seans);
            } catch(Exception e) {e.printStackTrace();}
            session.setAttribute(SessionVariables.SEANS_DTO, null);
            session.setAttribute(SessionVariables.SEANS_LIST_DTO, null);
        }
View Full Code Here

            session.setAttribute(SessionVariables.SEANS_DTO, null);
            session.setAttribute(SessionVariables.SEANS_LIST_DTO, null);
        }
        public void remove(ActionEvent action) {
            try {
            DelegateM2 delegate = new DelegateM2();
            delegate.removeSeans(seans);
            } catch(Exception e) {e.printStackTrace();}
            session.setAttribute(SessionVariables.SEANS_DTO, null);
            session.setAttribute(SessionVariables.SEANS_LIST_DTO, null);     
        }
View Full Code Here

TOP

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

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.