public class DatabaseConfig extends Object
| Modifier and Type | Field and Description |
|---|---|
protected String |
dialectClassName |
protected String |
driverClassName |
protected String |
password |
protected DatabaseType |
type |
protected String |
url |
protected String |
userName |
| Constructor and Description |
|---|
DatabaseConfig(String connectionDatasource) |
| Modifier and Type | Method and Description |
|---|---|
String |
getConnectionDatasource() |
String |
getDialectClassName() |
String |
getDriverClassName() |
String |
getPassword() |
DatabaseType |
getType() |
String |
getUrl() |
String |
getUserName() |
boolean |
hasConnectionDatasource() |
void |
setConnectionDatasource(String connectionDatasource) |
void |
setDialectClassName(String dialectClassName) |
void |
setDriverClassName(String driverClassName) |
void |
setPassword(String password) |
void |
setType(DatabaseType type) |
void |
setUrl(String url) |
void |
setUserName(String userName) |
protected DatabaseType type
protected String url
protected String userName
protected String password
protected String driverClassName
protected String dialectClassName
public DatabaseConfig(String connectionDatasource)
public DatabaseType getType()
public void setType(DatabaseType type)
type - the type to setpublic String getUrl()
public void setUrl(String url)
url - the url to setpublic String getUserName()
public void setUserName(String userName)
userName - the userName to setpublic String getPassword()
public void setPassword(String password)
password - the password to setpublic String getDriverClassName()
public void setDriverClassName(String driverClassName)
driverClassName - the driverClassName to setpublic String getDialectClassName()
public void setDialectClassName(String dialectClassName)
public String getConnectionDatasource()
public void setConnectionDatasource(String connectionDatasource)
public boolean hasConnectionDatasource()
Copyright © 2015 Suncode. All rights reserved.