-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpostSAP.dbs
43 lines (43 loc) · 2.17 KB
/
postSAP.dbs
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
<data enableBatchRequests="true" name="postSAP" serviceNamespace="positions" transports="http">
<config enableOData="false" id="cassandra">
<property name="cassandraServers">10.160.149.36</property>
<property name="keyspace">nis</property>
<property name="clusterName">hzspk</property>
<property name="consistencyLevel">TWO</property>
</config>
<query id="save" useConfig="cassandra">
<expression>INSERT INTO nis.positions (bucket,idsap,kodslozka,volaciznak,casaktualizace,rychlost,lat,lon) VALUES (:bucket,:idSap,:kodSlozka,:volaciZnak,:casAktualizace,:rychlost,:lat,:lon);</expression>
<param name="bucket" sqlType="INTEGER"/>
<param name="idSap" sqlType="STRING"/>
<param name="kodSlozka" sqlType="STRING"/>
<param name="rychlost" sqlType="INTEGER"/>
<param name="volaciZnak" sqlType="STRING"/>
<param name="casAktualizace" sqlType="INTEGER"/>
<param name="lat" sqlType="DOUBLE"/>
<param name="lon" sqlType="DOUBLE"/>
</query>
<operation name="savebatch" returnRequestStatus="true">
<call-query href="save">
<with-param name="bucket" query-param="bucket"/>
<with-param name="idSap" query-param="idSap"/>
<with-param name="kodSlozka" query-param="kodSlozka"/>
<with-param name="rychlost" query-param="rychlost"/>
<with-param name="volaciZnak" query-param="volaciZnak"/>
<with-param name="casAktualizace" query-param="casAktualizace"/>
<with-param name="lat" query-param="lat"/>
<with-param name="lon" query-param="lon"/>
</call-query>
</operation>
<resource method="POST" path="/">
<call-query href="save">
<with-param name="bucket" query-param="bucket"/>
<with-param name="idSap" query-param="idSap"/>
<with-param name="kodSlozka" query-param="kodSlozka"/>
<with-param name="rychlost" query-param="rychlost"/>
<with-param name="volaciZnak" query-param="volaciZnak"/>
<with-param name="casAktualizace" query-param="casAktualizace"/>
<with-param name="lat" query-param="lat"/>
<with-param name="lon" query-param="lon"/>
</call-query>
</resource>
</data>