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>
public class GenericDatabase extends Database
Database
implementation that allows the user to specify arbitrary JDBC connection string.- Author:
- Kohsuke Kawaguchi
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
GenericDatabase.DescriptorImpl
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description GenericDatabase(String url, String driver, String username, Secret password)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
-
-
Method Detail
-
getInitialSize
@NonNull public Integer getInitialSize()
-
setInitialSize
@DataBoundSetter public void setInitialSize(Integer initialSize)
-
getMaxTotal
@NonNull public Integer getMaxTotal()
-
setMaxTotal
@DataBoundSetter public void setMaxTotal(Integer maxTotal)
-
getMaxIdle
@NonNull public Integer getMaxIdle()
-
setMaxIdle
@DataBoundSetter public void setMaxIdle(Integer maxIdle)
-
getMinIdle
@NonNull public Integer getMinIdle()
-
setMinIdle
@DataBoundSetter public void setMinIdle(Integer minIdle)
-
getDataSource
public DataSource getDataSource() throws SQLException
- Specified by:
getDataSource
in classDatabase
- Throws:
SQLException
-
getDescriptor
public GenericDatabase.DescriptorImpl getDescriptor()
- Specified by:
getDescriptor
in interfaceDescribable<Database>
- Overrides:
getDescriptor
in classDatabase
-
-