Package org.xorm.datastore

Examples of org.xorm.datastore.ConnectionInfo


    public static DataSource getDataSource(PersistenceManagerFactory factory) {
        if (!(factory instanceof InterfaceManagerFactory)) {
            throw new JDOFatalUserException(I18N.msg("E_non_xorm_pmf"));
        }

        ConnectionInfo connectionInfo = ((InterfaceManagerFactory) factory)
            .getConnectionInfo();
        if (connectionInfo instanceof SQLConnectionInfo) {
            return ((SQLConnectionInfo) connectionInfo).getDataSource();
        }
        return null;
View Full Code Here


        }

        logger.fine("Discovered " + tableNames.size() +
                    " table names...loading them now");

        ConnectionInfo ci = factory.getConnectionInfo();
        for (Iterator iter = tableNames.iterator(); iter.hasNext(); ) {
            String tableName = (String)iter.next();
            // Load it from db metadata
            nameToTable.put(tableName, ci.describeTable(tableName));
        }
    }
View Full Code Here

TOP

Related Classes of org.xorm.datastore.ConnectionInfo

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.