Examples of PersistenceConfiguration


Examples of org.jpox.PersistenceConfiguration

        clr = omfContext.getClassLoaderResolver(null);
    }

    public Enhancer()
    {
        this(new PersistenceConfiguration() {});
    }
View Full Code Here

Examples of org.jpox.PersistenceConfiguration

        if (jdoXmlContents == null)
        {
            throw new IllegalArgumentException("Contents of file is null");
        }

        OMFContext context = new OMFContext(new PersistenceConfiguration(){});
        MetaDataManager mgr = new JDOMetaDataManager(context);
        mgr.setEnhancing();
        mgr.setMetaDataFactory(getMetaDataFactory(mgr));
        MetaDataParser parser = new MetaDataParser(mgr, true);
        JDOClassLoaderResolver clr = new JDOClassLoaderResolver();
View Full Code Here

Examples of org.jpox.PersistenceConfiguration

        {
            table_name = table_name.toUpperCase();
        }

        // Utilise default catalog/schema if available and applicable
        PersistenceConfiguration conf = storeMgr.getOMFContext().getPersistenceConfiguration();
        String catalog_name = conf.getStringProperty("org.jpox.mapping.Catalog");
        String schema_name = conf.getStringProperty("org.jpox.mapping.Schema");
        if (!dba.supportsCatalogsInTableDefinitions())
        {
            catalog_name = null;
        }
        if (!dba.supportsSchemasInTableDefinitions())
View Full Code Here

Examples of org.jpox.PersistenceConfiguration

        unitMetaData = EntityManagerFactoryImpl.unitMetaDataCache.get(unitName);
        if (unitMetaData == null)
        {
            // Find all "META-INF/persistence.xml" files in the current thread loader CLASSPATH and parse them
            // Create a temporary PMFContext so we have a parser
            OMFContext pmfCtxt = new OMFContext(new PersistenceConfiguration(){});
            pmfCtxt.setApi("JPA");
            MetaDataManager metadataMgr = pmfCtxt.getMetaDataManager();
            PersistenceFileMetaData[] files = metadataMgr.parsePersistenceFiles();
            if (files == null)
            {
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.