types.xsd 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
  3. xmlns:p5TypeParam="http://biuro.biall-net.pl/p5/schema/typeParams"
  4. xmlns:p5Type="http://biuro.biall-net.pl/p5/schema/types"
  5. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  6. xmlns:p5_tr_map="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/procesy5_translate_map.xsd"
  7. xmlns:vc="http://www.w3.org/2007/XMLSchema-versioning"
  8. xmlns:system_cache__resources_tree_generate_xsl_required_occurs_raport="http://biuro.biall-net.pl/xmlschema_procesy5/system_cache/resources_tree_generate_xsl_require_occurs_raport"
  9. xmlns:system_cache__appinfo="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd"
  10. xmlns:p5opr="http://biuro.biall-net.pl/xmlschema_procesy5/system_cache/object_parent_relations/object_parent_relations.xsd"
  11. xmlns:p5_simpleSchema_map="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/p5_simpleSchema_map.xsd"
  12. elementFormDefault="qualified" system_cache__appinfo:document-uri="Types/types.xsd"
  13. targetNamespace="http://biuro.biall-net.pl/p5/schema/types"><!--<xs:import namespace="http://biuro.biall-net.pl/p5/schema/typeParams" schemaLocation=""/>
  14. @2018-03-23 bindera: widze, ze tego nie ma i raczej jest niepotrzebne?
  15. -->
  16. <xs:simpleType name="string" id="p___d15e99718-1_string">
  17. <xs:restriction base="xs:string"/>
  18. </xs:simpleType>
  19. <xs:simpleType name="text" id="p___d15e99720-1_text">
  20. <xs:restriction base="xs:string"/>
  21. </xs:simpleType>
  22. <xs:simpleType name="enumeration" id="p___d15e99722-1_enumeratio">
  23. <xs:restriction base="xs:string"/>
  24. </xs:simpleType>
  25. <xs:simpleType name="set" id="p___d15e99724-1_set">
  26. <xs:annotation>
  27. <xs:documentation>
  28. Example appinfo for `CRM_PRZYPADEK`.`FORM_TREAT` field defined as set('', 'R', 'W', 'X', 'C', 'S', 'O', 'V', 'E'):
  29. <xs:appinfo>
  30. <p5TypeParam:param name="enumeration">
  31. <p5TypeParam:enumeration value="0" label="" description="Brak"/>
  32. <p5TypeParam:enumeration value="2" label="R" description="Read"/>
  33. <p5TypeParam:enumeration value="4" label="W" description="Write"/>
  34. <p5TypeParam:enumeration value="8" label="X" description="Execute"/>
  35. <p5TypeParam:enumeration value="16" label="C" description="Create"/>
  36. <p5TypeParam:enumeration value="32" label="S" description="..."/>
  37. <p5TypeParam:enumeration value="64" label="O" description="..."/>
  38. <p5TypeParam:enumeration value="124" label="V" description="..."/>
  39. <p5TypeParam:enumeration value="256" label="E" description="Export"/>
  40. </p5TypeParam:param>
  41. </xs:appinfo>
  42. SELECT ID, `FORM_TREAT`, CAST(`FORM_TREAT` AS UNSIGNED) FROM `CRM_PRZYPADEK`;
  43. IF 8 == 'X' THEN
  44. insert into `CRM_PRZYPADEK`(`FORM_TREAT`) values('X');
  45. IS EQUAL TO
  46. insert into `CRM_PRZYPADEK`(`FORM_TREAT`) values(8);
  47. </xs:documentation>
  48. </xs:annotation>
  49. <xs:restriction base="xs:integer"/>
  50. </xs:simpleType>
  51. <xs:simpleType name="integer" id="p___d15e99741-1_integer">
  52. <xs:restriction base="xs:integer"/>
  53. </xs:simpleType>
  54. <xs:simpleType name="decimal" id="p___d15e99743-1_decimal">
  55. <xs:restriction base="xs:decimal"/>
  56. </xs:simpleType>
  57. <xs:simpleType name="double" id="p___d15e99745-1_double">
  58. <xs:restriction base="xs:double"/>
  59. </xs:simpleType>
  60. <xs:simpleType name="float" id="p___d15e99747-1_float">
  61. <xs:restriction base="xs:double"/>
  62. </xs:simpleType>
  63. <xs:simpleType name="binary" id="p___d15e99749-1_binary">
  64. <xs:restriction base="xs:hexBinary"/>
  65. </xs:simpleType>
  66. <xs:simpleType name="hexBinary" id="p___d15e99751-1_hexBinary">
  67. <xs:restriction base="xs:hexBinary"/>
  68. </xs:simpleType>
  69. <xs:simpleType name="date" id="p___d15e99754-1_date">
  70. <xs:union memberTypes="xs:date p5Type:dateZero"/>
  71. </xs:simpleType>
  72. <xs:simpleType name="dateZero" id="p___d15e99756-1_dateZero">
  73. <xs:restriction base="xs:string">
  74. <xs:enumeration value="0000-00-00"/>
  75. <xs:enumeration value="CURRENT_TIMESTAMP"/>
  76. </xs:restriction>
  77. </xs:simpleType>
  78. <xs:simpleType name="dateTime" id="p___d15e99760-1_dateTime">
  79. <xs:union memberTypes="xs:dateTime p5Type:dateTimeZero"/>
  80. </xs:simpleType>
  81. <xs:simpleType name="dateTimeZero" id="p___d15e99762-1_dateTimeZe">
  82. <xs:restriction base="xs:string">
  83. <xs:enumeration value="0000-00-00 00:00:00"/>
  84. <xs:enumeration value="CURRENT_TIMESTAMP"/>
  85. </xs:restriction>
  86. </xs:simpleType>
  87. <xs:simpleType name="time" id="p___d15e99766-1_time">
  88. <xs:union memberTypes="xs:time p5Type:timeZero"/>
  89. </xs:simpleType>
  90. <xs:simpleType name="timeZero" id="p___d15e99768-1_timeZero">
  91. <xs:restriction base="xs:string">
  92. <xs:enumeration value="00:00:00"/>
  93. <xs:enumeration value="CURRENT_TIMESTAMP"/>
  94. </xs:restriction>
  95. </xs:simpleType>
  96. <xs:simpleType name="year" id="p___d15e99772-1_year">
  97. <xs:union memberTypes="xs:gYear p5Type:yearZero"/>
  98. </xs:simpleType>
  99. <xs:simpleType name="yearZero" id="p___d15e99774-1_yearZero">
  100. <xs:restriction base="xs:string">
  101. <xs:enumeration value="0000"/>
  102. <xs:enumeration value="CURRENT_TIMESTAMP"/>
  103. </xs:restriction>
  104. </xs:simpleType>
  105. <!--
  106. TODO: Geometry
  107. TODO: MultiPolygon
  108. TODO: MultiPoint
  109. TODO: MultiLineString
  110. TODO: GeometryCollection
  111. <gml:MultiPolygon>
  112. <gml:polygonMember>
  113. <gml:Polygon>
  114. ...
  115. -->
  116. <xs:simpleType name="geometry" id="p___d15e99779-1_geometry">
  117. <xs:restriction base="xs:string"/>
  118. </xs:simpleType>
  119. <xs:simpleType name="polygon" id="p___d15e99781-1_polygon">
  120. <xs:restriction base="xs:string">
  121. <xs:pattern value="(\-?\d+\.?\d*,-?\d+\.?\d*)( (\-?\d+\.?\d*,-?\d+\.?\d*))+"/>
  122. </xs:restriction>
  123. </xs:simpleType>
  124. <xs:simpleType name="point" id="p___d15e99785-1_point">
  125. <xs:restriction base="xs:string">
  126. <xs:pattern value="\-?\d\.?\d*,\-?\d\.?\d*"/>
  127. </xs:restriction>
  128. </xs:simpleType>
  129. <xs:simpleType name="lineString" id="p___d15e99788-1_lineString">
  130. <xs:restriction base="xs:string">
  131. <xs:pattern value="(\-?\d+\.?\d*,\-?\d+\.?\d*)( (\-?\d+\.?\d*,\-?\d+\.?\d*))+"/>
  132. </xs:restriction>
  133. </xs:simpleType>
  134. </xs:schema>