aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/storage/query/Request.java
blob: a98dd48f7ecf470dd28ad4530296c61c66830a28 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
package org.traccar.storage.query;

public class Request {

    private final Columns columns;
    private final Condition condition;
    private final Order order;
    private final Limit limit;

    public Request(Columns columns) {
        this(columns, null, null);
    }

    public Request(Condition condition) {
        this(null, condition, null);
    }

    public Request(Columns columns, Condition condition) {
        this(columns, condition, null);
    }

    public Request(Columns columns, Condition condition, Order order) {
        this(columns, condition, order, null);
    }

    public Request(Columns columns, Condition condition, Order order, Limit limit) {
        this.columns = columns;
        this.condition = condition;
        this.order = order;
        this.limit = limit;
    }

    public Columns getColumns() {
        return columns;
    }

    public Condition getCondition() {
        return condition;
    }

    public Order getOrder() {
        return order;
    }

    public Limit getLimit() {
        return limit;
    }

}