Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Copyright (c) 1998, 2013 Oracle and/or its affiliates. All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 and Eclipse Distribution License v. 1.0 which accompanies this distribution. The Eclipse Public License is available at and the Eclipse Distribution License is available at Contributors: Oracle - initial API and implementation from Oracle TopLink /
import  oracle.xdb.XMLType;
import  oracle.xdb.dom.XDBDocument;
INTERNAL: Used the create an XMLType for XDB support. This avoids having the xdb.jar requieed on the classpath if just the mapping class name is referenced.
public class XMLTypeFactoryImpl implements XMLTypeFactory {
    public Object createXML(java.sql.Connection connectionDocument domthrows Exception {
        return XMLType.createXML(connectiondom);
    public Object createXML(java.sql.Connection connectionString xmlthrows Exception {
        return XMLType.createXML(connectionxml);
    public Object createXML(oracle.sql.OPAQUE opaquethrows java.sql.SQLException {
        return XMLType.createXML(opaque);
    public Document getDOM(oracle.sql.OPAQUE opaquethrows java.sql.SQLException {
        XMLType xml = XMLType.createXML(opaque);
        return xml.getDOM();
    public String getString(oracle.sql.OPAQUE opaquethrows java.sql.SQLException {
        XMLType xmlType = XMLType.createXML(opaque);
        String xmlString = xmlType.getStringVal();
        return xmlString;
    public boolean isXDBDocument(Object obj) {
        return obj instanceof XDBDocument;
        return new XMLTypeBindCallCustomParameter(obj);
New to GrepCode? Check out our FAQ X