19 package com.mysql.clusterj.jpatest;
21 import java.util.ArrayList;
22 import java.util.List;
24 import javax.persistence.EntityManagerFactory;
33 protected EntityManagerFactory emf;
39 List<String> extraProps =
new ArrayList<String>();
40 String connectionDriverName = System.getProperty(
"openjpa.ConnectionDriverName");
41 String connectionURL = System.getProperty(
"openjpa.ConnectionURL");
42 String connectString = System.getProperty(
"openjpa.ndb.connectString");
43 if (connectionDriverName != null) {
44 extraProps.add(
"openjpa.ConnectionDriverName");
45 extraProps.add(connectionDriverName);
47 if (connectionURL != null) {
48 extraProps.add(
"openjpa.ConnectionURL");
49 extraProps.add(connectionURL);
51 if (connectString != null) {
52 extraProps.add(
"openjpa.ndb.connectString");
53 extraProps.add(connectString);
55 setUp(extraProps.toArray());
62 protected void setUp(Object... props) {
75 }
catch (Exception e) {