Package com.germinus.mashupbuilder.dao.jdbc

Examples of com.germinus.mashupbuilder.dao.jdbc.PageDAO


            } else {
                response.setContentType("application/x-json");
            }

            DAOFactory daoFactory = DAOFactory.getDAOFactory(DAOFactory.FactoryType.JDBC);
            PageDAO pageDAO = (PageDAO) daoFactory.getDAO(Page.class);
            List<Page> pages = pageDAO.getAll();

            if (scriptTag) {
                out.write(cb + "(");
            }
            JsonFormatter jsFmt = new JsonFormatter();
View Full Code Here


                Page pagePattern = new Page();
                pagePattern.setId(intId);

                DAOFactory daoFactory = DAOFactory.getDAOFactory(DAOFactory.FactoryType.JDBC);
                PageDAO pageDAO = (PageDAO) daoFactory.getDAO(Page.class);
                Page pageFound = pageDAO.find(pagePattern);
                if (pageFound != null) {
                    StringBuilder sb = new StringBuilder();
                    if (callback != null) {
                        sb.append(callback).append("(");
                    } else if (!JSON.equals(json)) {
View Full Code Here

            if (description == null) {
                description = "";
            }

            DAOFactory daoFactory = DAOFactory.getDAOFactory(DAOFactory.FactoryType.JDBC);
            PageDAO pageDAO = (PageDAO) daoFactory.getDAO(Page.class);
            Page page = null;
            if (idSt != null) {
                int id = Integer.parseInt(idSt);
                page = new Page(id, name, description, json);
                pageDAO.updateJson(page);
            } else {
                page = new Page(name, description, json);
                int id = pageDAO.saveAndGetId(page);
                page.setId(id);
            }
            out.write(XMLFormatter.toXML(page));
        } catch (NumberFormatException nbe) {
            Logger.getLogger(PageController.class.getName()).log(Level.SEVERE, null, nbe);
View Full Code Here

TOP

Related Classes of com.germinus.mashupbuilder.dao.jdbc.PageDAO

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.