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

E10653-04

oracle.jbo.common.sdo
Class SDOHelper

java.lang.Object
  extended by oracle.jbo.common.sdo.SDOHelper

public class SDOHelper
extends java.lang.Object


Field Summary
static SDOHelper INSTANCE
           
static java.lang.String NAME_SPACE_SEPERATOR
           
 
Method Summary
 java.lang.Object convertToBC4JValue(java.lang.Class targetClass, java.lang.Object sdoValue)
          convert sdo property value ot bc4j value based on the target class type
 java.lang.Object convertToSDOValue(java.lang.Class sdoClassType, java.lang.Object bc4jValue)
           
 java.lang.Object convertToSDOValue(commonj.sdo.Type sdoType, java.lang.Object bc4jValue)
          convert bc4j attribute value to sdo type
 java.util.List defineSchema(java.lang.String resourceLoc, java.lang.String resourceName)
          Defines XML Schema as SDO Types.
 commonj.sdo.DataObject getDataObject(Element xmlelement, Row vrow)
           
protected  java.net.URL getResource(java.lang.String resourcePath)
           
 void printDataObject(java.lang.String indent, commonj.sdo.DataObject dataobject, java.io.PrintWriter writer)
          for testing purpose
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

public static SDOHelper INSTANCE

NAME_SPACE_SEPERATOR

public static java.lang.String NAME_SPACE_SEPERATOR
Method Detail

defineSchema

public java.util.List defineSchema(java.lang.String resourceLoc,
                                   java.lang.String resourceName)
                            throws java.io.IOException
Defines XML Schema as SDO Types. The schema file is assumed to be a resource that can be accessed by class code.

Parameters:
resourceLoc - location of the schema file
resourceName - name of the schema file
Returns:
the defined Types, or null if the resource cannot be found or the invoker does not have adequate privileges to get the resource.
Throws:
java.io.IOException - if an I/O exception occurs

getResource

protected java.net.URL getResource(java.lang.String resourcePath)
                            throws java.io.IOException
Throws:
java.io.IOException

convertToSDOValue

public java.lang.Object convertToSDOValue(commonj.sdo.Type sdoType,
                                          java.lang.Object bc4jValue)
convert bc4j attribute value to sdo type

Parameters:
sdoType -
bc4jValue -
Returns:

convertToSDOValue

public java.lang.Object convertToSDOValue(java.lang.Class sdoClassType,
                                          java.lang.Object bc4jValue)

convertToBC4JValue

public java.lang.Object convertToBC4JValue(java.lang.Class targetClass,
                                           java.lang.Object sdoValue)
convert sdo property value ot bc4j value based on the target class type

Parameters:
targetClass -
sdoValue -
Returns:

printDataObject

public void printDataObject(java.lang.String indent,
                            commonj.sdo.DataObject dataobject,
                            java.io.PrintWriter writer)
for testing purpose

Parameters:
indent -
dataobject -

getDataObject

public commonj.sdo.DataObject getDataObject(Element xmlelement,
                                            Row vrow)

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

E10653-04

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