public class QueryObject extends Object
Modifier and Type | Class and Description |
---|---|
static class |
QueryObject.JoinSpec |
class |
QueryObject.SortSpec |
Modifier and Type | Field and Description |
---|---|
protected Map<String,CmisSelector> |
colOrFuncAlias |
protected Map<Integer,CmisSelector> |
columnReferences |
protected String |
from
main from alias name
|
protected Map<String,String> |
froms
map from alias name to type query name
|
protected List<CmisSelector> |
joinReferences |
protected List<QueryObject.JoinSpec> |
joinSpecs |
protected List<String> |
predefinedQueryNames |
protected List<CmisSelector> |
selectReferences |
protected List<QueryObject.SortSpec> |
sortSpecs |
protected TypeManager |
typeMgr |
protected Map<Integer,String> |
typeReferences |
protected List<CmisSelector> |
whereReferences |
Constructor and Description |
---|
QueryObject() |
QueryObject(TypeManager tm) |
protected TypeManager typeMgr
protected final List<CmisSelector> selectReferences
protected final List<CmisSelector> whereReferences
protected final List<CmisSelector> joinReferences
protected final Map<String,CmisSelector> colOrFuncAlias
protected String from
protected final List<QueryObject.JoinSpec> joinSpecs
protected final Map<Integer,CmisSelector> columnReferences
protected final List<QueryObject.SortSpec> sortSpecs
public QueryObject()
public QueryObject(TypeManager tm)
public Map<Integer,CmisSelector> getColumnReferences()
public CmisSelector getColumnReference(Integer token)
public String getErrorMessage()
public List<CmisSelector> getSelectReferences()
public void addSelectReference(org.antlr.runtime.tree.Tree node, CmisSelector selRef)
public void addAlias(String aliasName, CmisSelector aliasRef)
public CmisSelector getSelectAlias(String aliasName)
public String getMainTypeAlias()
public TypeDefinition getTypeDefinitionFromQueryName(String queryName)
public TypeDefinition getParentType(TypeDefinition td)
public TypeDefinition getParentType(String typeId)
public TypeDefinition getMainFromName()
public Map<String,String> getRequestedPropertiesByAlias()
@Deprecated public Map<String,String> getRequestedProperties()
@Deprecated public Map<String,String> getRequestedFuncs()
public Map<String,String> getRequestedFuncsByAlias()
public void addJoinReference(org.antlr.runtime.tree.Tree node, CmisSelector reference)
public List<CmisSelector> getJoinReferences()
public List<QueryObject.JoinSpec> getJoins()
public void addWhereReference(org.antlr.runtime.tree.Tree node, CmisSelector reference)
public List<CmisSelector> getWhereReferences()
public void addWhereTypeReference(org.antlr.runtime.tree.Tree node, String qualifier)
public List<QueryObject.SortSpec> getOrderBys()
public void addSortCriterium(org.antlr.runtime.tree.Tree node, ColumnReference colRef, boolean ascending)
public List<TypeDefinition> getJoinedSecondaryTypes()
public boolean resolveTypes()
protected void resolveTypeForAlias(ColumnReference colRef)
protected void resolveTypeForColumnReference(ColumnReference colRef)
public boolean isPredfinedQueryName(String name)
protected void validateColumnReferenceAndResolveType(ColumnReference colRef)
protected void validateColumnReferenceAndResolveType(TypeDefinition td, ColumnReference colRef)
Copyright © 2009-2013 The Apache Software Foundation. All Rights Reserved.