Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2014
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.92 KB | None | 0 0
  1. <data name="ws_getSubnoCCInfo" serviceNamespace="com.test.ws">
  2. <config id="tro">
  3. <property name="driverClassName">oracle.jdbc.driver.OracleDriver</property>
  4. <property name="url">jdbc:oracle:thin:xxx/yyy@10.10.10.10:1521/DB</property>
  5. <property name="username">xxx</property>
  6. <property name="password">yyy</property>
  7. </config>
  8. <query id="subnoHasCCSQL" useConfig="tro">
  9. <sql>select case when count(*) > 0 then 'OK' else 'NOK' end hasCC from ccinfo where subno = :subno</sql>
  10. <result element="Entries" rowName="Entry">
  11. <element column="hasCC" name="hasCC" xsdType="string"/>
  12. </result>
  13. <param name="subno" sqlType="STRING"/>
  14. </query>
  15. <query id="idNoHasCCSQL" useConfig="tro">
  16. <sql>select case when count(*) > 0 then 'OK' else 'NOK' end hasCC from ccinfo cc, tabs.crm_departement ui where cc.contrno = ui.contrno and ui.id_no = :id_no</sql>
  17. <result element="Entries" rowName="Entry">
  18. <element column="hasCC" name="hasCC" xsdType="string"/>
  19. </result>
  20. <param name="id_no" sqlType="STRING"/>
  21. </query>
  22. <query id="contrnoHasCCSQL" useConfig="tro">
  23. <sql>select case when count(*) > 0 then 'OK' else 'NOK' end hasCC from ccinfo cc where contrno = :contrno</sql>
  24. <result element="Entries" rowName="Entry">
  25. <element column="hasCC" name="hasCC" xsdType="string"/>
  26. </result>
  27. <param name="contrno" sqlType="STRING"/>
  28. </query>
  29. <operation name="subnoHasCC">
  30. <call-query href="subnoHasCCSQL">
  31. <with-param name="subno" query-param="subno"/>
  32. </call-query>
  33. </operation>
  34. <operation name="idNoHasCC">
  35. <call-query href="idNoHasCCSQL">
  36. <with-param name="id_no" query-param="id_no"/>
  37. </call-query>
  38. </operation>
  39. <operation name="contrnoHasCC">
  40. <call-query href="contrnoHasCCSQL">
  41. <with-param name="contrno" query-param="contrno"/>
  42. </call-query>
  43. </operation>
  44. </data>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement