public class DBConfig extends Object
Constructor and Description |
---|
DBConfig() |
Modifier and Type | Method and Description |
---|---|
void |
closeConnections() |
Connection |
getConnection()
If the BasicDataSource for this DBConfiguration has not been initialized, then it is
initialized.
|
String |
getDbIdentifier() |
String |
getDriver() |
int |
getMaxConnections() |
String |
getName() |
String |
getPass() |
String |
getType() |
String |
getUrl() |
String |
getUser() |
void |
reset() |
void |
setDbIdentifier(String string) |
void |
setDriver(String string) |
void |
setMaxConnections(int i) |
void |
setPass(String string) |
void |
setType(String string) |
void |
setUrl(String string) |
void |
setUser(String string) |
public Connection getConnection() throws SQLException
SQLException
public String getDriver()
public int getMaxConnections()
public String getPass()
public String getUrl()
public String getUser()
public void setDriver(String string)
string
- public void setMaxConnections(int i)
i
- public void setPass(String string)
string
- public void setUrl(String string)
string
- public String getName()
public void setUser(String string)
string
- public String getDbIdentifier()
public void setDbIdentifier(String string)
string
- public String getType()
public void setType(String string)
string
- public void closeConnections() throws SQLException
SQLException
public void reset()
Copyright © 2015 Neuroinformatics Research Group. All rights reserved.