KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > mondrian > mdx > QueryPrintWriter


1 /*
2 // $Id: //open/mondrian/src/main/mondrian/mdx/QueryPrintWriter.java#2 $
3 // This software is subject to the terms of the Common Public License
4 // Agreement, available at the following URL:
5 // http://www.opensource.org/licenses/cpl.html.
6 // Copyright (C) 2006-2006 Julian Hyde
7 // All Rights Reserved.
8 // You must accept the terms of that agreement to use this software.
9 */

10 package mondrian.mdx;
11
12 import mondrian.olap.Parameter;
13
14 import java.io.PrintWriter JavaDoc;
15 import java.io.Writer JavaDoc;
16 import java.util.HashSet JavaDoc;
17 import java.util.Set JavaDoc;
18
19 /**
20  * PrintWriter used for unparsing queries. Remembers which parameters have
21  * been printed. The first time, they print themselves as "Parameter";
22  * subsequent times as "ParamRef".
23  */

24 public class QueryPrintWriter extends PrintWriter JavaDoc {
25     final Set JavaDoc<Parameter> parameters = new HashSet JavaDoc<Parameter>();
26
27     public QueryPrintWriter(Writer JavaDoc writer) {
28         super(writer);
29     }
30 }
31
32 // End QueryPrintWriter.java
33
Popular Tags