Examples of PersistenceUnitTransactionType


Examples of javax.persistence.spi.PersistenceUnitTransactionType

            key = ((Map.Entry) o).getKey();
            val = ((Map.Entry) o).getValue();
            if (KEY_PROVIDER.equals(key))
                setPersistenceProviderClassName((String) val);
            else if ("javax.persistence.transactionType".equals(key)) {
                PersistenceUnitTransactionType ttype;
                if (val instanceof String)
                    ttype = Enum.valueOf(PersistenceUnitTransactionType.class,
                        (String) val);
                else
                    ttype = (PersistenceUnitTransactionType) val;
View Full Code Here

Examples of javax.persistence.spi.PersistenceUnitTransactionType

        // The validation mode to be used for the persistence unit
        final ValidationMode validationMode = Enum.valueOf(ValidationMode.class, info.validationMode);
        unitInfo.setValidationMode(validationMode);

        // Persistence Unit Transaction Type
        final PersistenceUnitTransactionType type = Enum.valueOf(PersistenceUnitTransactionType.class, info.transactionType);
        unitInfo.setTransactionType(type);

        // Non JTA Datasource
        String nonJtaDataSourceId = info.nonJtaDataSource;
        unitInfo.setNonJtaDataSourceName(nonJtaDataSourceId);
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.