public class ConnectionInfo extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
CONNECTION_TYPE_JDBC |
static int |
CONNECTION_TYPE_JNDI |
| Constructor and Description |
|---|
ConnectionInfo(String sJndiDatasource,
String sUser,
String sPassword)
Constructs a ConnectionInfo with the specified parameters.
|
ConnectionInfo(String sDriver,
String sURL,
String sUser,
String sPassword)
Constructs a ConnectionInfo with the specified parameters.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getConnectionType()
Get current connection type, which should only return �CONNECTION_TYPE_JNDI� or �CONNECTION_TYPE_JDBC�
|
String |
getDriver()
Gets the jdbc runtime driver name.
|
String |
getJNDIDataSource() |
String |
getPassword()
Gets the runtime user's password.
|
String |
getURL()
Gets the jdbc runtime URL.
|
String |
getUser()
Gets the runtime user name used to connect to the database.
|
public static final int CONNECTION_TYPE_JNDI
public static final int CONNECTION_TYPE_JDBC
public ConnectionInfo(String sDriver, String sURL, String sUser, String sPassword)
sDriver - Name of the driver used to connect to the database.sURL - A jdbc url.sUser - User name used to connect to the database.sPassword - User's password.public String getDriver()
public String getURL()
public String getUser()
public String getPassword()
public int getConnectionType()
public String getJNDIDataSource()
© insightsoftware. All rights reserved.