src/java.sql.rowset/share/classes/javax/sql/rowset/sqlxml.xsd
author ihse
Thu, 15 Mar 2018 01:32:03 +0100
changeset 49245 6c3054543ede
parent 47216 71c04702a3d5
permissions -rw-r--r--
8199636: Unify naming for jaas_unix and jaas_nt Reviewed-by: erikj
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     1
<?xml version="1.0"?>
90ce3da70b43 Initial load
duke
parents:
diff changeset
     2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     3
<!--
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
     4
 Copyright (c) 2003, Oracle and/or its affiliates. All rights reserved.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     5
 DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     6
90ce3da70b43 Initial load
duke
parents:
diff changeset
     7
 This code is free software; you can redistribute it and/or modify it
90ce3da70b43 Initial load
duke
parents:
diff changeset
     8
 under the terms of the GNU General Public License version 2 only, as
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
     9
 published by the Free Software Foundation.  Oracle designates this
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    10
 particular file as subject to the "Classpath" exception as provided
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
    11
 by Oracle in the LICENSE file that accompanied this code.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    12
90ce3da70b43 Initial load
duke
parents:
diff changeset
    13
 This code is distributed in the hope that it will be useful, but WITHOUT
90ce3da70b43 Initial load
duke
parents:
diff changeset
    14
 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    15
 FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
90ce3da70b43 Initial load
duke
parents:
diff changeset
    16
 version 2 for more details (a copy is included in the LICENSE file that
90ce3da70b43 Initial load
duke
parents:
diff changeset
    17
 accompanied this code).
90ce3da70b43 Initial load
duke
parents:
diff changeset
    18
90ce3da70b43 Initial load
duke
parents:
diff changeset
    19
 You should have received a copy of the GNU General Public License version
90ce3da70b43 Initial load
duke
parents:
diff changeset
    20
 2 along with this work; if not, write to the Free Software Foundation,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    21
 Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    22
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
    23
 Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
    24
 or visit www.oracle.com if you need additional information or have any
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
    25
 questions.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    26
-->
90ce3da70b43 Initial load
duke
parents:
diff changeset
    27
90ce3da70b43 Initial load
duke
parents:
diff changeset
    28
<xsd:schema 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    29
      xmlns:xsd="http://www.w3.org/2001/XMLSchema"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    30
      targetNamespace="http://standards.iso.org/iso/9075/2002/12/sqlxml"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    31
      xmlns:sqlxml="http://standards.iso.org/iso/9075/2002/12/sqlxml">
90ce3da70b43 Initial load
duke
parents:
diff changeset
    32
  <xsd:annotation>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    33
    <xsd:documentation>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    34
      ISO/IEC 9075-14:2003 (SQL/XML)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    35
      This document contains definitions of types and 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    36
      annotations as specified in ISO/IEC 9075-14:2003.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    37
    </xsd:documentation>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    38
  </xsd:annotation>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    39
90ce3da70b43 Initial load
duke
parents:
diff changeset
    40
  <xsd:simpleType name="kindKeyword">
90ce3da70b43 Initial load
duke
parents:
diff changeset
    41
    <xsd:restriction base="xsd:string">
90ce3da70b43 Initial load
duke
parents:
diff changeset
    42
      <xsd:enumeration value="PREDEFINED"/>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    43
      <xsd:enumeration value="DOMAIN"/>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    44
      <xsd:enumeration value="ROW"/>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    45
      <xsd:enumeration value="DISTINCT"/>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    46
      <xsd:enumeration value="ARRAY"/>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    47
      <xsd:enumeration value="MULTISET"/>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    48
    </xsd:restriction>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    49
  </xsd:simpleType>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    50
90ce3da70b43 Initial load
duke
parents:
diff changeset
    51
  <xsd:simpleType name="typeKeyword">
90ce3da70b43 Initial load
duke
parents:
diff changeset
    52
    <xsd:restriction base="xsd:string">
90ce3da70b43 Initial load
duke
parents:
diff changeset
    53
      <xsd:enumeration value="CHAR"/>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    54
      <xsd:enumeration value="VARCHAR"/>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    55
      <xsd:enumeration value="CLOB"/>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    56
      <xsd:enumeration value="BLOB"/>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    57
      <xsd:enumeration value="NUMERIC"/>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    58
      <xsd:enumeration value="DECIMAL"/>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    59
      <xsd:enumeration value="INTEGER"/>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    60
      <xsd:enumeration value="SMALLINT"/>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    61
      <xsd:enumeration value="BIGINT"/>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    62
      <xsd:enumeration value="FLOAT"/>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    63
      <xsd:enumeration value="REAL"/>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    64
      <xsd:enumeration value="DOUBLE PRECISION"/>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    65
      <xsd:enumeration value="BOOLEAN"/>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    66
      <xsd:enumeration value="DATE"/>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    67
      <xsd:enumeration value="TIME"/>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    68
      <xsd:enumeration value="TIME WITH TIME ZONE"/>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    69
      <xsd:enumeration value="TIMESTAMP"/>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    70
      <xsd:enumeration value="TIMESTAMP WITH TIME ZONE"/>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    71
      <xsd:enumeration value="INTERVAL YEAR"/>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    72
      <xsd:enumeration value="INTERVAL YEAR TO MONTH"/>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    73
      <xsd:enumeration value="INTERVAL MONTH"/>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    74
      <xsd:enumeration value="INTERVAL DAY"/>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    75
      <xsd:enumeration value="INTERVAL DAY TO HOUR"/>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    76
      <xsd:enumeration value="INTERVAL DAY TO MINUTE"/>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    77
      <xsd:enumeration value="INTERVAL DAY TO SECOND"/>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    78
      <xsd:enumeration value="INTERVAL HOUR"/>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    79
      <xsd:enumeration value="INTERVAL HOUR TO MINUTE"/>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    80
      <xsd:enumeration value="INTERVAL HOUR TO SECOND"/>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    81
      <xsd:enumeration value="INTERVAL MINUTE"/>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    82
      <xsd:enumeration value="INTERVAL MINUTE TO SECOND"/>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    83
      <xsd:enumeration value="INTERVAL SECOND"/>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    84
    </xsd:restriction>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    85
  </xsd:simpleType>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    86
