Package com.germinus.mashupbuilder.dao.jdbc

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


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

            DAOFactory daoFactory = DAOFactory.getDAOFactory(DAOFactory.FactoryType.JDBC);
            MashupDAO mashupDAO = (MashupDAO) daoFactory.getDAO(Mashup.class);
            List<Mashup> mashups = mashupDAO.getAll();

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


                Mashup mashupPattern = new Mashup();
                mashupPattern.setId(intId);

                DAOFactory daoFactory = DAOFactory.getDAOFactory(DAOFactory.FactoryType.JDBC);
                MashupDAO mashupDAO = (MashupDAO) daoFactory.getDAO(Mashup.class);
                Mashup mashupFound = mashupDAO.find(mashupPattern);
                if (mashupFound != 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);
            MashupDAO mashupDAO = (MashupDAO) daoFactory.getDAO(Mashup.class);
            Mashup mashup = null;
            if (idSt != null) {
                int id = Integer.parseInt(idSt);
                mashup = new Mashup(id, name, description, json);
                mashupDAO.updateJson(mashup);
            } else {
                mashup = new Mashup(name, description, json);
                int id = mashupDAO.saveAndGetId(mashup);
                mashup.setId(id);
            }
            out.write(XMLFormatter.toXML(mashup));
        } catch (NumberFormatException nbe) {
            Logger.getLogger(MashupController.class.getName()).log(Level.SEVERE, null, nbe);
View Full Code Here

    private static Mashup getMashup(int mashupId) throws DAOException {
        Mashup mashupPattern = new Mashup();
        mashupPattern.setId(mashupId);
       
        DAOFactory daoFactory = DAOFactory.getDAOFactory(DAOFactory.FactoryType.JDBC);
        MashupDAO mashupDAO = (MashupDAO) daoFactory.getDAO(Mashup.class);
        return mashupDAO.find(mashupPattern);
    }
View Full Code Here

        try {
            Mashup mashupPattern = new Mashup();
            mashupPattern.setId(mashupId);

            DAOFactory daoFactory = DAOFactory.getDAOFactory(DAOFactory.FactoryType.JDBC);
            MashupDAO mashupDAO = (MashupDAO) daoFactory.getDAO(Mashup.class);
            Mashup mashupFound = mashupDAO.find(mashupPattern);
            if (mashupFound != null) {
               String result = mmse.executeMashup(mashupFound.getJson(), parametersMap);
               result = "{result:" + result + "}";
               return result;
            } else {
View Full Code Here

TOP

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

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.