Module org.eclipse.persistence.sdo
Interface SDOTypeHelper
-
- All Superinterfaces:
TypeHelper
- All Known Implementing Classes:
SDOTypeHelperDelegate,SDOTypeHelperDelegator
public interface SDOTypeHelper extends TypeHelper
Purpose: Helper to provide access to declared SDO Types.
Responsibilities:
- Look up a Type given the uri and typeName or interfaceClass.
- SDO Types are available through the getType("commonj.sdo", typeName) method.
- Defines Types from DataObjects.
-
-
Field Summary
-
Fields inherited from interface commonj.sdo.helper.TypeHelper
INSTANCE
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringaddNamespace(String prefix, String uri)INTERNAL: Add the given namespace uri and prefix to the global namespace resolver.voidaddType(SDOType newType)INTERNAL:voidaddWrappersToProject(org.eclipse.persistence.sessions.Project toplinkProject)ListgetAnonymousTypes()HelperContextgetHelperContext()INTERNAL: Return the helperContext that this instance is associated with.Map<Class<?>,SDOType>getImplClassesToSDOType()MapgetInterfacesToSDOTypeHashMap()Class<?>getJavaWrapperTypeForSDOType(Type sdoType)INTERNAL:org.eclipse.persistence.oxm.NamespaceResolvergetNamespaceResolver()INTERNAL: Return the NamespaceResolverMapgetOpenContentProperties()INTERNAL: Return the Map of Open Content PropertiesStringgetPrefix(String uri)INTERNAL: Return the prefix for the given uri, or generate a new one if necessarySDOTypegetSDOTypeFromXSDType(QName aName)INTERNAL:SDOTypegetTypeForImplClass(Class<?> implClass)TypegetTypeForSimpleJavaType(Class<?> implClass)INTERNAL:MapgetTypesHashMap()INTERNAL:MapgetWrappersHashMap()INTERNAL: Return the map of Wrapper objects (SDOWrapperTypes that wrap a primitive document).QNamegetXSDTypeFromSDOType(Type aType)INTERNAL:voidreset()INTERNAL:voidsetHelperContext(HelperContext helperContext)INTERNAL: Set the helperContext that this instance is associated with.voidsetTypesHashMap(Map typesHashMap)INTERNAL:voidsetWrappersHashMap(Map aMap)INTERNAL: Set the map of Wrapper objects (SDOWrapperTypes that wrap a primitive document).-
Methods inherited from interface commonj.sdo.helper.TypeHelper
define, define, defineOpenContentProperty, getOpenContentProperty, getType, getType
-
-
-
-
Method Detail
-
getJavaWrapperTypeForSDOType
Class<?> getJavaWrapperTypeForSDOType(Type sdoType)
INTERNAL:- Parameters:
sdoType-- Returns:
-
getTypeForSimpleJavaType
Type getTypeForSimpleJavaType(Class<?> implClass)
INTERNAL:- Parameters:
implClass-- Returns:
-
addType
void addType(SDOType newType)
INTERNAL:- Parameters:
newType-
-
getXSDTypeFromSDOType
QName getXSDTypeFromSDOType(Type aType)
INTERNAL:- Parameters:
aType-- Returns:
-
getSDOTypeFromXSDType
SDOType getSDOTypeFromXSDType(QName aName)
INTERNAL:- Parameters:
aName-- Returns:
-
setTypesHashMap
void setTypesHashMap(Map typesHashMap)
INTERNAL:- Parameters:
typesHashMap-
-
getTypesHashMap
Map getTypesHashMap()
INTERNAL:- Returns:
-
getWrappersHashMap
Map getWrappersHashMap()
INTERNAL: Return the map of Wrapper objects (SDOWrapperTypes that wrap a primitive document).- Returns:
- a HashMap of SDOWrapperTypes, keyed on the XSD type that it wraps.
-
setWrappersHashMap
void setWrappersHashMap(Map aMap)
INTERNAL: Set the map of Wrapper objects (SDOWrapperTypes that wrap a primitive document).- Parameters:
aMap- a HashMap of SDOWrapperTypes, keyed on the XSD type that it wraps.
-
reset
void reset()
INTERNAL:
-
getHelperContext
HelperContext getHelperContext()
INTERNAL: Return the helperContext that this instance is associated with.- Returns:
-
setHelperContext
void setHelperContext(HelperContext helperContext)
INTERNAL: Set the helperContext that this instance is associated with.- Parameters:
helperContext-
-
addNamespace
String addNamespace(String prefix, String uri)
INTERNAL: Add the given namespace uri and prefix to the global namespace resolver.
-
getPrefix
String getPrefix(String uri)
INTERNAL: Return the prefix for the given uri, or generate a new one if necessary
-
getNamespaceResolver
org.eclipse.persistence.oxm.NamespaceResolver getNamespaceResolver()
INTERNAL: Return the NamespaceResolver
-
getOpenContentProperties
Map getOpenContentProperties()
INTERNAL: Return the Map of Open Content Properties
-
addWrappersToProject
void addWrappersToProject(org.eclipse.persistence.sessions.Project toplinkProject)
-
getInterfacesToSDOTypeHashMap
Map getInterfacesToSDOTypeHashMap()
-
getAnonymousTypes
List getAnonymousTypes()
-
-