001 /* 002 // $Id: //open/mondrian/src/main/mondrian/mdx/QueryPrintWriter.java#2 $ 003 // This software is subject to the terms of the Common Public License 004 // Agreement, available at the following URL: 005 // http://www.opensource.org/licenses/cpl.html. 006 // Copyright (C) 2006-2006 Julian Hyde 007 // All Rights Reserved. 008 // You must accept the terms of that agreement to use this software. 009 */ 010 package mondrian.mdx; 011 012 import mondrian.olap.Parameter; 013 014 import java.io.PrintWriter; 015 import java.io.Writer; 016 import java.util.HashSet; 017 import java.util.Set; 018 019 /** 020 * PrintWriter used for unparsing queries. Remembers which parameters have 021 * been printed. The first time, they print themselves as "Parameter"; 022 * subsequent times as "ParamRef". 023 */ 024 public class QueryPrintWriter extends PrintWriter { 025 final Set<Parameter> parameters = new HashSet<Parameter>(); 026 027 public QueryPrintWriter(Writer writer) { 028 super(writer); 029 } 030 } 031 032 // End QueryPrintWriter.java