| Modifier and Type | Class and Description |
|---|---|
static class |
DBConfigImpl.PropInfo
local Property file info helper
|
| Constructor and Description |
|---|
DBConfigImpl() |
| Modifier and Type | Method and Description |
|---|---|
Map<String,String> |
asMap()
return my values a a map
|
void |
fromMap(Map<String,String> map)
get my values from the given map
|
static DBConfigImpl.PropInfo |
getConfigInfo(String configname)
get the info for the configuration
|
static String |
getConfigName()
get the name of the current configuration
|
static DBConfig |
getDBConfig(String dbConfigName)
get the Database Properties for the given database Configuration name
|
String |
getDriver() |
static DBConfigImpl.PropInfo |
getIniInfo()
get the ini info
|
static File |
getIniPath()
get the path to the initialization files
|
String |
getName() |
String |
getPassword() |
String |
getPassword2() |
com.bitplan.datatypes.TypeConverter |
getTypeConverter() |
String |
getUrl() |
String |
getUser() |
void |
save()
save me as an ini file
|
void |
setDriver(String driver) |
void |
setName(String name) |
void |
setPassword(String password) |
void |
setPassword2(String password2) |
void |
setTypeConverter(com.bitplan.datatypes.TypeConverter typeConverter) |
void |
setUrl(String url) |
void |
setUser(String user) |
Properties |
testConnection()
test the connection and return the clientInfo for it
|
protected static Logger LOGGER
public String getPassword()
getPassword in interface DBConfigpublic void setPassword(String password)
setPassword in interface DBConfigpublic String getPassword2()
getPassword2 in interface DBConfigpublic void setPassword2(String password2)
setPassword2 in interface DBConfigpublic static DBConfigImpl.PropInfo getIniInfo()
public static DBConfigImpl.PropInfo getConfigInfo(String configname)
public static String getConfigName()
public static File getIniPath()
public static DBConfig getDBConfig(String dbConfigName)
DBConfigName - public void save()
throws Exception
public void fromMap(Map<String,String> map)
fromMap in interface com.bitplan.persistence.Postable<DBConfig>public Map<String,String> asMap()
asMap in interface com.bitplan.persistence.Postable<DBConfig>public void setTypeConverter(com.bitplan.datatypes.TypeConverter typeConverter)
setTypeConverter in interface com.bitplan.persistence.Postable<DBConfig>public com.bitplan.datatypes.TypeConverter getTypeConverter()
getTypeConverter in interface com.bitplan.persistence.Postable<DBConfig>public Properties testConnection() throws Exception
DBConfigtestConnection in interface DBConfigExceptionCopyright © 2018 BITPlan GmbH. All rights reserved.