HERE Android SDK Developer's Guide

QueryBuilder

The class QueryBuilder is a member of com.here.android.mpa.customlocation .

Class Summary

public class QueryBuilder

extends java.lang.Object

An utility class to construct a query of standard attribute(s), applying one or more conditions.

Deprecated: As of SDK 3.3.

[For complete information, see the section Class Details]

Nested Class Summary

Table 1. Nested Classes in QueryBuilder
Nested Classes

public static final enumeration QueryBuilder.Attribute

Contains all the attributes name can be used within the query.

public static final enumeration QueryBuilder.Condition

Contains all the conditions can be used within the query.

public static final enumeration QueryBuilder.Operation

Contains all the operations can be used within the query.

Constructor Summary

Table 2. Constructors in QueryBuilder
Constructors

QueryBuilder (Condition condition, Attribute name, String value)

Deprecated: As of SDK 3.3.

Public Constructor.

Method Summary

Table 3. Methods in QueryBuilder
Methods

public QueryBuilder addCondition (Operation operation, Condition condition, Attribute name, String value)

Deprecated: As of SDK 3.3.

Add a condition to the standard attribute query.

Class Details

Deprecated: As of SDK 3.3.

Use CLE2Request instead.

An utility class to construct a query of standard attribute(s), applying one or more conditions. All conditions are case insensitive.

For example, to create a query with only 1 condition:

new QueryBuilder(Condition.EXACT_MATCH, Attribute.NAME1, "abc");

To create a query with multiple conditions, add more conditions with the QueryBuilder.Operation specified, like below:

new QueryBuilder(Condition.EXACT_MATCH, Attribute.NAME1, "abc"). addCondition(Operation.OR, Condition.EXACT_MATCH, Attribute.NAME2, "def").

Constructor Details

QueryBuilder (Condition condition, Attribute name, String value)

Deprecated: As of SDK 3.3.

Use setQuery(String) instead.

Public Constructor.

Creates a standard attribute query with one condition.

Parameters:

  • condition

    One of the values in QueryBuilder.Condition that describes the filter to be applied on the attribute with name when the specified value satisfies the condition. For example, Condition#EXACT_MATCH of the attribute Attribute#NAME1 to the value of "abc".

  • name

    A Attribute representing the name of the attribute to apply the condition filter.

  • value

    A String representing the filter value to be applied on the attribute specified in name.

Method Details

public QueryBuilder addCondition (Operation operation, Condition condition, Attribute name, String value)

Deprecated: As of SDK 3.3.

Use setQuery(String) instead.

Add a condition to the standard attribute query.

Parameters:

  • operation

    One of the values in QueryBuilder.Operation that describes the logical operation between this conditions and the condition this is appended to.

  • condition

    One of the values in QueryBuilder.Condition that describes the filter to be applied on the attribute with name when the specified value satisfies the condition. For example, Condition#EXACT_MATCH of the attribute Attribute#NAME1 to the value of "abc".

  • name

    One of the values in Attribute representing the name of the attribute to apply the condition filter.

  • value

    A String representing the filter value to be applied on the attribute specified in name.

Returns:

The modified QueryBuilder itself.

You cannot use this account to purchase a commercial plan on Developer Portal, as it is already associated to plans with different payment methods.

To purchase a commercial plan on Developer Portal, please register for or sign in with a different HERE Account.

Something took longer than expected.

The project should be available soon under your projects page.

Sorry, our services are not available in this region.

Something seems to have gone wrong. Please try again later.

We've detected that your account is set to Australian Dollars (AUD).
Unfortunately, we do not offer checkouts in AUD anymore.
You can continue using your current plan as normal, but to subscribe to one of our new plans,
please register for a new HERE account or contact us for billing questions on selfservesupport@here.com.