|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.slide.search.SearchQuery
org.apache.slide.search.basic.BasicQuery
org.apache.slide.search.basic.BasicQueryImpl
BasicQueryImpl represents the generic (store independent) implementation of BasicSearch.
Nested Class Summary |
Nested classes inherited from class org.apache.slide.search.basic.BasicQuery |
BasicQuery.ExpressionCompilerProvider |
Field Summary | |
(package private) IBasicExpressionFactory |
expressionFactory
|
static java.lang.String |
FROM_ELEMENT_MISSING
Message of a BadQueryException that is thrown if the query element does not contain a <from> element. |
static java.lang.String |
NO_QUERY_ELEMENT
Message of a BadQueryException that is thrown if the query element is null . |
protected NotNormalizer |
notNormalizer
the NotNormalizer, may be overridden in extending classes |
static java.lang.String |
NRESULTS_MISSING
Message of a BadQueryException that is thrown if the query element neither contains a <from> nor a <from> element. |
static java.lang.String |
PROP_OR_ALLPROP_ELEMENT_MISSING
Message of a BadQueryException that is thrown if the query element neither contains a <from> nor a <from> element. |
static java.lang.String |
SELECT_ELEMENT_MISSING
Message of a BadQueryException that is thrown if the query element does not contain a <select> element. |
Fields inherited from class org.apache.slide.search.basic.BasicQuery |
expressionCompilerProvider, limit, limitDefined, namespace, orderBy, propertyProvider, queryElement, queryScope, requestedProperties, rootExpression, slideUri, store, whereElement |
Fields inherited from class org.apache.slide.search.SearchQuery |
searchToken, structureHelper |
Constructor Summary | |
BasicQueryImpl()
Default constructor, to enable creation by reflection |
|
BasicQueryImpl(SearchToken searchToken)
Creates a BasicQueryImpl. |
|
BasicQueryImpl(SearchToken searchToken,
IBasicExpressionCompilerProvider expressionCompilerProvider)
Creates a BasicQueryImpl. |
Method Summary | |
protected OrderBy |
createNewOrderBy(org.jdom.Element orderByElement)
|
protected RequestedProperties |
createRequestedProperties(org.jdom.Element propElement)
This method may be overridden, if a store specific implementation adds new property semantic. |
SearchQueryResult |
execute()
Executes a request. |
IBasicExpressionFactory |
getExpressionFactory()
Method getExpressionFactory |
static QueryScope |
getScope(org.jdom.Element basicSearchElementJDOM)
Needed to decide, which implementation of BasicQuery to load (hier rausschmeissen, nach BasicSearchLanguage) |
void |
parseQuery(org.jdom.Element expressionElement,
PropertyProvider propertyProvider)
builds the internal structure from the JDOM tree |
void |
parseQueryElement(org.jdom.Element basicSearchElement,
PropertyProvider propertyProvider)
Builds the internal structure from the JDOM tree. |
void |
parseQueryElement(org.jdom.Element basicSearchElement,
PropertyProvider propertyProvider,
QueryScope queryScope)
Builds the internal structure from the JDOM tree. |
protected void |
parseQueryWithoutExpression(org.jdom.Element basicSearchElement)
builds the internal structure from the JDOM tree. |
RequestedProperties |
requestedProperties()
Method getSelectedProperties |
Methods inherited from class org.apache.slide.search.basic.BasicQuery |
getExpression, getLimit, getOrderBy, getPropertyProvider, getScope, getSearchToken, getSlidePath, getStore, init, isLimitDefined, setScope, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.apache.slide.search.basic.IBasicQuery |
getExpression, getLimit, getPropertyProvider, getScope, getSearchToken, getSlidePath, getStore, init, isLimitDefined |
Field Detail |
public static final java.lang.String NO_QUERY_ELEMENT
null
.
public static final java.lang.String FROM_ELEMENT_MISSING
public static final java.lang.String SELECT_ELEMENT_MISSING
public static final java.lang.String PROP_OR_ALLPROP_ELEMENT_MISSING
public static final java.lang.String NRESULTS_MISSING
protected NotNormalizer notNormalizer
IBasicExpressionFactory expressionFactory
Constructor Detail |
public BasicQueryImpl(SearchToken searchToken)
public BasicQueryImpl()
public BasicQueryImpl(SearchToken searchToken, IBasicExpressionCompilerProvider expressionCompilerProvider)
expressionCompilerProvider
- the provider which delivers the
expression compiler to use.Method Detail |
public SearchQueryResult execute() throws ServiceAccessException
execute
in interface IBasicQuery
execute
in class BasicQuery
ServiceAccessException
public void parseQuery(org.jdom.Element expressionElement, PropertyProvider propertyProvider) throws BadQueryException
parseQuery
in class BasicQuery
expressionElement
- the (root) expression Element.propertyProvider
- the PropertyProvider to use (may be
null
).
BadQueryException
public RequestedProperties requestedProperties()
requestedProperties
in interface IBasicQuery
requestedProperties
in class BasicQuery
public void parseQueryElement(org.jdom.Element basicSearchElement, PropertyProvider propertyProvider) throws BadQueryException
parseQueryElement
in interface IBasicQuery
parseQueryElement
in class BasicQuery
basicSearchElement
- the (root) expression Element.propertyProvider
- the PropertyProvider to use (may be
null
).
BadQueryException
public void parseQueryElement(org.jdom.Element basicSearchElement, PropertyProvider propertyProvider, QueryScope queryScope) throws BadQueryException
basicSearchElement
- the (root) expression Element.propertyProvider
- the PropertyProvider to use (may be
null
).
BadQueryException
public static QueryScope getScope(org.jdom.Element basicSearchElementJDOM) throws BadQueryException
basicSearchElementJDOM
- an Element
BadQueryException
protected void parseQueryWithoutExpression(org.jdom.Element basicSearchElement) throws BadQueryException
parseQueryWithoutExpression
in class BasicQuery
basicSearchElement
- an Element
BadQueryException
public IBasicExpressionFactory getExpressionFactory()
IBasicQuery
getExpressionFactory
in interface IBasicQuery
getExpressionFactory
in class BasicQuery
protected OrderBy createNewOrderBy(org.jdom.Element orderByElement) throws InvalidQueryException
InvalidQueryException
protected RequestedProperties createRequestedProperties(org.jdom.Element propElement) throws BadQueryException
propElement
- an Element
BadQueryException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |