public class DatabaseConfiguration extends Object
| Modifier and Type | Field and Description |
|---|---|
String |
database |
String |
dataSourceName |
String |
driver |
String |
password |
String |
port |
String |
protocol |
String |
server |
int |
type |
String |
userName |
String |
wrapper |
| Constructor and Description |
|---|
DatabaseConfiguration(DatabaseConfiguration config) |
DatabaseConfiguration(String dataSourceName,
String driver,
String protocol,
String server,
String port,
String database,
String userName,
String password,
int type) |
| Modifier and Type | Method and Description |
|---|---|
Counter |
getConnectionCounter() |
String |
getDatabase() |
String |
getDataSourceName() |
String |
getDriver() |
String |
getPassword() |
int |
getPort() |
Properties |
getProperties()
Convenience function.
|
String |
getProtocol() |
String |
getServer() |
int |
getType() |
String |
getUserName() |
boolean |
isDataSource() |
Connection |
makeConnection() |
Connection |
makeConnection(String databaseName) |
static void |
registerWrapper(String name,
DatabaseConfigurationWrapper wrapper) |
void |
setRollbackOnlyMode() |
void |
setWrapper(String wrapper) |
String |
toString() |
public String dataSourceName
public String driver
public String protocol
public String server
public String port
public String database
public String userName
public String password
public int type
public String wrapper
public DatabaseConfiguration(DatabaseConfiguration config)
public static void registerWrapper(String name, DatabaseConfigurationWrapper wrapper)
public boolean isDataSource()
public Properties getProperties()
public Connection makeConnection()
public Connection makeConnection(String databaseName)
public Counter getConnectionCounter()
public String getDataSourceName()
public String getDatabase()
public String getDriver()
public String getPassword()
public String getProtocol()
public String getServer()
public int getType()
public String getUserName()
public int getPort()
public void setWrapper(String wrapper)
public void setRollbackOnlyMode()
Copyright © 2022. All rights reserved.