org.rhq.enterprise.server.search.execution
Class SearchTranslationManager

java.lang.Object
  extended by org.rhq.enterprise.server.search.execution.SearchTranslationManager

public class SearchTranslationManager
extends Object

Author:
Joseph Marques

Constructor Summary
SearchTranslationManager(String alias, org.rhq.core.domain.auth.Subject subject, org.rhq.core.domain.search.SearchSubsystem context)
           
 
Method Summary
static RHQLComparisonOperator getComparisonOperatorFromTokenType(int tokenType, String value)
           
static List<RHQLTerm> getFromAST(org.antlr.runtime.tree.CommonTree tree)
           
 String getJPQLSelectStatement()
           
 String getJPQLWhereFragment()
           
static RHQLTreeOperator getTreeOperatorFromTokenType(int tokenType)
           
 void setExpression(String expression)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SearchTranslationManager

public SearchTranslationManager(String alias,
                                org.rhq.core.domain.auth.Subject subject,
                                org.rhq.core.domain.search.SearchSubsystem context)
Method Detail

setExpression

public void setExpression(String expression)

getJPQLSelectStatement

public String getJPQLSelectStatement()
                              throws Exception
Throws:
Exception

getJPQLWhereFragment

public String getJPQLWhereFragment()
                            throws Exception
Throws:
Exception

getFromAST

public static List<RHQLTerm> getFromAST(org.antlr.runtime.tree.CommonTree tree)

getComparisonOperatorFromTokenType

public static RHQLComparisonOperator getComparisonOperatorFromTokenType(int tokenType,
                                                                        String value)

getTreeOperatorFromTokenType

public static RHQLTreeOperator getTreeOperatorFromTokenType(int tokenType)


Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.