public enum EntityQuery.Kind

  1. Object
  2. Enum<EntityQuery.Kind>
  3. EntityQuery.Kind

ImplementsComparable<EntityQuery.Kind>

The three lookups an entity type can offer.

Enum constants

BY_IDstatic T byId(String id) – resolve one instance from its EntityId.
SUGGESTEDstatic List&lt;T&gt; suggested() – the instances offered when the user is asked to choose.
SEARCHstatic List&lt;T&gt; matching(String query) – free-text lookup as the user types or speaks.

Methods

public static EntityQuery.Kind[] values()
public static EntityQuery.Kind valueOf(String name)

Inherited methods

Enum constant details

BY_ID

BY_ID
static T byId(String id) – resolve one instance from its EntityId. Mandatory for every entity type, because an entity crosses the platform boundary as its id and nothing else.

SUGGESTED

SUGGESTED
static List&lt;T&gt; suggested() – the instances offered when the user is asked to choose. This is what fills the platform’s picker, so return the handful a person would plausibly want, not the whole table.

Method details

values

public static EntityQuery.Kind[] values()

valueOf

public static EntityQuery.Kind valueOf(String name)