Examples of TitleBean


Examples of com.hygj.bean.TitleBean

      pt.setString(1, type);
      rs=pt.executeQuery();
      //��װ�����
      results=new ArrayList();
      while(rs.next()){
        title=new TitleBean(rs.getString(1),rs.getString(2));
        results.add(title);
      }
    } catch (SQLException e) {
      // TODO Auto-generated catch block
      e.printStackTrace();
View Full Code Here

Examples of org.xdams.page.view.bean.TitleBean

  public List loadTitleBean(QueryResult qr, XWConnection xwConn) throws SQLException, XWException {
    elements = new ArrayList();
    StringBuffer buffer = new StringBuffer();
    for (int i = 0; i < indexes.size(); i++) {
      TitleBean titleBean = new TitleBean();
      int num = ((Integer) indexes.get(i)).intValue();
      int numDoc = xwConn.getNumDoc(xwConn.connection, xwConn.getTheDb(), qr, num, buffer);
      titleBean.setPhysDoc(String.valueOf(numDoc));
      Title titArch = xwConn.getTitle(xwConn.connection, xwConn.getTheDb(), qr, num);
      titleBean.setTitle(titArch.getTitle());
      int firstSon = xwConn.getNumDocFirstSon(numDoc);
      titleBean.setFirstSon(firstSon);
      try {
        it.highwaytech.db.HierPath thePath = xwConn.getHierPath(numDoc);
        titleBean.setHierPath(thePath);
      } catch (Exception e) {
      }
      elements.add(titleBean);
    }
    return elements;
View Full Code Here

Examples of org.xdams.page.view.bean.TitleBean

  public List loadElementsXML(QueryResult qr, XWConnection xwConn) throws SQLException, XWException {
    elements = new ArrayList();
    StringBuffer buffer = new StringBuffer();
    for (int i = 0; i < indexes.size(); i++) {
      TitleBean titleBean = new TitleBean();
      int num = ((Integer) indexes.get(i)).intValue();
      int numDoc = xwConn.getNumDoc(xwConn.connection, xwConn.getTheDb(), qr, num, buffer);
      titleBean.setPhysDoc(String.valueOf(numDoc));
      Title titArch = xwConn.getTitle(xwConn.connection, xwConn.getTheDb(), qr, num);
      titleBean.setTitle(titArch.getTitle());
      int firstSon = xwConn.getNumDocFirstSon(numDoc);
      titleBean.setFirstSon(firstSon);
      String xmlDoc = xwConn.getSingleXMLFromNumDoc(numDoc);
      try {
        it.highwaytech.db.HierPath thePath = xwConn.getHierPath(numDoc);
        titleBean.setHierPath(thePath);
      } catch (Exception e) {
      }
      titleBean.setXmlDoc(xmlDoc);
      elements.add(titleBean);
    }
    return elements;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.