Package com.cosmo.data

Examples of com.cosmo.data.DataQuery


      xhtml.append(renderSection(group.getHeader(), ReportSection.DETAILGROUPHEADER, null));

      try
      {
         // Genera los GRUPOS DE DETALLE
         DataQuery query = this.report.getDataQuery(group.getDataQueryId());
         rs = query.execute(this.workspace);
         while (rs.next())
         {
            xhtml.append(renderSection(group.getDetail(), ReportSection.DETAILGROUPROW, rs));
         }
      }
View Full Code Here


    * @return Un mapa de instancias {@link DataQuery} que contienen los datos de las consultas.
    */
   public static HashMap<String, DataQuery> readDataQueries(Document doc)
   {
      Element pluginElement;
      DataQuery dq;
      HashMap<String, DataQuery> queries = new HashMap<String, DataQuery>();
     
      NodeList pluginList = doc.getElementsByTagName(XmlUtils.XML_TAG_DATAQUERY);
      for (int pidx = 0; pidx < pluginList.getLength(); pidx++)
      {
         Node pluginNode = pluginList.item(pidx);
         if (pluginNode.getNodeType() == Node.ELEMENT_NODE)
         {
            pluginElement = (Element) pluginNode;

            dq = new DataQuery();
            dq.setId(pluginElement.getAttribute(XML_ATT_ID));
            dq.setConnectionId(pluginElement.getAttribute(XML_ATT_CONNECTION));
            dq.setSqlQuery(pluginElement.getFirstChild().getNodeValue());
            queries.put(dq.getId(), dq);
         }
      }
     
      return queries;
   }
View Full Code Here

TOP

Related Classes of com.cosmo.data.DataQuery

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.