-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathqueries.qry
70 lines (58 loc) · 1.96 KB
/
queries.qry
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
query getCarBasedOnCarId{
description: "get car based on carId"
statement: SELECT com.iftakhar.dealership.Car WHERE (carId ==_$carId)
}
query getCarBasedOnMake{
description: "get car based on make"
statement: SELECT com.iftakhar.dealership.Car WHERE (make ==_$make)
}
query getCarBasedOnModel{
description: "get car based on model"
statement: SELECT com.iftakhar.dealership.Car WHERE (model ==_$model)
}
query getCarBasedOnColor{
description: "get car based on color"
statement: SELECT com.iftakhar.dealership.Car WHERE (color ==_$color)
}
query getCarBasedOnHorsePower{
description: "get car based on horse power"
statement: SELECT com.iftakhar.dealership.Car WHERE (horsePower ==_$horsePower)
}
query getCarBasedOnTransmission{
description: "get car based on transmission"
statement: SELECT com.iftakhar.dealership.Car WHERE (transmission ==_$transmission)
}
query getCarBasedOnPrice{
description: "get car based on price"
statement: SELECT com.iftakhar.dealership.Car WHERE (price ==_$price)
}
query getOrdersByCustomerId {
description: "Get all orders for a customer"
statement:
SELECT com.iftakhar.dealership.Order
WHERE (customer.customerId == _$customerId)
}
query getOrdersByDealerId {
description: "Get all orders for a dealer"
statement:
SELECT com.iftakhar.dealership.Order
WHERE (dealer.dealerId == _$dealerId)
}
query getOrderByOrderId {
description: "get order for a orderId"
statement:
SELECT com.iftakhar.dealership.Order
WHERE (orderId == _$orderId)
}
query getLogisticCompanyByLogisticCompanyId {
description: "get Logistic company from logisticId"
statement:
SELECT com.iftakhar.dealership.LogisticCompany
WHERE (logisticsCompanyId == _$logisticsCompanyId)
}
query getOrdersByLogisticsCompanyId {
description: "Get all orders for a logistics company"
statement:
SELECT com.iftakhar.dealership.Order
WHERE (logisticCompany.logisticsCompanyId == _$logisticsCompanyId)
}