Top Description Fields Constructors Methods
org.eclipse.persistence.internal.jpa

public Class DataSourceConfig

extends Object
Class Inheritance
Imports
java.io.StringWriter

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 TypeField and Description
public String
driver

Driver class name string

public String
dsName

Identifier to name this data source (must be Container-unique)

public String
jndiName

JNDI name that data source should be bound to

public String
password

Password to use when connecting to the db

public String
url

URL that is passed to the driver to determine db

public String
user

User name to use when connecting to the db

Constructor Summary

AccessConstructor and Description
public
DataSourceConfig(String
Data source identifier
dsName
,
String
Name that the data source should be bound to in JNDI
jndiName
,
String
Passed to the driver to determine db
url
,
String
The class name for the db driver
driver
,
String
User name to use when connecting to the db
user
,
String
Password to use when connecting to the db
password
)

Constructor used to create a DataSourceConfig

Method Summary

Modifier and TypeMethod and Description
public String
toString()

Overrides java.lang.Object.toString.

INTERNAL:
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

driverback to summary
public String driver

Driver class name string

dsNameback to summary
public String dsName

Identifier to name this data source (must be Container-unique)

jndiNameback to summary
public String jndiName

JNDI name that data source should be bound to

passwordback to summary
public String password

Password to use when connecting to the db

urlback to summary
public String url

URL that is passed to the driver to determine db

userback to summary
public String user

User name to use when connecting to the db

Constructor Detail

DataSourceConfigback to summary
public DataSourceConfig(String dsName, String jndiName, String url, String driver, String user, String password)

Constructor used to create a DataSourceConfig

Parameters
dsName:String

Data source identifier

jndiName:String

Name that the data source should be bound to in JNDI

url:String

Passed to the driver to determine db

driver:String

The class name for the db driver

user:String

User name to use when connecting to the db

password:String

Password to use when connecting to the db

Method Detail

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

INTERNAL:

Returns:String

Doc from java.lang.Object.toString.

a string representation of the object.

Annotations
@Override