XmlReadMode
Inheritance: java.lang.Object, java.lang.Enum
public enum XmlReadMode extends Enum<System.Data.XmlReadMode>
Specifies how to read XML data and a relational schema into a DataSet.
Fields
Field | 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. |
Methods
Method | Description |
---|---|
compareTo(E arg0) | |
equals(Object arg0) | |
getDeclaringClass() | |
hashCode() | |
name() | |
ordinal() | |
toString() | |
valueOf(String name) | |
values() |
AUTO
public static final System.Data.XmlReadMode AUTO
Default.
DIFF_GRAM
public static final System.Data.XmlReadMode DIFF_GRAM
Reads a DiffGram, applying changes from the DiffGram to the DataSet and preserving DataRow.getRowState() values.
FRAGMENT
public static final System.Data.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.
IGNORE_SCHEMA
public static final System.Data.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 System.Data.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.
INFER_TYPED_SCHEMA
public static final System.Data.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.
READ_SCHEMA
public static final System.Data.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.
valueOf(Class arg0, String arg1)
public static T <T>valueOf(Class<T> arg0, String arg1)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | java.lang.Class | |
arg1 | java.lang.String |
Returns: T
compareTo(E arg0)
public final int compareTo(E arg0)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | E |
Returns: int
equals(Object arg0)
public final boolean equals(Object arg0)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | java.lang.Object |
Returns: boolean
getDeclaringClass()
public final Class<E> getDeclaringClass()
Returns:
java.lang.Class
hashCode()
public final int hashCode()
Returns: int
name()
public final String name()
Returns: java.lang.String
ordinal()
public final int ordinal()
Returns: int
toString()
public String toString()
Returns: java.lang.String
valueOf(String name)
public static System.Data.XmlReadMode valueOf(String name)
Parameters:
Parameter | Type | Description |
---|---|---|
name | java.lang.String |
Returns: XmlReadMode
values()
public static System.Data.XmlReadMode[] values()
Returns: com.aspose.words.net.System.Data.XmlReadMode[]