Oracle Fusion Middleware Java API Reference for Oracle ADF Model
11g Release 1 (11.1.1.1.0)

E10653-02

oracle.jbo.service.helper
Class SDOTypeBuilder

java.lang.Object
  extended by oracle.jbo.service.helper.SDOTypeBuilder

public class SDOTypeBuilder
extends java.lang.Object

Since:
release specific (what release of product did this appear in)

Field Summary
static java.lang.String SDO_WRAPPER_SUFFIX
           
 
Constructor Summary
SDOTypeBuilder()
           
 
Method Summary
static void addSchemaImports(java.io.Reader inputSchema, java.io.Writer outputSchema, java.util.Map<java.lang.String,java.lang.String> locationToNSMap)
          Adds schema imports/includes to a schema file.
static void createSchemaFile(SDOBuilderSrc src, boolean genWrapper, java.io.Writer writer)
          Generates XSD by dynamically-defining SDO Types.
static void createSchemaFile(SDOBuilderSrc src, java.io.Writer writer)
          Generates XSD by dynamically-defining SDO Type.
 commonj.sdo.Type defineSDOTypes(SDOBuilderSrc src, java.util.Map<commonj.sdo.Type,java.net.URL> schemaLocationMap)
          Defines new SDO types dynamically using TypeHelper.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SDO_WRAPPER_SUFFIX

public static final java.lang.String SDO_WRAPPER_SUFFIX
See Also:
Constant Field Values
Constructor Detail

SDOTypeBuilder

public SDOTypeBuilder()
Method Detail

createSchemaFile

public static void createSchemaFile(SDOBuilderSrc src,
                                    java.io.Writer writer)
                             throws java.lang.Exception
Generates XSD by dynamically-defining SDO Type. This method will reset the SDO Types registry in the beginning.

Parameters:
src - the source from which to generate schema
writer - a stream for writing the generated schema
Throws:
java.lang.Exception - an error occurs writing to stream

createSchemaFile

public static void createSchemaFile(SDOBuilderSrc src,
                                    boolean genWrapper,
                                    java.io.Writer writer)
                             throws java.lang.Exception
Generates XSD by dynamically-defining SDO Types. This method will reset the SDO Types registry in the beginning.

Parameters:
src - the source from which to generate schema
genWrapper - whether to generate an additional SDO Wrapper type
writer - a stream for writing the generated schema
Throws:
java.lang.Exception - an error occurs writing to stream

addSchemaImports

public static void addSchemaImports(java.io.Reader inputSchema,
                                    java.io.Writer outputSchema,
                                    java.util.Map<java.lang.String,java.lang.String> locationToNSMap)
                             throws java.lang.Exception
Adds schema imports/includes to a schema file. The caller is responsible for closing the reader and writer, and passing schema locations that are relativized.

Parameters:
inputSchema - a reader for an existing schema file
outputSchema - a writer for the updated schema file
locationToNSMap - a mapping of schemaLocation to namespace
Throws:
java.lang.Exception - an error occurs parsing the schema or writing to stream

defineSDOTypes

public commonj.sdo.Type defineSDOTypes(SDOBuilderSrc src,
                                       java.util.Map<commonj.sdo.Type,java.net.URL> schemaLocationMap)
Defines new SDO types dynamically using TypeHelper.

Parameters:
src - the source from which to define SDO type
schemaLocationMap - a table of defined SDO types and their corresponding schema location URLs
Returns:
the defined SDO type corresponding to the input source.

Oracle Fusion Middleware Java API Reference for Oracle ADF Model
11g Release 1 (11.1.1.1.0)

E10653-02

Copyright © 1997, 2009, Oracle. All rights reserved.