public enum XmlReadMode extends java.lang.Enum<XmlReadMode>
DataSet
.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.
|
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.
|
public static final XmlReadMode AUTO
public static final XmlReadMode READ_SCHEMA
public static final XmlReadMode IGNORE_SCHEMA
public static final XmlReadMode INFER_SCHEMA
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.public static final XmlReadMode DIFF_GRAM
DataSet
and preserving DataRow.getRowState()
values.public static final XmlReadMode FRAGMENT
XmlReadMode
is set to Fragment, the default namespace is read as the inline schema.public static final XmlReadMode INFER_TYPED_SCHEMA
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.public static XmlReadMode[] values()
for (XmlReadMode c : XmlReadMode.values()) System.out.println(c);
public static XmlReadMode valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null