com.groupdocs.assembly.system.data

Enum XmlReadMode

  • java.lang.Object
    • java.lang.Enum<XmlReadMode>
      • com.groupdocs.assembly.system.data.XmlReadMode
  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<XmlReadMode>


    public enum XmlReadMode
    extends java.lang.Enum<XmlReadMode>
    A utility class providing constants. Specifies how to read XML data and a relational schema into a DataSet.
    • Enum Constant Summary

      Enum Constants 
      Enum Constant and Description
      AUTO
      Default.
      DIFF_GRAM
      Reads a DiffGram, applying changes from the DiffGram to the DataSet and preserving DataRow.getRowState() values.
      FRAGMENT
      Reads XML fragments, such as those generated by executing FOR XML queries, against an instance of SQL Server.
      IGNORE_SCHEMA
      Ignores any inline schema and reads data into the existing DataSet schema.
      INFER_SCHEMA
      Ignores any inline schema, infers schema from the data and loads the data.
      INFER_TYPED_SCHEMA
      Ignores any inline schema, infers a strongly typed schema from the data, and loads the data.
      READ_SCHEMA
      Reads any inline schema and loads the data.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method and Description
      static XmlReadMode valueOf(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static XmlReadMode[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • READ_SCHEMA

        public static final XmlReadMode READ_SCHEMA
        Reads any inline schema and loads the data. If the DataSet already contains schema, new tables may be added to the schema, but an exception is thrown if any tables in the inline schema already exist in the DataSet.
      • IGNORE_SCHEMA

        public static final XmlReadMode IGNORE_SCHEMA
        Ignores any inline schema and reads data into the existing DataSet schema. If any data does not match the existing schema, it is discarded (including data from differing namespaces defined for the DataSet). If the data is a DiffGram, IgnoreSchema has the same functionality as DiffGram.
      • INFER_SCHEMA

        public static final XmlReadMode INFER_SCHEMA
        Ignores any inline schema, infers schema from the data and loads the data. If the DataSet already contains a schema, the current schema is extended by adding new tables or adding columns to existing tables. An exception is thrown if the inferred table already exists but with a different namespace, or if any of the inferred columns conflict with existing columns.
      • FRAGMENT

        public static final XmlReadMode FRAGMENT
        Reads XML fragments, such as those generated by executing FOR XML queries, against an instance of SQL Server. When XmlReadMode is set to Fragment, the default namespace is read as the inline schema.
      • INFER_TYPED_SCHEMA

        public static final XmlReadMode INFER_TYPED_SCHEMA
        Ignores any inline schema, infers a strongly typed schema from the data, and loads the data. If the type cannot be inferred from the data, it is interpreted as string data. If the DataSet already contains a schema, the current schema is extended, either by adding new tables or by adding columns to existing tables. An exception is thrown if the inferred table already exists but with a different namespace, or if any of the inferred columns conflict with existing columns.
    • Method Detail

      • values

        public static XmlReadMode[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (XmlReadMode c : XmlReadMode.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static XmlReadMode valueOf(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null