Package com.sas.lsaf.query
Class Query
java.lang.Object
com.sas.lsaf.query.Query
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
AuditEntryQuery,MembershipQuery,PermissionsQuery,RecycleBinItemQuery,RepositoryItemQuery
This class represents a simplified API to generate criteria to search for items. This is a convenient approach for
functionality such as "search" user interfaces, in which ad-hoc queries are built and constrained interactively.
- Since:
- 2.3
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the constraint to use when executing the query.Gets the columns to include in the query output.Gets the constraint to use when executing the query.getOrder()Gets the order to use in the query output.final QueryincludeColumnNames(boolean includeColumnNames) Sets whether to include column names in the query output.booleanIndicates whether to include column names in the query output.final QuerySets the order for the specified columns to order, according to the default sort order, which is descending and case-sensitive.final QuerySets the order to use in the query output.Sets the columns to include in the query output.Sets the list of columns to include in the query output.voidsetColumns(List<Column> columns) Sets the columns to include in the query output.voidsetConstraint(Constraint constraint) Sets the constraint to use when executing the query.voidsetIncludeColumnNames(boolean includeColumnNames) Sets whether to include column names in the query output.voidSets the order to use in the query output.toString()
-
Constructor Details
-
Query
public Query()The default constructor.
-
-
Method Details
-
getColumns
Gets the columns to include in the query output.- Returns:
- The columns to include in the query output.
-
setColumns
Sets the columns to include in the query output.- Parameters:
columns- The columns to include in the query output.
-
getConstraint
Gets the constraint to use when executing the query.- Returns:
- The constraint to use when executing the query.
-
setConstraint
Sets the constraint to use when executing the query.- Parameters:
constraint- The constraint to use when executing the query.
-
getOrder
Gets the order to use in the query output.- Returns:
- The order to use in the query output.
-
setOrder
Sets the order to use in the query output.- Parameters:
order- The order to use in the query output.
-
isIncludeColumnNames
public boolean isIncludeColumnNames()Indicates whether to include column names in the query output. The default is true.- Returns:
- Whether to include column names in the query output.
-
setIncludeColumnNames
public void setIncludeColumnNames(boolean includeColumnNames) Sets whether to include column names in the query output. The default is true.- Parameters:
includeColumnNames- Indicates whether to include column names in the query output.
-
select
Sets the columns to include in the query output.- Returns:
- The updated Query object.
-
select
Sets the list of columns to include in the query output.- Returns:
- The updated Query object.
-
constrain
Sets the constraint to use when executing the query.- Returns:
- The updated Query object.
-
order
Sets the order for the specified columns to order, according to the default sort order, which is descending and case-sensitive.- Returns:
- The updated Query object.
-
order
Sets the order to use in the query output.- Returns:
- The updated Query object.
-
includeColumnNames
Sets whether to include column names in the query output. The default is true.- Returns:
- The updated Query object.
-
toString
-