Class PipelineMavenPluginMySqlDao
java.lang.Object
org.jenkinsci.plugins.pipeline.maven.db.AbstractPipelineMavenPluginDao
org.jenkinsci.plugins.pipeline.maven.db.PipelineMavenPluginMySqlDao
- All Implemented Interfaces:
Closeable
,AutoCloseable
,org.jenkinsci.plugins.pipeline.maven.dao.PipelineMavenPluginDao
- Author:
- Cyrille Le Clerc
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.jenkinsci.plugins.pipeline.maven.dao.PipelineMavenPluginDao
org.jenkinsci.plugins.pipeline.maven.dao.PipelineMavenPluginDao.Builder
-
Field Summary
Fields inherited from class org.jenkinsci.plugins.pipeline.maven.db.AbstractPipelineMavenPluginDao
LOGGER
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
extractMariaDbVersion
(String jdbcDatabaseProductVersion) Extract the MariaDB server version fromDatabaseMetaData.getDatabaseProductVersion()
protected String
protected void
boolean
protected void
Methods inherited from class org.jenkinsci.plugins.pipeline.maven.db.AbstractPipelineMavenPluginDao
acceptNoCredentials, cleanup, close, deleteBuild, deleteJob, getBuilder, getDataSource, getGeneratedArtifacts, getGeneratedPrimaryKey, getJenkinsDetails, getJenkinsMasterPrimaryKey, getOrCreateArtifactPrimaryKey, getOrCreateBuildPrimaryKey, getSchemaVersion, initializeDatabase, listDependencies, listDownstreamJobs, listDownstreamJobs, listDownstreamJobsByArtifact, listDownstreamJobsByArtifactBasedOnMavenDependencies, listDownstreamJobsByArtifactBasedOnParentProjectDependencies, listDownstreamPipelinesBasedOnMavenDependencies, listDownstreamPipelinesBasedOnMavenDependencies, listDownstreamPipelinesBasedOnParentProjectDependencies, listTransitiveUpstreamJobs, listTransitiveUpstreamJobs, listUpstreamJobs, listUpstreamPipelinesBasedOnMavenDependencies, listUpstreamPipelinesBasedOnParentProjectDependencies, recordBuildUpstreamCause, recordDependency, recordGeneratedArtifact, recordParentProject, renameJob, testDatabase, toPrettyString, updateBuildOnCompletion
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.jenkinsci.plugins.pipeline.maven.dao.PipelineMavenPluginDao
getDefaultJdbcUrl, listDownstreamJobs
-
Constructor Details
-
PipelineMavenPluginMySqlDao
public PipelineMavenPluginMySqlDao() -
PipelineMavenPluginMySqlDao
-
-
Method Details
-
getDescription
-
extractMariaDbVersion
Extract the MariaDB server version fromDatabaseMetaData.getDatabaseProductVersion()
- Parameters:
jdbcDatabaseProductVersion
- such as "5.5.5-10.2.20-MariaDB", "5.5.5-10.3.11-MariaDB-1:10.3.11+maria~bionic"- Returns:
null
if this is not a MariaDB version, the MariaDB server version (e.g. "10.2.20", "10.3.11") if parsed, the entireDatabaseMetaData.getDatabaseProductVersion()
if the parsing oof the MariaDB server version failed
-
getJdbcScheme
- Specified by:
getJdbcScheme
in classAbstractPipelineMavenPluginDao
- Returns:
- "h2", "mysql"...
-
handleDatabaseInitialisationException
- Overrides:
handleDatabaseInitialisationException
in classAbstractPipelineMavenPluginDao
-
registerJdbcDriver
protected void registerJdbcDriver()- Specified by:
registerJdbcDriver
in classAbstractPipelineMavenPluginDao
-
getDatabaseDescription
- Overrides:
getDatabaseDescription
in classAbstractPipelineMavenPluginDao
-
isEnoughProductionGradeForTheWorkload
public boolean isEnoughProductionGradeForTheWorkload()
-