Module org.eclipse.persistence.jpa
Class DataSourceConfig
- java.lang.Object
-
- org.eclipse.persistence.internal.jpa.DataSourceConfig
-
public class DataSourceConfig extends Object
Simplest of all possible holder objects for all of the data source info required by the Entity test environment. Use the constructor to simultaneously create the instance and set the fields.At least one (transactional) data source must be specified and potentially a non-transactional if such a data source is appropriate (e.g. for non-transactional operations).
-
-
Field Summary
Fields Modifier and Type Field Description StringdriverDriver class name stringStringdsNameIdentifier to name this data source (must be Container-unique)StringjndiNameJNDI name that data source should be bound toStringpasswordPassword to use when connecting to the dbStringurlURL that is passed to the driver to determine dbStringuserUser name to use when connecting to the db
-
-
-
Field Detail
-
dsName
public String dsName
Identifier to name this data source (must be Container-unique)
-
jndiName
public String jndiName
JNDI name that data source should be bound to
-
url
public String url
URL that is passed to the driver to determine db
-
driver
public String driver
Driver class name string
-
user
public String user
User name to use when connecting to the db
-
password
public String password
Password to use when connecting to the db
-
-
Constructor Detail
-
DataSourceConfig
public DataSourceConfig(String dsName, String jndiName, String url, String driver, String user, String password)
Constructor used to create a DataSourceConfig- Parameters:
dsName- Data source identifierjndiName- Name that the data source should be bound to in JNDIurl- Passed to the driver to determine dbdriver- The class name for the db driveruser- User name to use when connecting to the dbpassword- Password to use when connecting to the db
-
-