|
Oracle Fusion Middleware Java API Reference for Oracle TopLink 11g Release 1 (11.1.1) E28847-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
org.eclipse.persistence.sdo.helper.delegates.SDOTypeHelperDelegate
public class SDOTypeHelperDelegate
Purpose: Helper to provide access to declared SDO Types.
Responsibilities:
Field Summary | |
---|---|
private HelperContext |
aHelperContext |
private java.util.List |
anonymousTypes a List of Anonymous Types |
private java.util.Map |
commonjHashMap Map containing built-in types for primitive and SDO types |
private java.util.Map |
commonjJavaHashMap Map containing built-in types for Java types |
private java.util.Map<java.lang.Class,SDOType> |
implClassesToSDOType Map of impl classes -> SDOType |
private java.util.Map<java.lang.Class,SDOType> |
interfacesToSDOTypeHashMap Map of interfaces -> SDOType |
private NamespaceResolver |
namespaceResolver |
private java.util.Map |
openContentProperties a HashMap keyed on Qname of defined open content properties |
private static SDOWrapperType |
SDO_BOOLEAN_WRAPPER |
private static SDOWrapperType |
SDO_BOOLEANOBJECT_WRAPPER |
private static SDOWrapperType |
SDO_BYTE_WRAPPER |
private static SDOWrapperType |
SDO_BYTEOBJECT_WRAPPER |
private static SDOWrapperType |
SDO_BYTES_WRAPPER |
private static SDOWrapperType |
SDO_CHARACTER_WRAPPER |
private static SDOWrapperType |
SDO_CHARACTEROBJECT_WRAPPER |
private static SDOWrapperType |
SDO_DATE_WRAPPER |
private static SDOWrapperType |
SDO_DATETIME_WRAPPER |
private static SDOWrapperType |
SDO_DAY_WRAPPER |
private static SDOWrapperType |
SDO_DECIMAL_WRAPPER |
private static SDOWrapperType |
SDO_DOUBLE_WRAPPER |
private static SDOWrapperType |
SDO_DOUBLEOBJECT_WRAPPER |
private static SDOWrapperType |
SDO_DURATION_WRAPPER |
private static SDOWrapperType |
SDO_FLOAT_WRAPPER |
private static SDOWrapperType |
SDO_FLOATOBJECT_WRAPPER |
private static SDOWrapperType |
SDO_INT_WRAPPER |
private static SDOWrapperType |
SDO_INTEGER_WRAPPER |
private static SDOWrapperType |
SDO_INTOBJECT_WRAPPER |
private static SDOWrapperType |
SDO_LONG_WRAPPER |
private static SDOWrapperType |
SDO_LONGOBJECT_WRAPPER |
private static SDOWrapperType |
SDO_MONTH_WRAPPER |
private static SDOWrapperType |
SDO_MONTHDAY_WRAPPER |
private static SDOWrapperType |
SDO_OBJECT_WRAPPER |
private static SDOWrapperType |
SDO_SHORT_WRAPPER |
private static SDOWrapperType |
SDO_SHORTOBJECT_WRAPPER |
private static SDOWrapperType |
SDO_STRING_WRAPPER |
private static SDOWrapperType |
SDO_STRINGS_WRAPPER |
private static SDOWrapperType |
SDO_TIME_WRAPPER |
private static SDOWrapperType |
SDO_URI_WRAPPER |
private static SDOWrapperType |
SDO_YEAR_WRAPPER |
private static SDOWrapperType |
SDO_YEARMONTH_WRAPPER |
private static SDOWrapperType |
SDO_YEARMONTHDAY_WRAPPER |
private java.util.Map |
sdoToXSDTypes a HashMap having SDO object as key and corresponding XSD Qname Object as value |
private static java.util.Map |
sdoTypeForSimpleJavaType Map containing built-in types for SDO Types keyed on Java class |
private java.util.Map |
typesHashMap Map containing user defined types |
private java.util.Map<javax.xml.namespace.QName,SDOType> |
wrappersHashMap Map containing wrapper types |
private java.util.Map |
xsdToSDOType a HashMap having XSD Qname Object as Key and corresponding SDO Object as value |
Constructor Summary | |
---|---|
SDOTypeHelperDelegate(HelperContext aContext) |
Method Summary | |
---|---|
java.lang.String |
addNamespace(java.lang.String prefix, java.lang.String uri) INTERNAL: Add the given namespace uri and prefix to the global namespace resolver. |
void |
addType(SDOType newType) INTERNAL: |
void |
addWrappersToProject(Project project) |
private SDOProperty |
buildPropertyFromDataObject(DataObject dataObject, Type containingType, java.util.List types) |
Type |
define(DataObject dataObject) |
Type |
define(DataObject dataObject, java.util.List types) Define the DataObject as a Type. |
Property |
defineOpenContentProperty(java.lang.String uri, DataObject propertyDO) Define the DataObject as a Property for setting open content. |
private void |
defineOpenContentProperty(java.lang.String propertyUri, java.lang.String propertyName, Property property) INTERNAL: |
private java.lang.String |
generatePrefix(java.lang.String uri) |
java.util.List |
getAnonymousTypes() |
HelperContext |
getHelperContext() INTERNAL: Return the current helperContext associated with this delegate. |
java.util.Map<java.lang.Class,SDOType> |
getImplClassesToSDOType() |
java.util.Map |
getInterfacesToSDOTypeHashMap() |
java.lang.Class |
getJavaWrapperTypeForSDOType(Type type) INTERNAL: |
NamespaceResolver |
getNamespaceResolver() INTERNAL: Return the NamespaceResolver |
java.util.Map |
getOpenContentProperties() INTERNAL: Return the Map of Open Content Properties |
Property |
getOpenContentProperty(java.lang.String uri, java.lang.String propertyName) Get the open Property with the specified uri and name, or null if not found. |
java.lang.String |
getPrefix(java.lang.String uri) INTERNAL: Return the prefix for the given uri, or generate a new one if necessary |
private static java.util.Map |
getSDOTypeForSimpleJavaTypeMap() INTERNAL: |
SDOType |
getSDOTypeFromXSDType(javax.xml.namespace.QName aName) A function to access the values stored in sdoToXSDTypes HashMap |
SDOType |
getType(java.lang.Class interfaceClass) Return the Type for this interfaceClass or null if not found. |
SDOType |
getType(java.lang.String uri, java.lang.String typeName) Return the Type specified by typeName with the given uri, or null if not found. |
SDOType |
getTypeForImplClass(java.lang.Class implClass) |
SDOType |
getTypeForSimpleJavaType(java.lang.Class implClass) INTERNAL: Used to determine which SDO Type corresponds the given Java simple type |
java.util.Map |
getTypesHashMap() INTERNAL: |
private java.lang.Object |
getValueFromObject(java.lang.Object objectValue, java.util.List types) |
java.util.Map |
getWrappersHashMap() INTERNAL: Return the map of Wrapper objects (SDOWrapperTypes that wrap a primitive document). |
javax.xml.namespace.QName |
getXSDTypeFromSDOType(Type aType) A function to access the values stored in xsdToSDOType HashMap |
private void |
initCommonjHashMap() initializes built-in HashMap commonjHashMap. |
private void |
initCommonjJavaHashMap() |
private void |
initializeTypes(java.util.List types) |
private void |
initOpenProps() |
private void |
initSdoToXSDType() initialize the built-in HashMap sdoToXSDTypes |
private static void |
initSDOTypeForSimpleJavaTypeMap() |
private void |
initTypesHashMap() initializes HashMap typesHashMap. |
private void |
initWrappersHashMap() Initializes the wrappersHashMap HashMap. |
void |
initWrapperTypes() |
private void |
initXsdToSDOType() initialize the built-in HashMap xsdToSDOTypes |
private boolean |
isBaseTypeBytes(Type theType) |
void |
reset() INTERNAL: |
void |
setHelperContext(HelperContext helperContext) INTERNAL: Set the current helperContext to be associated with this delegate |
void |
setTypesHashMap(java.util.Map typesHashMap) INTERNAL: |
void |
setWrappersHashMap(java.util.Map aMap) INTERNAL: Set the map of Wrapper objects (SDOWrapperTypes that wrap a primitive document). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private java.util.Map typesHashMap
private java.util.Map<javax.xml.namespace.QName,SDOType> wrappersHashMap
private java.util.Map<java.lang.Class,SDOType> interfacesToSDOTypeHashMap
private java.util.Map<java.lang.Class,SDOType> implClassesToSDOType
private final java.util.Map commonjHashMap
private final java.util.Map commonjJavaHashMap
private static final java.util.Map sdoTypeForSimpleJavaType
private final java.util.Map sdoToXSDTypes
private final java.util.Map xsdToSDOType
private java.util.Map openContentProperties
private java.util.List anonymousTypes
private HelperContext aHelperContext
private NamespaceResolver namespaceResolver
private static SDOWrapperType SDO_BOOLEAN_WRAPPER
private static SDOWrapperType SDO_BYTE_WRAPPER
private static SDOWrapperType SDO_BYTES_WRAPPER
private static SDOWrapperType SDO_CHARACTER_WRAPPER
private static SDOWrapperType SDO_DATE_WRAPPER
private static SDOWrapperType SDO_DATETIME_WRAPPER
private static SDOWrapperType SDO_DAY_WRAPPER
private static SDOWrapperType SDO_DECIMAL_WRAPPER
private static SDOWrapperType SDO_DOUBLE_WRAPPER
private static SDOWrapperType SDO_DURATION_WRAPPER
private static SDOWrapperType SDO_FLOAT_WRAPPER
private static SDOWrapperType SDO_INT_WRAPPER
private static SDOWrapperType SDO_INTEGER_WRAPPER
private static SDOWrapperType SDO_LONG_WRAPPER
private static SDOWrapperType SDO_MONTH_WRAPPER
private static SDOWrapperType SDO_MONTHDAY_WRAPPER
private static SDOWrapperType SDO_OBJECT_WRAPPER
private static SDOWrapperType SDO_SHORT_WRAPPER
private static SDOWrapperType SDO_STRING_WRAPPER
private static SDOWrapperType SDO_STRINGS_WRAPPER
private static SDOWrapperType SDO_TIME_WRAPPER
private static SDOWrapperType SDO_URI_WRAPPER
private static SDOWrapperType SDO_YEAR_WRAPPER
private static SDOWrapperType SDO_YEARMONTH_WRAPPER
private static SDOWrapperType SDO_YEARMONTHDAY_WRAPPER
private static SDOWrapperType SDO_BOOLEANOBJECT_WRAPPER
private static SDOWrapperType SDO_BYTEOBJECT_WRAPPER
private static SDOWrapperType SDO_CHARACTEROBJECT_WRAPPER
private static SDOWrapperType SDO_DOUBLEOBJECT_WRAPPER
private static SDOWrapperType SDO_FLOATOBJECT_WRAPPER
private static SDOWrapperType SDO_INTOBJECT_WRAPPER
private static SDOWrapperType SDO_LONGOBJECT_WRAPPER
private static SDOWrapperType SDO_SHORTOBJECT_WRAPPER
Constructor Detail |
---|
public SDOTypeHelperDelegate(HelperContext aContext)
Method Detail |
---|
public void initWrapperTypes()
public void addWrappersToProject(Project project)
addWrappersToProject
in interface SDOTypeHelper
private void initCommonjHashMap()
private void initCommonjJavaHashMap()
private void initTypesHashMap()
private void initWrappersHashMap()
private void initSdoToXSDType()
private void initXsdToSDOType()
private static void initSDOTypeForSimpleJavaTypeMap()
public java.lang.Class getJavaWrapperTypeForSDOType(Type type)
SDOTypeHelper
getJavaWrapperTypeForSDOType
in interface SDOTypeHelper
public SDOType getType(java.lang.String uri, java.lang.String typeName)
uri
- The uri of the Type - type.getURI();typeName
- The name of the Type - type.getName();public void addType(SDOType newType)
SDOTypeHelper
addType
in interface SDOTypeHelper
public SDOType getType(java.lang.Class interfaceClass)
interfaceClass
- is the interface for the DataObject's Type - type.getInstanceClass();public SDOType getTypeForImplClass(java.lang.Class implClass)
getTypeForImplClass
in interface SDOTypeHelper
public SDOType getTypeForSimpleJavaType(java.lang.Class implClass)
getTypeForSimpleJavaType
in interface SDOTypeHelper
public Type define(DataObject dataObject)
private void initializeTypes(java.util.List types)
public Type define(DataObject dataObject, java.util.List types)
type
- the DataObject representing the Type.java.lang.IllegalArgumentException
- if the Type could not be defined.private boolean isBaseTypeBytes(Type theType)
private java.lang.Object getValueFromObject(java.lang.Object objectValue, java.util.List types)
private SDOProperty buildPropertyFromDataObject(DataObject dataObject, Type containingType, java.util.List types)
public javax.xml.namespace.QName getXSDTypeFromSDOType(Type aType)
getXSDTypeFromSDOType
in interface SDOTypeHelper
aType
- a SDO Type Objectpublic SDOType getSDOTypeFromXSDType(javax.xml.namespace.QName aName)
getSDOTypeFromXSDType
in interface SDOTypeHelper
aName
-public void setTypesHashMap(java.util.Map typesHashMap)
SDOTypeHelper
setTypesHashMap
in interface SDOTypeHelper
public java.util.Map getTypesHashMap()
SDOTypeHelper
getTypesHashMap
in interface SDOTypeHelper
public java.util.Map getWrappersHashMap()
getWrappersHashMap
in interface SDOTypeHelper
public void setWrappersHashMap(java.util.Map aMap)
setWrappersHashMap
in interface SDOTypeHelper
aMap
- a HashMap of SDOWrapperTypes, keyed on the XSD type that it wraps.public void reset()
SDOTypeHelper
reset
in interface SDOTypeHelper
public Property defineOpenContentProperty(java.lang.String uri, DataObject propertyDO)
uri
- the namespace URI of the open Property or null.java.lang.IllegalArgumentException
- if the Property could not be defined.private void defineOpenContentProperty(java.lang.String propertyUri, java.lang.String propertyName, Property property)
propertyQName
-property
-public Property getOpenContentProperty(java.lang.String uri, java.lang.String propertyName)
uri
- the namespace URI of the open Property.propertyName
- the name of the open Property.private static java.util.Map getSDOTypeForSimpleJavaTypeMap()
public HelperContext getHelperContext()
getHelperContext
in interface SDOTypeHelper
public void setHelperContext(HelperContext helperContext)
setHelperContext
in interface SDOTypeHelper
public java.lang.String getPrefix(java.lang.String uri)
getPrefix
in interface SDOTypeHelper
private java.lang.String generatePrefix(java.lang.String uri)
public java.lang.String addNamespace(java.lang.String prefix, java.lang.String uri)
addNamespace
in interface SDOTypeHelper
public NamespaceResolver getNamespaceResolver()
getNamespaceResolver
in interface SDOTypeHelper
public java.util.Map getOpenContentProperties()
getOpenContentProperties
in interface SDOTypeHelper
private void initOpenProps()
public java.util.Map getInterfacesToSDOTypeHashMap()
getInterfacesToSDOTypeHashMap
in interface SDOTypeHelper
public java.util.Map<java.lang.Class,SDOType> getImplClassesToSDOType()
getImplClassesToSDOType
in interface SDOTypeHelper
public java.util.List getAnonymousTypes()
getAnonymousTypes
in interface SDOTypeHelper
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |