public class AdminDBConnector
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private boolean |
connected
Set to true if the connection was successful
|
private java.lang.String |
connectionString
The db connection string
|
private java.lang.String |
driver
The driver for the db connection
|
private java.lang.String |
errorMsg
Error message from the db if the connection attempt was unsuccessful
|
private java.lang.String |
password
The password for the db connection
|
private java.lang.String |
user
The user name for the db connection
|
Constructor and Description |
---|
AdminDBConnector()
Constructor
|
AdminDBConnector(java.lang.String user,
java.lang.String password,
java.lang.String connectionString)
Constructor
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getConnectionString() |
java.lang.String |
getDriver() |
java.lang.String |
getErrorMsg() |
java.lang.String |
getPassword() |
java.lang.String |
getUser() |
boolean |
isConnected() |
void |
setConnected(boolean connected) |
void |
setConnectionString(java.lang.String connectionString) |
void |
setDriver(java.lang.String driver) |
void |
setErrorMsg(java.lang.String errorMsg) |
void |
setPassword(java.lang.String password) |
void |
setUser(java.lang.String user) |
java.lang.String |
toString() |
private java.lang.String user
private java.lang.String password
private java.lang.String connectionString
private java.lang.String driver
private boolean connected
private java.lang.String errorMsg
public AdminDBConnector()
public AdminDBConnector(java.lang.String user, java.lang.String password, java.lang.String connectionString)
user
- the userpassword
- the passwordconnectionString
- the connectionStringpublic java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getConnectionString()
public void setConnectionString(java.lang.String connectionString)
connectionString
- The connectionString to set.public java.lang.String getPassword()
public void setPassword(java.lang.String password)
password
- The password to set.public java.lang.String getUser()
public void setUser(java.lang.String user)
user
- The user to set.public boolean isConnected()
public void setConnected(boolean connected)
connected
- The connected to set.public java.lang.String getErrorMsg()
public void setErrorMsg(java.lang.String errorMsg)
errorMsg
- The errorMsg to set.public java.lang.String getDriver()
public void setDriver(java.lang.String driver)
driver
- The driver to set.Copyright © 2018 DS Data Systems UK Ltd.