Module org.eclipse.persistence.jpa
Class DataSourceConfig
java.lang.Object
org.eclipse.persistence.internal.jpa.DataSourceConfig
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
Modifier and TypeFieldDescriptionDriver class name stringIdentifier to name this data source (must be Container-unique)JNDI name that data source should be bound toPassword to use when connecting to the dbURL that is passed to the driver to determine dbUser name to use when connecting to the db -
Constructor Summary
-
Method Summary
-
Field Details
-
dsName
Identifier to name this data source (must be Container-unique) -
jndiName
JNDI name that data source should be bound to -
url
URL that is passed to the driver to determine db -
driver
Driver class name string -
user
User name to use when connecting to the db -
password
Password to use when connecting to the db
-
-
Constructor Details
-
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
-
-
Method Details