public class ServiceQueryBuilderImpl extends QueryBuilder<ServiceQueryBuilderImpl,ServiceQueryInterface<com.google.api.ads.adwords.jaxws.v201710.cm.Page>> implements ServiceQueryInterface.BuilderInterface<com.google.api.ads.adwords.jaxws.v201710.cm.Page,com.google.api.ads.adwords.jaxws.v201710.cm.SortOrder>
ServiceQuery
object.
This builder is not thread-safe.
QueryBuilder.WhereBuilder
ServiceQueryInterface.BuilderInterface.ServiceWhereBuilderInterface<PageT,SortOrderT,BuilderT extends ServiceQueryInterface.BuilderInterface<PageT,SortOrderT>>
QueryBuilderInterface.WhereBuilderInterface<QueryT>
whereBuilders
Modifier and Type | Method and Description |
---|---|
ServiceQuery |
build()
Builds the query from the attributes of this builder.
|
ServiceQuery.Builder |
fields(EntityField... fields)
Selects the provided fields for building as a query.
|
ServiceQuery.Builder |
fields(Iterable<String> fields)
Selects the provided fields for building a report query.
|
ServiceQuery.Builder |
fields(String... fields)
Selects the provided fields for building as a query.
|
ServiceQuery.Builder |
limit(int startIndex,
int pageSize)
Specifies the LIMIT clause using the provided start index and page size.
|
ServiceQuery.Builder |
orderBy(EntityField field)
Adds the provided field to the order-by list.
|
ServiceQuery.Builder |
orderBy(EntityField field,
com.google.api.ads.adwords.jaxws.v201710.cm.SortOrder order)
Adds the provided field to the order-by list with the provided order direction.
|
ServiceQuery.Builder |
orderBy(String field)
Adds the provided field to the order-by list.
|
ServiceQuery.Builder |
orderBy(String field,
com.google.api.ads.adwords.jaxws.v201710.cm.SortOrder order)
Adds the provided field to the order-by list with the provided order direction.
|
com.google.api.ads.adwords.jaxws.utils.v201710.ServiceQueryBuilderImpl.ServiceWhereBuilder |
where(EntityField field)
Set the condition of this query as the WHERE clause.
|
com.google.api.ads.adwords.jaxws.utils.v201710.ServiceQueryBuilderImpl.ServiceWhereBuilder |
where(String field)
Set the condition of this query as the WHERE clause.
|
public com.google.api.ads.adwords.jaxws.utils.v201710.ServiceQueryBuilderImpl.ServiceWhereBuilder where(EntityField field)
ServiceQueryInterface.BuilderInterface
where
in interface ServiceQueryInterface.BuilderInterface<com.google.api.ads.adwords.jaxws.v201710.cm.Page,com.google.api.ads.adwords.jaxws.v201710.cm.SortOrder>
field
- the field of the given entity to be filtered onpublic com.google.api.ads.adwords.jaxws.utils.v201710.ServiceQueryBuilderImpl.ServiceWhereBuilder where(String field)
QueryBuilderInterface
where
in interface QueryBuilderInterface<ServiceQueryInterface<com.google.api.ads.adwords.jaxws.v201710.cm.Page>>
where
in interface ServiceQueryInterface.BuilderInterface<com.google.api.ads.adwords.jaxws.v201710.cm.Page,com.google.api.ads.adwords.jaxws.v201710.cm.SortOrder>
field
- the field of the given entity to be filtered onpublic ServiceQuery.Builder fields(EntityField... fields)
ServiceQueryInterface.BuilderInterface
fields
in interface ServiceQueryInterface.BuilderInterface<com.google.api.ads.adwords.jaxws.v201710.cm.Page,com.google.api.ads.adwords.jaxws.v201710.cm.SortOrder>
fields
- the provided fields to be selectedpublic ServiceQuery.Builder fields(String... fields)
QueryBuilderInterface
fields
in interface QueryBuilderInterface<ServiceQueryInterface<com.google.api.ads.adwords.jaxws.v201710.cm.Page>>
fields
in interface ServiceQueryInterface.BuilderInterface<com.google.api.ads.adwords.jaxws.v201710.cm.Page,com.google.api.ads.adwords.jaxws.v201710.cm.SortOrder>
fields
- the provided fields to be selectedpublic ServiceQuery.Builder fields(Iterable<String> fields)
QueryBuilderInterface
fields
in interface QueryBuilderInterface<ServiceQueryInterface<com.google.api.ads.adwords.jaxws.v201710.cm.Page>>
fields
in interface ServiceQueryInterface.BuilderInterface<com.google.api.ads.adwords.jaxws.v201710.cm.Page,com.google.api.ads.adwords.jaxws.v201710.cm.SortOrder>
fields
- the fields to be selectedpublic ServiceQuery.Builder orderBy(EntityField field)
ServiceQueryInterface.BuilderInterface
orderBy
in interface ServiceQueryInterface.BuilderInterface<com.google.api.ads.adwords.jaxws.v201710.cm.Page,com.google.api.ads.adwords.jaxws.v201710.cm.SortOrder>
field
- the field to be added to the ORDER BY listpublic ServiceQuery.Builder orderBy(EntityField field, com.google.api.ads.adwords.jaxws.v201710.cm.SortOrder order)
ServiceQueryInterface.BuilderInterface
orderBy
in interface ServiceQueryInterface.BuilderInterface<com.google.api.ads.adwords.jaxws.v201710.cm.Page,com.google.api.ads.adwords.jaxws.v201710.cm.SortOrder>
field
- the field to be added to the ORDER BY listpublic ServiceQuery.Builder orderBy(String field)
ServiceQueryInterface.BuilderInterface
orderBy
in interface ServiceQueryInterface.BuilderInterface<com.google.api.ads.adwords.jaxws.v201710.cm.Page,com.google.api.ads.adwords.jaxws.v201710.cm.SortOrder>
field
- the field to be added to the ORDER BY listpublic ServiceQuery.Builder orderBy(String field, com.google.api.ads.adwords.jaxws.v201710.cm.SortOrder order)
ServiceQueryInterface.BuilderInterface
orderBy
in interface ServiceQueryInterface.BuilderInterface<com.google.api.ads.adwords.jaxws.v201710.cm.Page,com.google.api.ads.adwords.jaxws.v201710.cm.SortOrder>
field
- the field to be added to the ORDER BY listpublic ServiceQuery.Builder limit(int startIndex, int pageSize)
ServiceQueryInterface.BuilderInterface
limit
in interface ServiceQueryInterface.BuilderInterface<com.google.api.ads.adwords.jaxws.v201710.cm.Page,com.google.api.ads.adwords.jaxws.v201710.cm.SortOrder>
startIndex
- the specified start index for the LIMIT clausepageSize
- the specified page size for the LIMIT clausepublic ServiceQuery build()
QueryBuilderInterface
build
in interface QueryBuilderInterface<ServiceQueryInterface<com.google.api.ads.adwords.jaxws.v201710.cm.Page>>
build
in interface ServiceQueryInterface.BuilderInterface<com.google.api.ads.adwords.jaxws.v201710.cm.Page,com.google.api.ads.adwords.jaxws.v201710.cm.SortOrder>
Copyright © 2018. All Rights Reserved.