Package wblog.domain

Examples of wblog.domain.Article


            article = qr.query("select * from Article where id=?", new BeanHandler<Article>(Article.class), this.article.id);
            if (article == null) {
                return new ErrorResult(404);
            }
        } else {
            article = new Article();
        }
        return new TemplateResult(this);
    }
View Full Code Here


                new ResultSetHandler<List<Article>>() {
                    @Override
                    public List<Article> handle(ResultSet rs) throws SQLException {
                        List<Article> list = new ArrayList<Article>();
                        while (rs.next()) {
                            Article article = new Article();
                            article.id = rs.getInt("id");
                            article.title = rs.getString("title");
                            article.content = rs.getString("content");
                            article.postDate = rs.getTimestamp("postDate");
                            article.tags = rs.getString("tags");
View Full Code Here

TOP

Related Classes of wblog.domain.Article

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.