Apache CXF API

org.apache.cxf.jaxrs.ext.search.sql
Class SQLPrinterVisitor<T>

java.lang.Object
  extended by org.apache.cxf.jaxrs.ext.search.sql.SQLPrinterVisitor<T>
All Implemented Interfaces:
SearchConditionVisitor<T>

public class SQLPrinterVisitor<T>
extends Object
implements SearchConditionVisitor<T>


Constructor Summary
SQLPrinterVisitor(Map<String,String> fieldMap, String table, String... columns)
           
SQLPrinterVisitor(String table, String... columns)
           
 
Method Summary
 String getResult()
          Recover the accumulated query
 void visit(SearchCondition<T> sc)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SQLPrinterVisitor

public SQLPrinterVisitor(String table,
                         String... columns)

SQLPrinterVisitor

public SQLPrinterVisitor(Map<String,String> fieldMap,
                         String table,
                         String... columns)
Method Detail

visit

public void visit(SearchCondition<T> sc)
Specified by:
visit in interface SearchConditionVisitor<T>

getResult

public String getResult()
Description copied from interface: SearchConditionVisitor
Recover the accumulated query

Specified by:
getResult in interface SearchConditionVisitor<T>
Returns:
query string

Apache CXF API

Apache CXF