public class QueryPredicates
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static <I> com.querydsl.core.types.Predicate |
inIds(IdColumn<I> column,
java.util.Collection<I> ids)
Creates a predicate to match an
ID to one of the specified IDs. |
static com.querydsl.core.types.Predicate |
matchParameters(io.spine.server.entity.storage.QueryParameters parameters,
io.spine.server.entity.storage.ColumnTypeRegistry<? extends JdbcColumnType<? super java.lang.Object,? super java.lang.Object>> columnTypeRegistry)
Obtains a predicate to match entity records by the specified parameters.
|
public static <I> com.querydsl.core.types.Predicate inIds(IdColumn<I> column, java.util.Collection<I> ids)
ID
to one of the specified IDs.
If there are no IDs, the resulting predicate will return true
always.
I
- the type of IDscolumn
- the IdColumn
describing ID to match againstids
- the IDs to matchpublic static com.querydsl.core.types.Predicate matchParameters(io.spine.server.entity.storage.QueryParameters parameters, io.spine.server.entity.storage.ColumnTypeRegistry<? extends JdbcColumnType<? super java.lang.Object,? super java.lang.Object>> columnTypeRegistry)
parameters
- the query parameters to compose the predicatecolumnTypeRegistry
- the registry of entity column type to use