-
Notifications
You must be signed in to change notification settings - Fork 0
/
queries.qry
39 lines (31 loc) · 863 Bytes
/
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
/**
* New query file
*/
query getAllVehicleInfo{
description: "Select all Vehicle Information"
statement:
SELECT org.acme.carchain.vehicle
}
query getAllVehicleInsuranceInfo{
description: "Select all Vehicle Insurance Information"
statement:
SELECT org.acme.carchain.insuranceDetail
}
query getVehicleDetailsAccToVin{
description: "Select all Vehicle Information of a Particular Vehicle"
statement:
SELECT org.acme.carchain.vehicle
WHERE (vin ==_$vin)
}
query getInsuranceDetailsAccToVin{
description: "Select all Insurance Information of a Particular Vehicle"
statement:
SELECT org.acme.carchain.insuranceDetail
WHERE (vin ==_$vin)
}
query getEndUserByUID{
description: "Select Participant with UID"
statement:
SELECT org.acme.carchain.participant.EndUser
WHERE (UID == _$uid)
}