90ce3da70b43 Initial load
duke
parents:
diff changeset
    87
  <xsd:complexType name="fieldType">
90ce3da70b43 Initial load
duke
parents:
diff changeset
    88
    <xsd:attribute name="name" type="xsd:string"/>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    89
    <xsd:attribute name="mappedType" type="xsd:string"/>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    90
  </xsd:complexType>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    91
90ce3da70b43 Initial load
duke
parents:
diff changeset
    92
  <xsd:element name="sqltype">
90ce3da70b43 Initial load
duke
parents:
diff changeset
    93
    <xsd:complexType>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    94
      <xsd:sequence>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    95
        <xsd:element name="field" type="sqlxml:fieldType"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    96
                        minOccurs="0" maxOccurs="unbounded"/>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    97
      </xsd:sequence>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    98
      <xsd:attribute name="kind"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    99
                        type="sqlxml:kindKeyword"/>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   100
      <xsd:attribute name="name" 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   101
                        type="sqlxml:typeKeyword" use="optional"/>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   102
      <xsd:attribute name="length" type="xsd:integer"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   103
                        use="optional"/>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   104
      <xsd:attribute name="maxLength" type="xsd:integer"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   105
                        use="optional"/>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   106
      <xsd:attribute name="characterSetName" type="xsd:string"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   107
                        use="optional"/>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   108
      <xsd:attribute name="collation" type="xsd:string"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   109
                        use="optional"/>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   110
      <xsd:attribute name="precision" type="xsd:integer"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   111
                        use="optional"/>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   112
      <xsd:attribute name="scale" type="xsd:integer"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   113
                        use="optional"/>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   114
      <xsd:attribute name="maxExponent" type="xsd:integer"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   115
                        use="optional"/>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   116
      <xsd:attribute name="minExponent" type="xsd:integer"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   117
                        use="optional"/>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   118
      <xsd:attribute name="userPrecision" type="xsd:integer"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   119
                        use="optional"/>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   120
      <xsd:attribute name="leadingPrecision" type="xsd:integer"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   121
                        use="optional"/>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   122
      <xsd:attribute name="maxElements" type="xsd:integer"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   123
                        use="optional"/>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   124
      <xsd:attribute name="catalogName" type="xsd:string"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   125
                        use="optional"/>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   126
      <xsd:attribute name="schemaName" type="xsd:string"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   127
                        use="optional"/>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   128
      <xsd:attribute name="domainName" type="xsd:string"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   129
                        use="optional"/>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   130
      <xsd:attribute name="typeName" type="xsd:string"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   131
                        use="optional"/>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   132
      <xsd:attribute name="mappedType" type="xsd:string"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   133
                        use="optional"/>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   134
      <xsd:attribute name="mappedElementType" type="xsd:string"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   135
                        use="optional"/>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   136
      <xsd:attribute name="final" type="xsd:boolean"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   137
                        use="optional"/>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   138
    </xsd:complexType>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   139
  </xsd:element>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   140
90ce3da70b43 Initial load
duke
parents:
diff changeset
   141
  <xsd:simpleType name="objectType">
90ce3da70b43 Initial load
duke
parents:
diff changeset
   142
     <xsd:restriction base="xsd:string">
90ce3da70b43 Initial load
duke
parents:
diff changeset
   143
        <xsd:enumeration value="CATALOG" />
90ce3da70b43 Initial load
duke
parents:
diff changeset
   144
        <xsd:enumeration value="SCHEMA" />
90ce3da70b43 Initial load
duke
parents:
diff changeset
   145
        <xsd:enumeration value="BASE TABLE" />
90ce3da70b43 Initial load
duke
parents:
diff changeset
   146
        <xsd:enumeration value="VIEWED TABLE" />
90ce3da70b43 Initial load
duke
parents:
diff changeset
   147
        <xsd:enumeration value="CHARACTER SET" />
90ce3da70b43 Initial load
duke
parents:
diff changeset
   148
        <xsd:enumeration value="COLLATION" />
90ce3da70b43 Initial load
duke
parents:
diff changeset
   149
     </xsd:restriction>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   150
  </xsd:simpleType>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   151
90ce3da70b43 Initial load
duke
parents:
diff changeset
   152
  <xsd:element name="sqlname">
90ce3da70b43 Initial load
duke
parents:
diff changeset
   153
     <xsd:complexType>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   154
        <xsd:attribute name="type" type="sqlxml:objectType"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   155
                          use="required" />
90ce3da70b43 Initial load
duke
parents:
diff changeset
   156
        <xsd:attribute name="catalogName" type="xsd:string" />
90ce3da70b43 Initial load
duke
parents:
diff changeset
   157
        <xsd:attribute name="schemaName" type="xsd:string" />
90ce3da70b43 Initial load
duke
parents:
diff changeset
   158
        <xsd:attribute name="localName" type="xsd:string" />
90ce3da70b43 Initial load
duke
parents:
diff changeset
   159
     </xsd:complexType>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   160
  </xsd:element>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   161
90ce3da70b43 Initial load
duke
parents:
diff changeset
   162
</xsd:schema>