org.apache.chemistry.opencmis.server.support.query
Class QueryUtil

java.lang.Object
  extended by org.apache.chemistry.opencmis.server.support.query.QueryObject
      extended by org.apache.chemistry.opencmis.server.support.query.QueryUtil

public class QueryUtil
extends QueryObject

Class with static methods that contains convenience methods to repeating functionality in context with query and ANTLR parsing


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.chemistry.opencmis.server.support.query.QueryObject
QueryObject.JoinSpec, QueryObject.SortSpec
 
Field Summary
 
Fields inherited from class org.apache.chemistry.opencmis.server.support.query.QueryObject
colOrFuncAlias, columnReferences, from, froms, joinReferences, joinSpecs, selectReferences, sortSpecs, typeMgr, whereReferences
 
Constructor Summary
QueryUtil()
           
 
Method Summary
 String getErrorMessage(org.antlr.runtime.RecognitionException e)
           
 CmisQueryWalker getWalker(String statement)
           
 CmisQueryWalker traverseStatement(String statement, QueryObject queryObj, PredicateWalkerBase pw)
           
 CmisQueryWalker traverseStatementAndCatchExc(String statement, QueryObject queryObj, PredicateWalkerBase pw)
           
 
Methods inherited from class org.apache.chemistry.opencmis.server.support.query.QueryObject
addAlias, addJoin, addJoinReference, addSelectReference, addSortCriterium, addType, addWhereReference, getColumnReference, getColumnReferences, getErrorMessage, getJoinReferences, getJoins, getMainFromName, getMainTypeAlias, getOrderBys, getParentType, getParentType, getReferencedTypeQueryName, getRequestedFuncs, getRequestedProperties, getSelectAlias, getSelectReferences, getTypeDefinitionFromQueryName, getTypeQueryName, getTypes, getWhereReferences, resolveTypeForAlias, resolveTypeForColumnReference, resolveTypes, validateColumnReferenceAndResolveType, validateColumnReferenceAndResolveType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QueryUtil

public QueryUtil()
Method Detail

getWalker

public CmisQueryWalker getWalker(String statement)
                          throws UnsupportedEncodingException,
                                 IOException,
                                 org.antlr.runtime.RecognitionException
Throws:
UnsupportedEncodingException
IOException
org.antlr.runtime.RecognitionException

traverseStatement

public CmisQueryWalker traverseStatement(String statement,
                                         QueryObject queryObj,
                                         PredicateWalkerBase pw)
                                  throws UnsupportedEncodingException,
                                         IOException,
                                         org.antlr.runtime.RecognitionException
Throws:
UnsupportedEncodingException
IOException
org.antlr.runtime.RecognitionException

traverseStatementAndCatchExc

public CmisQueryWalker traverseStatementAndCatchExc(String statement,
                                                    QueryObject queryObj,
                                                    PredicateWalkerBase pw)

getErrorMessage

public String getErrorMessage(org.antlr.runtime.RecognitionException e)


Copyright © 2009-2011 The Apache Software Foundation. All Rights Reserved.