IBM DB2 Manual page 347

Table of Contents

Advertisement

|
|
|
|
properties
New properties for the connection. These properties override any
properties that are already defined on the DB2Connection instance.
registerDB2XmlSchema
Formats:
public void registerDB2XmlSchema(String[] sqlIdSchema,
String[] sqlIdName,
String[] xmlSchemaLocations,
InputStream[] xmlSchemaDocuments,
int[] xmlSchemaDocumentsLengths,
InputStream[] xmlSchemaDocumentsProperties,
int[] xmlSchemaDocumentsPropertiesLengths,
InputStream xmlSchemaProperties,
int xmlSchemaPropertiesLength,
boolean isUsedForShredding)
throws SQLException
public void registerDB2XmlSchema(String[] sqlIdSchema,
String[] sqlIdName,
String[] xmlSchemaLocations,
String[] xmlSchemaDocuments,
String[] xmlSchemaDocumentsProperties,
String xmlSchemaProperties,
boolean isUsedForShredding)
throws SQLException
Registers an XML schema with one or more XML schema documents. If
multiple XML schema documents are processed with one call to
registerDB2XmlSchema, those documents are processed as part of a single
transaction.
The first form of registerDB2XmlSchema is for XML schema documents that are
read from an input stream. The second form of registerDB2XmlSchema is for
XML schema documents that are read from strings.
Parameter descriptions:
sqlIdSchema
The SQL schema name for the XML schema. Only the first element of the
sqlIdSchema array is used. sqlIdSchema is a String value with a maximum
length of 128 bytes. The value of sqlIdSchema must be the string 'SYSXSR'
or null. If the value of sqlIdSchema is null, the database system uses the
string 'SYSXSR'.
sqlIdName
The SQL name for the XML schema. Only the first element of the
sqlIdName array is used. sqlIdName is a String value with a maximum
length of 128 bytes. The value of sqlIdName must conform to the rules for
an SQL identifier and cannot be null.
xmlSchemaLocations
XML schema locations for the primary XML schema documents of the
schemas that are being registered. XML schema location values are
normally in URI format. Each xmlSchemaLocations value is a String value
with a maximum length of 1000 bytes. The value is used only to match the
information that is specified in the XML schema document that references
this document. The database system does no validation of the format, and
no attempt is made to resolve the URI.
xmlSchemaDocuments
The content of the primary XML schema documents. Each
Chapter 7. JDBC and SQLJ reference information
331

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents