Package org.jresearch.gossip.beans.forum

Examples of org.jresearch.gossip.beans.forum.Group


        try {
            ArrayList groups = new ArrayList();
            rs = (ResultSet) st.executeQuery();

            while (rs.next()) {
                Group gr = new Group();
                gr.setGroupid(rs.getInt("groupid"));
                gr.setName(rs.getString("group_name"));
                getForums(gr, userStatus, filled);
                groups.add(gr);
            }

            return groups;
View Full Code Here


    public Group getGroupInfo(String gid) throws SQLException {
        Connection connection = this.dataSource.getConnection();
        PreparedStatement st = connection.prepareStatement(dbDriver
                .getQueries().getForumQueries().getSql_GET_GROUP_INFO());
        ResultSet rs = null;
        Group group = new Group();

        try {
            st.setInt(1, Integer.parseInt(gid));
            rs = st.executeQuery();

            if (rs.next()) {
                group.setName(rs.getString("group_name"));
                group.setSort(rs.getString("group_sort"));
                group.setGroupid(rs.getInt("groupid"));
            }
        } finally {
            if (rs != null) {
                rs.close();
            }
View Full Code Here

      throws SystemException {
    ForumDAO dao = ForumDAO.getInstance();
    ProcessGroupForm pgForm = (ProcessGroupForm) form;
    try {
     
      Group group = dao.getGroupInfo(pgForm.getGid());
      request.setAttribute("group_name", group.getName());
      request.setAttribute("group_sort", group.getSort());
      request.setAttribute("gid", pgForm.getGid());
    } catch (SQLException sqle) {
      getServlet().log("Connection.process", sqle);
      throw new SystemException(sqle);
    }
View Full Code Here

TOP

Related Classes of org.jresearch.gossip.beans.forum.Group

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.