KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > calipso > reportgenerator > common > JasperReportQuery


1 package com.calipso.reportgenerator.common;
2
3
4 import net.sf.jasperreports.engine.JRQuery;
5 import net.sf.jasperreports.engine.JRQueryChunk;
6
7 /**
8  *
9  * User: jbassino
10  * Date: 01/06/2004
11  * Time: 14:20:41
12  *
13  */

14 public class JasperReportQuery implements JRQuery {
15
16   private String JavaDoc sqlText = "";
17
18   public JasperReportQuery(String JavaDoc queryText) {
19     sqlText = queryText;
20   }
21
22   public JRQueryChunk[] getChunks() {
23     return new JRQueryChunk[0];
24   }
25
26   public String JavaDoc getText() {
27     return sqlText;
28   }
29
30   public void setText(String JavaDoc sqlQuery){
31     sqlText = sqlQuery;
32   }
33 }
34
Popular Tags