object/src/main/java/com/orientechnologies/orient/object/jpa/OJPAPersistenceUnitInfo.java
public static PersistenceUnitTransactionType initTransactionType(String elementContent) {
		if (elementContent == null || elementContent.isEmpty()) {
			return null;
		}

		try {
			return PersistenceUnitTransactionType.valueOf(elementContent.toUpperCase(Locale.ENGLISH));
		} catch (IllegalArgumentException ex) {
			throw new PersistenceException("Unknown TransactionType: " + elementContent, ex);
		}

	}
public static PersistenceUnitTransactionType initTransactionType(String elementContent) {
		if (elementContent == null || elementContent.isEmpty()) {
			return null;
		}

		try {
			return PersistenceUnitTransactionType.valueOf(elementContent.toUpperCase(Locale.ENGLISH));
		} catch (IllegalArgumentException ex) {
			throw new PersistenceException("Unknown TransactionType: " + elementContent, ex);
		}

	}
public static PersistenceUnitTransactionType initTransactionType ( String elementContent ) { if ( elementContent == null || elementContent . isEmpty ( ) ) { return null ; } try { return PersistenceUnitTransactionType . valueOf ( elementContent . toUpperCase ( Locale . ENGLISH ) ) ; } catch ( IllegalArgumentException ex ) { throw new PersistenceException ( "Unknown TransactionType: " + elementContent , ex ) ; } }
TODO: init default value In a Java EE environment, if this element is not specified, the default is JTA. In a Java SE
environment, if this element is not specified, a default of RESOURCE_LOCAL may be assumed.

@param elementContent
@return
TODO : init default value In a Java EE environment if this element is not specified the default is JTA . In a Java SE environment if this element is not specified a default of RESOURCE_LOCAL may be assumed .