/** * Return the 'NonJTA' ConnectionFactory, looking it up from JNDI if needed. * * @return the NonJTA connection factory or null if connectionFactoryName is blank. */ public Object getConnectionFactory2() { if(StringUtil.isNotBlank(_connectionFactory2Name)) { return Configurations.lookup(_connectionFactory2Name, "openjpa.ConnectionFactory2", _log); } else { return null; } }
/** * Return the 'JTA' ConnectionFactory, looking it up from JNDI if needed. * * @return the JTA connection factory or null if connectionFactoryName is blank. */ public Object getConnectionFactory() { if(StringUtil.isNotBlank(_connectionFactoryName)) { return Configurations.lookup(_connectionFactoryName, "openjpa.ConnectionFactory", _log ); } else { return null; } }
/** * Return the 'JTA' ConnectionFactory, looking it up from JNDI if needed. * * @return the JTA connection factory or null if connectionFactoryName is blank. */ public Object getConnectionFactory() { if(StringUtil.isNotBlank(_connectionFactoryName)) { return Configurations.lookup(_connectionFactoryName, "openjpa.ConnectionFactory", _log ); } else { return null; } }
/** * Return the 'NonJTA' ConnectionFactory, looking it up from JNDI if needed. * * @return the NonJTA connection factory or null if connectionFactoryName is blank. */ public Object getConnectionFactory2() { if(StringUtil.isNotBlank(_connectionFactory2Name)) { return Configurations.lookup(_connectionFactory2Name, "openjpa.ConnectionFactory2", _log); } else { return null; } }