public enum EntityQuery.Kind
- Object
- Enum<EntityQuery.Kind>
- EntityQuery.Kind
ImplementsComparable<EntityQuery.Kind>
The three lookups an entity type can offer.
Enum constants
BY_ID | static T byId(String id) – resolve one instance from its EntityId. |
SUGGESTED | static List<T> suggested() – the instances offered when the user is asked to choose. |
SEARCH | static List<T> 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_IDstatic 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
SUGGESTEDstatic List<T> 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.SEARCH
SEARCHstatic List<T> matching(String query) – free-text lookup as the
user types or speaks. Without it, a user can only pick from
SUGGESTED.Method details
values
public static EntityQuery.Kind[] values()valueOf
public static EntityQuery.Kind valueOf(String name)