Class BaseQuery
- java.lang.Object
-
- org.alfresco.repo.search.impl.querymodel.impl.BaseQuery
-
- All Implemented Interfaces:
Query
- Direct Known Subclasses:
LuceneQuery
public class BaseQuery extends java.lang.Object implements Query
- Author:
- andyh
-
-
Constructor Summary
Constructors Constructor Description BaseQuery(java.util.List<Column> columns, Source source, Constraint constraint, java.util.List<Ordering> orderings)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<Column>
getColumns()
Get the columns to return from the query This may not be null and must contain at least one entry.Constraint
getConstraint()
Get the constraints for the query.java.util.List<Ordering>
getOrderings()
Get any orderings (may be an empty list or null)Source
getSource()
Get the source for the query Must not be null.java.lang.String
toString()
-
-
-
Constructor Detail
-
BaseQuery
public BaseQuery(java.util.List<Column> columns, Source source, Constraint constraint, java.util.List<Ordering> orderings)
-
-
Method Detail
-
getColumns
public java.util.List<Column> getColumns()
Description copied from interface:Query
Get the columns to return from the query This may not be null and must contain at least one entry. "*" "A.*" etc column specifications are not supported. These should have been previously expanded between any query parse and building the query model.- Specified by:
getColumns
in interfaceQuery
-
getConstraint
public Constraint getConstraint()
Description copied from interface:Query
Get the constraints for the query. This is as defined - with no hoisting etc. Hoisting is the problem of the implementation layer. May be null for unconstrained.- Specified by:
getConstraint
in interfaceQuery
- Returns:
- Constraint
-
getOrderings
public java.util.List<Ordering> getOrderings()
Description copied from interface:Query
Get any orderings (may be an empty list or null)- Specified by:
getOrderings
in interfaceQuery
-
getSource
public Source getSource()
Description copied from interface:Query
Get the source for the query Must not be null.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-