Package org.jenkinsci.plugins.database
Class GenericDatabase
java.lang.Object
hudson.model.AbstractDescribableImpl<Database>
org.jenkinsci.plugins.database.Database
org.jenkinsci.plugins.database.GenericDatabase
- All Implemented Interfaces:
ExtensionPoint,Describable<Database>
Database implementation that allows the user to specify arbitrary JDBC connection string.- Author:
- Kohsuke Kawaguchi
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionGenericDatabase(String url, String driver, String username, Secret password) -
Method Summary
Modifier and TypeMethodDescriptionvoidsetInitialSize(Integer initialSize) voidsetMaxIdle(Integer maxIdle) voidsetMaxTotal(Integer maxTotal) voidsetMinIdle(Integer minIdle) Methods inherited from class org.jenkinsci.plugins.database.Database
isOTelJdbcInstrumentationEnabled
-
Field Details
-
driver
-
username
-
password
-
url
-
-
Constructor Details
-
GenericDatabase
-
-
Method Details
-
getInitialSize
-
setInitialSize
-
getMaxTotal
-
setMaxTotal
-
getMaxIdle
-
setMaxIdle
-
getMinIdle
-
setMinIdle
-
getDataSource
- Specified by:
getDataSourcein classDatabase- Throws:
SQLException
-
getDescriptor
- Specified by:
getDescriptorin interfaceDescribable<Database>- Overrides:
getDescriptorin classDatabase
-