Skip navigation links

Oracle® OLAP Java API Reference
11g Release 1 (11.1)

B28128-03


oracle.olapi.metadata.conversion
Class LegacyXMLConverter

java.lang.Object
  extended by oracle.olapi.metadata.conversion.LegacyXMLConverter

All Implemented Interfaces:
java.util.Comparator

public final class LegacyXMLConverter
extends java.lang.Object
implements java.util.Comparator

A class that converts Oracle OLAP 10g AWXML metadata objects into 11g metadata objects. With the importXML method of a LegacyXMLConverter, you can import the XML definitions of metadata objects that were created using the 10g Oracle OLAP Analytic Workspace Java API. You can get the objects as 11g metadata objects with the getConvertedObjects method.

If any problems exist in the XML to convert, such as a metadata object having the same name as an object that is in the Oracle Database data dictionary, you must fix the problem by editing the XML. After successfully importing the XML for the 10g objects, you can export the XML for the 11g objects with one of the methods of the MdmMetadataProvider that you are using. You can also commit the root Transaction of the session and then build the metadata objects.


Constructor Summary
LegacyXMLConverter(BaseMetadataProvider provider, MdmDatabaseSchema defaultSchema)
          Creates a LegacyXMLConverter with the specified BaseMetadataProvider and MdmDatabaseSchema.

 

Method Summary
 java.util.List<BaseMetadataObject> getConvertedObjects()
          Gets the converted BaseMetadataObject objects that this LegacyXMLConverter created.
 MdmDatabaseSchema getDefaultSchema()
          Gets the MdmDatabaseSchema that is associated with this LegacyXMLConverter.
 java.util.List<java.lang.Exception> getWarnings()
          Gets error messages that occur during the importation and conversion of the XML.
 void importXML(java.io.Reader inXML)
          Imports the XML definitions of Oracle OLAP 10g AWXML metadata objects and converts them to 11g metadata objects.

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Methods inherited from interface java.util.Comparator
compare, equals

 

Constructor Detail

LegacyXMLConverter

public LegacyXMLConverter(BaseMetadataProvider provider,
                          MdmDatabaseSchema defaultSchema)
Creates a LegacyXMLConverter with the specified BaseMetadataProvider and MdmDatabaseSchema.
Parameters:
provider - The BaseMetadataProvider for the session.
defaultSchema - The MdmDatabaseSchema for the session.

Method Detail

importXML

public void importXML(java.io.Reader inXML)
               throws java.io.IOException,
                      org.xml.sax.SAXException
Imports the XML definitions of Oracle OLAP 10g AWXML metadata objects and converts them to 11g metadata objects.
Parameters:
inXML - A Reader that has the XML to convert.
Throws:
java.io.IOException
org.xml.sax.SAXException

getWarnings

public java.util.List<java.lang.Exception> getWarnings()
Gets error messages that occur during the importation and conversion of the XML.
Returns:
A List of Exception objects.

getDefaultSchema

public MdmDatabaseSchema getDefaultSchema()
Gets the MdmDatabaseSchema that is associated with this LegacyXMLConverter.
Returns:
The MdmDatabaseSchema for this LegacyXMLConverter.

getConvertedObjects

public java.util.List<BaseMetadataObject> getConvertedObjects()
Gets the converted BaseMetadataObject objects that this LegacyXMLConverter created.
Returns:
A List of the converted BaseMetadataObject objects of this LegacyXMLConverter.

Skip navigation links

Copyright © 2002, 2008, Oracle. All rights reserved.