public static class ReportQuery.Builder extends Object implements ReportQueryInterface.BuilderInterface
ReportQuery
object.
This builder is not thread-safe.
ReportQueryInterface.BuilderInterface.ReportWhereBuilderInterface<BuilderT extends ReportQueryInterface.BuilderInterface>
QueryBuilderInterface.WhereBuilderInterface<QueryT>
Constructor and Description |
---|
Builder()
Constructs a new report query builder.
|
Builder(ReportQueryInterface.BuilderInterface builderInterface)
Constructs a new report query builder by copying all properties from the passed report query
builder.
|
Modifier and Type | Method and Description |
---|---|
ReportQuery |
build()
Builds the query from the attributes of this builder.
|
ReportQuery.Builder |
during(Enum<?> dateRange)
Specifies a date range for the DURING clause of a report query.
|
ReportQuery.Builder |
during(org.joda.time.LocalDate startDate,
org.joda.time.LocalDate endDate)
Specifies start and end dates for the DURING clause of a report query.
|
ReportQuery.Builder |
fields(Iterable<String> fields)
Selects the provided fields for building a report query.
|
ReportQuery.Builder |
fields(String... fields)
Selects the provided fields for building as a query.
|
ReportQuery.Builder |
from(Enum<?> reportType)
Specifies a report type to be used as the FROM clause of a report query.
|
ReportQuery.Builder |
from(String reportType)
Specifies a report type to be used as the FROM clause of a report query.
|
ReportQueryInterface.BuilderInterface.ReportWhereBuilderInterface<ReportQuery.Builder> |
where(String field)
Set the condition of this query as the WHERE clause.
|
public Builder()
public Builder(ReportQueryInterface.BuilderInterface builderInterface)
builderInterface
- the report query builder whose properties will be copied to.public ReportQueryInterface.BuilderInterface.ReportWhereBuilderInterface<ReportQuery.Builder> where(String field)
QueryBuilderInterface
where
in interface QueryBuilderInterface<ReportQueryInterface>
where
in interface ReportQueryInterface.BuilderInterface
field
- the field of the given entity to be filtered onpublic ReportQuery.Builder fields(String... fields)
QueryBuilderInterface
fields
in interface QueryBuilderInterface<ReportQueryInterface>
fields
in interface ReportQueryInterface.BuilderInterface
fields
- the provided fields to be selectedpublic ReportQuery.Builder fields(Iterable<String> fields)
QueryBuilderInterface
fields
in interface QueryBuilderInterface<ReportQueryInterface>
fields
in interface ReportQueryInterface.BuilderInterface
fields
- the fields to be selectedpublic ReportQuery.Builder from(Enum<?> reportType)
ReportQueryInterface.BuilderInterface
from
in interface ReportQueryInterface.BuilderInterface
reportType
- the report type to be used as the FROM clausepublic ReportQuery.Builder from(String reportType)
ReportQueryInterface.BuilderInterface
from
in interface ReportQueryInterface.BuilderInterface
reportType
- the report type to be used as the FROM clausepublic ReportQuery.Builder during(Enum<?> dateRange)
ReportQueryInterface.BuilderInterface
during
in interface ReportQueryInterface.BuilderInterface
dateRange
- the date range to be used in the DURING clausepublic ReportQuery.Builder during(org.joda.time.LocalDate startDate, org.joda.time.LocalDate endDate)
ReportQueryInterface.BuilderInterface
during
in interface ReportQueryInterface.BuilderInterface
startDate
- the start date to be used in the DURING clauseendDate
- the end date to be used in the DURING clausepublic ReportQuery build()
QueryBuilderInterface
build
in interface QueryBuilderInterface<ReportQueryInterface>
build
in interface ReportQueryInterface.BuilderInterface
Copyright © 2018. All Rights Reserved.