Package cc.concurrent.config.server.model

Examples of cc.concurrent.config.server.model.App


        HtmlView htmlView = DiffUtil.diff(newXml, oldXml);
        return htmlView;
    }

    private void checkAppName(String appName) {
        App app = appDao.getApp(appName);
        checkArgument(app != null, "app %s don't exsit", appName);
    }
View Full Code Here


    /**
     * app添加页面
     */
    @RequestMapping(value = "/addApp", method = RequestMethod.GET)
    public String addApp(Model model) {
        model.addAttribute("app", new App());
        return "addApp";
    }
View Full Code Here

    public List<App> getApps() {
        String sql = "select app_name, description, creator, create_time from config_app";
        return getNamedParameterJdbcTemplate().query(sql, new RowMapper<App>() {
            @Override
            public App mapRow(ResultSet rs, int rowNum) throws SQLException {
                return new App(rs.getString(1), rs.getString(2), rs.getString(3), rs.getDate(4));
            }
        });
    }
View Full Code Here

    public App getApp(String appName) {
        String sql = "select app_name, description, creator, create_time from config_app where app_name=?";
        List<App> r = getJdbcTemplate().query(sql, new Object[]{appName}, new RowMapper<App>() {
            @Override
            public App mapRow(ResultSet rs, int rowNum) throws SQLException {
                return new App(rs.getString(1), rs.getString(2), rs.getString(3), rs.getDate(4));
            }
        });
        return !r.isEmpty() ? r.get(0) : null;
    }
View Full Code Here

TOP

Related Classes of cc.concurrent.config.server.model.App

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.