Package org.jpox.exceptions

Examples of org.jpox.exceptions.UnsupportedConnectionFactoryException


        if (config.hasProperty("org.jpox.ConnectionFactory"))
        {
            Object cf = config.getProperty("org.jpox.ConnectionFactory");
            if (!(cf instanceof DataSource) && !(cf instanceof XADataSource))
            {
                throw new UnsupportedConnectionFactoryException(cf);
            }
            dataSource = new DataSource[1];
            dataSource[0] = cf;
        }
        else if (config.hasProperty("org.jpox.ConnectionFactoryName"))
View Full Code Here


        if (config.hasProperty("org.jpox.ConnectionFactory2"))
        {
            Object cf2 = config.getProperty("org.jpox.ConnectionFactory2");
            if (!(cf2 instanceof DataSource) && !(cf2 instanceof XADataSource))
            {
                throw new UnsupportedConnectionFactoryException(cf2);
            }
            dataSource = new DataSource[1];
            dataSource[0] = cf2;
        }
        else if (config.hasProperty("org.jpox.ConnectionFactory2Name"))
View Full Code Here

            throw new ConnectionFactoryNotFoundException(name, e);
        }

        if (!(obj instanceof DataSource) && !(obj instanceof XADataSource))
        {
            throw new UnsupportedConnectionFactoryException(obj);
        }

        return obj;
    }
View Full Code Here

TOP

Related Classes of org.jpox.exceptions.UnsupportedConnectionFactoryException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.