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)
QueryBuilderInterfacewhere in interface QueryBuilderInterface<ReportQueryInterface>where in interface ReportQueryInterface.BuilderInterfacefield - the field of the given entity to be filtered onpublic ReportQuery.Builder fields(String... fields)
QueryBuilderInterfacefields in interface QueryBuilderInterface<ReportQueryInterface>fields in interface ReportQueryInterface.BuilderInterfacefields - the provided fields to be selectedpublic ReportQuery.Builder fields(Iterable<String> fields)
QueryBuilderInterfacefields in interface QueryBuilderInterface<ReportQueryInterface>fields in interface ReportQueryInterface.BuilderInterfacefields - the fields to be selectedpublic ReportQuery.Builder from(Enum<?> reportType)
ReportQueryInterface.BuilderInterfacefrom in interface ReportQueryInterface.BuilderInterfacereportType - the report type to be used as the FROM clausepublic ReportQuery.Builder from(String reportType)
ReportQueryInterface.BuilderInterfacefrom in interface ReportQueryInterface.BuilderInterfacereportType - the report type to be used as the FROM clausepublic ReportQuery.Builder during(Enum<?> dateRange)
ReportQueryInterface.BuilderInterfaceduring in interface ReportQueryInterface.BuilderInterfacedateRange - the date range to be used in the DURING clausepublic ReportQuery.Builder during(org.joda.time.LocalDate startDate, org.joda.time.LocalDate endDate)
ReportQueryInterface.BuilderInterfaceduring in interface ReportQueryInterface.BuilderInterfacestartDate - the start date to be used in the DURING clauseendDate - the end date to be used in the DURING clausepublic ReportQuery build()
QueryBuilderInterfacebuild in interface QueryBuilderInterface<ReportQueryInterface>build in interface ReportQueryInterface.BuilderInterfaceCopyright © 2018. All Rights Reserved.