public class GenericDatabase extends Database
Database implementation that allows the user to specify arbitrary JDBC connection string.| Modifier and Type | Class and Description |
|---|---|
static class |
GenericDatabase.DescriptorImpl |
ExtensionPoint.LegacyInstancesAreScopedToHudson| Modifier and Type | Field and Description |
|---|---|
String |
driver |
Secret |
password |
String |
url |
String |
username |
| Constructor and Description |
|---|
GenericDatabase(String url,
String driver,
String username,
Secret password) |
| Modifier and Type | Method and Description |
|---|---|
DataSource |
getDataSource() |
GenericDatabase.DescriptorImpl |
getDescriptor() |
Integer |
getInitialSize() |
Integer |
getMaxIdle() |
Integer |
getMaxTotal() |
Integer |
getMinIdle() |
void |
setInitialSize(Integer initialSize) |
void |
setMaxIdle(Integer maxIdle) |
void |
setMaxTotal(Integer maxTotal) |
void |
setMinIdle(Integer minIdle) |
public final String driver
public final String username
public final Secret password
public final String url
@DataBoundSetter public void setInitialSize(Integer initialSize)
@DataBoundSetter public void setMaxTotal(Integer maxTotal)
@DataBoundSetter public void setMaxIdle(Integer maxIdle)
@DataBoundSetter public void setMinIdle(Integer minIdle)
public DataSource getDataSource() throws SQLException
getDataSource in class DatabaseSQLExceptionpublic GenericDatabase.DescriptorImpl getDescriptor()
getDescriptor in interface Describable<Database>getDescriptor in class DatabaseCopyright © 2016–2021. All rights reserved.