Package javax.jdo

Examples of javax.jdo.PersistenceManagerFactory.supportedOptions()


        {
            throw new JDOUnsupportedOptionException("Cannot change the transaction isolation level while a datastore transaction is active");
        }

        PersistenceManagerFactory pmf = pm.getPersistenceManagerFactory();
        if (!pmf.supportedOptions().contains("javax.jdo.option.TransactionIsolationLevel." + level))
        {
            throw new JDOUnsupportedOptionException("Isolation level \"" + level + "\" not supported by this datastore");
        }

        int isolationLevel = TransactionUtils.getTransactionIsolationLevelForName(level);
View Full Code Here


    /** */
    public void test() {
        PersistenceManagerFactory pmf = getPMF();
        if (debug) logger.debug("Options supported by this implementation:");
        Collection c = pmf.supportedOptions();
        Iterator iter = c.iterator();
        while( iter.hasNext() ){
            String option = (String) iter.next();
            if (debug) logger.debug(option);
        }
View Full Code Here

            System.exit(-1);
        }
        String PMFclassname = args[0];
        Class PMFclass = Class.forName(PMFclassname);
        PersistenceManagerFactory pmf = (PersistenceManagerFactory) PMFclass.newInstance();
        Collection options = pmf.supportedOptions();
        System.out.println("Supported options are:");
        Iterator iter = options.iterator();
        while( iter.hasNext() ){
            String val = (String) iter.next();
            System.out.println(val);       
View Full Code Here

    /** */
    public void test() {
        PersistenceManagerFactory pmf = getPMF();
        if (debug) logger.debug("Options supported by this implementation:");
        Collection c = pmf.supportedOptions();
        Iterator iter = c.iterator();
        while( iter.hasNext() ){
            String option = (String) iter.next();
            if (debug) logger.debug(option);
        }
View Full Code Here

            System.exit(-1);
        }
        String PMFclassname = args[0];
        Class PMFclass = Class.forName(PMFclassname);
        PersistenceManagerFactory pmf = (PersistenceManagerFactory) PMFclass.newInstance();
        Collection options = pmf.supportedOptions();
        System.out.println("Supported options are:");
        Iterator iter = options.iterator();
        while( iter.hasNext() ){
            String val = (String) iter.next();
            System.out.println(val);       
View Full Code Here

        {
            throw new JDOUnsupportedOptionException("Cannot change the transaction isolation level while a datastore transaction is active");
        }

        PersistenceManagerFactory pmf = pm.getPersistenceManagerFactory();
        if (!pmf.supportedOptions().contains("javax.jdo.option.TransactionIsolationLevel." + level))
        {
            throw new JDOUnsupportedOptionException("Isolation level \"" + level + "\" not supported by this datastore");
        }

        int isolationLevel = TransactionUtils.getTransactionIsolationLevelForName(level);
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.