byId

public B byId(Iterable<? extends Object> ids)

Sets the ID predicate to the targets of the request.

Though it's not prohibited at compile-time, please make sure to pass instances of the same type to the argument of this method. Moreover, the instances must be of the type of the query target type identifier.

This method or any of its overloads do not check these constraints and assume they are followed by the caller.

If there are no IDs (i.e. and empty Iterable is passed), the query retrieves all the records regardless of their IDs.

Return

self for method chaining

Parameters

ids

the values of the IDs to look up


public B byId(Array<Message> ids)
public B byId(Array<String> ids)
public B byId(Array<Integer> ids)
public B byId(Array<Long> ids)

Sets the ID predicate to the io.spine.client.Query.

Return

self for method chaining

Parameters

ids

the values of the IDs to look up

See also