java.lang.Object
com.sun.xml.ws.db.sdo.SDOUtils
A set of core utility methods that shapes the sdo databinding
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic Documentstatic List<org.eclipse.persistence.sdo.SDOType>defineSchema(commonj.sdo.helper.HelperContext hc, File f) static Stringdom2String(DOMSource domSrc) getMetadataClosure(List<Source> schemas) static QNamegetPropertyElementName(commonj.sdo.helper.HelperContext context, commonj.sdo.Property p) get the element name represented by this propertygetSchemaClosureFromWSDL(Source wsdlSource) static Set<SchemaInfo>getSchemas(File f) static Set<SchemaInfo>getSchemas(String filePath) static Documentstatic DocumentBuilderstatic Transformerstatic voidstatic voidstatic voidregisterSDOContext(commonj.sdo.helper.HelperContext context, List<Source> schemas) Register the types defined in the given schema with the given sdo helper contextstatic ElementsdoToDom(commonj.sdo.helper.HelperContext hc, commonj.sdo.DataObject obj, String targetNamespace, String localName) Serialize a DataObject to the specified element Per bug 6120620,, we use only GMT timezonestatic SourcesdoToXML(commonj.sdo.helper.HelperContext hc, commonj.sdo.DataObject obj, String targetNamespace, String localName) Serialize a DataObject to the specified xml element in text xmlstatic ObjectunwrapPrimitives(Object obj) static booleanvalidateBuiltinType(String javaType, QName qname) Check whether a java class is supported The builtin type includes all the default type mappings specified in the SDO Specstatic booleanvalidateSupportedType(commonj.sdo.helper.HelperContext hc, String javaType, QName qname)
-
Field Details
-
NS_XMLNS
- See Also:
-
NS_WSDL
- See Also:
-
QNAME_SCHEMA
-
-
Method Details
-
newTransformer
-
newDocumentBuilder
-
sdoToDom
public static Element sdoToDom(commonj.sdo.helper.HelperContext hc, commonj.sdo.DataObject obj, String targetNamespace, String localName) throws ParserConfigurationException, IOException Serialize a DataObject to the specified element Per bug 6120620,, we use only GMT timezone -
sdoToXML
public static Source sdoToXML(commonj.sdo.helper.HelperContext hc, commonj.sdo.DataObject obj, String targetNamespace, String localName) throws ParserConfigurationException, IOException Serialize a DataObject to the specified xml element in text xml -
registerSDOContext
public static void registerSDOContext(commonj.sdo.helper.HelperContext context, List<Source> schemas) Register the types defined in the given schema with the given sdo helper context -
getSchemaClosureFromWSDL
-
createDOM
-
getMetadataClosure
-
unwrapPrimitives
-
printDOM
-
dom2String
- Throws:
TransformerException
-
printXMLReader
-
getPropertyElementName
public static QName getPropertyElementName(commonj.sdo.helper.HelperContext context, commonj.sdo.Property p) get the element name represented by this property -
defineSchema
public static List<org.eclipse.persistence.sdo.SDOType> defineSchema(commonj.sdo.helper.HelperContext hc, File f) throws Exception - Throws:
Exception
-
newDocument
-
validateBuiltinType
Check whether a java class is supported The builtin type includes all the default type mappings specified in the SDO Spec -
validateSupportedType
-
getSchemas
- Throws:
Exception
-
getSchemas
- Throws:
Exception
-