Examples of JdoConf


Examples of org.castor.jdo.conf.JdoConf

            final InputSource source,
            final EntityResolver resolver,
            final ClassLoader loader) throws MappingException {
       
        // Load the JDO configuration file from the specified input source.
        JdoConf jdoConf = null;
       
        Unmarshaller unmarshaller = new Unmarshaller(JdoConf.class);
        try {
            unmarshaller.setEntityResolver(new DTDResolver(resolver));
            jdoConf = (JdoConf) unmarshaller.unmarshal(source);
View Full Code Here

Examples of org.castor.jdo.conf.JdoConf

     * @param tx TransactionDemarcation configuration.
     * @return JDO configuration.
     */
    public static JdoConf createJdoConf(final Database[] databases,
            final TransactionDemarcation tx) {
        JdoConf jdoConf = new JdoConf();
        jdoConf.setDatabase(databases);
        jdoConf.setTransactionDemarcation(tx);
        return jdoConf;
    }
View Full Code Here

Examples of org.castor.jdo.conf.JdoConf

            final EntityResolver resolver, final ClassLoader loader,
            final JDOClassDescriptorResolver classDescriptorResolver)
            throws MappingException {
       
        // Load the JDO configuration file from the specified input source.
        JdoConf jdoConf = null;
        jdoConf = JDOConfFactory.createJdoConf(source, resolver, loader);
        LOG.debug("Loaded jdo conf successfully");

        loadDatabase(jdoConf, resolver, loader, source.getSystemId(), classDescriptorResolver);
    }
View Full Code Here

Examples of org.castor.jdo.conf.JdoConf

        super.tearDown();
    }
   
    public void testLoad() {
        try {
            JdoConf jdoConf = createJdoConf(getJdoConf(DBNAME, MAPPING));
            JDOManager.loadConfiguration(jdoConf, getJdoConfBaseURL());
        } catch (Exception ex) {
            LOG.error(ex.getMessage(), ex);
            fail(ex.getMessage());
        }
View Full Code Here

Examples of org.castor.jdo.conf.JdoConf

            || (engine == DatabaseEngineType.ORACLE)
            || (engine == DatabaseEngineType.SQL_SERVER);
    }
   
    public void testLoadConfA() throws Exception {
        JdoConf aConf = createJdoConfA(getJdoConf(DBNAME, MAPPING));
        JDOManager.loadConfiguration(aConf, getJdoConfBaseURL());

        executeQuery(JDOManager.createInstance(DBNAME + "-a").getDatabase());
       
        JDOManager.disposeInstance(DBNAME + "-a");
View Full Code Here

Examples of org.castor.jdo.conf.JdoConf

       
        JDOManager.disposeInstance(DBNAME + "-a");
    }

    public void testLoadConfB() throws Exception {
        JdoConf bConf = createJdoConfB(getJdoConf(DBNAME, MAPPING));
        JDOManager.loadConfiguration(bConf, getJdoConfBaseURL());

        executeQuery(JDOManager.createInstance(DBNAME + "-b").getDatabase());
       
        JDOManager.disposeInstance(DBNAME + "-b");
View Full Code Here

Examples of org.castor.jdo.conf.JdoConf

       
        JDOManager.disposeInstance(DBNAME + "-b");
    }

    public void testLoadConfAB() throws Exception {
        JdoConf abConf = createJdoConfAB(getJdoConf(DBNAME, MAPPING));
        JDOManager.loadConfiguration(abConf, getJdoConfBaseURL());

        executeQuery(JDOManager.createInstance(DBNAME + "-a").getDatabase());
        executeQuery(JDOManager.createInstance(DBNAME + "-b").getDatabase());
       
View Full Code Here

Examples of org.castor.jdo.conf.JdoConf

    public void testLoadConfAandB() throws Exception {
        // Load configuration for A first followed by B.
        // Why should this behave different as loading A and B
        // from one configuration containing both?
        JdoConf aConf = createJdoConfA(getJdoConf(DBNAME, MAPPING));
        JDOManager.loadConfiguration(aConf, getJdoConfBaseURL());
        JdoConf bConf = createJdoConfB(getJdoConf(DBNAME, MAPPING));
        JDOManager.loadConfiguration(bConf, getJdoConfBaseURL());

        executeQuery(JDOManager.createInstance(DBNAME + "-a").getDatabase());
        executeQuery(JDOManager.createInstance(DBNAME + "-b").getDatabase());
       
View Full Code Here

Examples of org.castor.jdo.conf.JdoConf

        // Load configuration for B first followed by a configuration
        // containing A and B. This means B is loaded twice.
        // What shell we do with the second configuration containg A and B?
        // Ignore it completely, only ignore second configuration of B or
        // or replace the first configuration of B with the second one.
        JdoConf bConf = createJdoConfB(getJdoConf(DBNAME, MAPPING));
        JDOManager.loadConfiguration(bConf, getJdoConfBaseURL());
        JdoConf abConf = createJdoConfAB(getJdoConf(DBNAME, MAPPING));
        JDOManager.loadConfiguration(abConf, getJdoConfBaseURL());

        executeQuery(JDOManager.createInstance(DBNAME + "-a").getDatabase());
        executeQuery(JDOManager.createInstance(DBNAME + "-b").getDatabase());
       
View Full Code Here

Examples of org.castor.jdo.conf.JdoConf

        // Load configuration for A and B first followed by a configuration
        // containing only A. This means A is loaded twice.
        // What shell we do with the second configuration containg A?
        // Ignore it completely, only ignore second configuration of A or
        // or replace the first configuration of A with the second one.
        JdoConf abConf = createJdoConfAB(getJdoConf(DBNAME, MAPPING));
        JDOManager.loadConfiguration(abConf, getJdoConfBaseURL());
        JdoConf aConf = createJdoConfA(getJdoConf(DBNAME, MAPPING));
        JDOManager.loadConfiguration(aConf, getJdoConfBaseURL());

        executeQuery(JDOManager.createInstance(DBNAME + "-a").getDatabase());
        executeQuery(JDOManager.createInstance(DBNAME + "-b").getDatabase());
       
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.