net.sf.mavenhist
Class HistorisationBase

java.lang.Object
  extended by net.sf.mavenhist.HistorisationBase

public class HistorisationBase
extends Object

Base class to extract the value from specified reports with extractors. To be able to work this class must be filled with setter methods before the use. If storeAllValues is called before all settings are set. An exception is thrown.


Constructor Summary
HistorisationBase()
           
 
Method Summary
 String getArtifactId()
           
 String getBuildNumber()
           
 String getDate()
           
 String getGroupId()
           
 String getMavenBuildDir()
           
 String getMavenDocsDest()
           
 net.sf.mavenhist.persistency.IPersistency getPersistency()
           
 String getPersistencyClass()
           
 void initialisePersistency()
          Initialises the persistency layer.
 void setArtifactId(String artifactId)
           
 void setBuildNumber(String buildNumber)
           
 void setDate(String date)
           
 void setExtractorNames(String extractorNames)
          Sets a comma-separated list of extractors.
 void setGroupId(String groupId)
           
 void setMavenBuildDir(String mavenBuildDir)
           
 void setMavenDocsDest(String mavenDocsDest)
           
 void setPersistency(net.sf.mavenhist.persistency.IPersistency persistency)
           
 void setPersistencyClass(String persistencyClass)
           
 void storeAllValues()
          Extracts and stores the results of all extractors given in the setExtractorNames method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HistorisationBase

public HistorisationBase()
Method Detail

storeAllValues

public void storeAllValues()
                    throws Exception
Extracts and stores the results of all extractors given in the setExtractorNames method.

Throws:
Exception - will be thrown if not all needed parameters are set before calling this method.

initialisePersistency

public void initialisePersistency()
                           throws Exception
Initialises the persistency layer. This is needed before any data are stored in the db.

Throws:
Exception - if something failed.

getPersistencyClass

public String getPersistencyClass()
Returns:
the persistencyClass

setPersistencyClass

public void setPersistencyClass(String persistencyClass)
Parameters:
persistencyClass - the persistencyClass to set

setExtractorNames

public void setExtractorNames(String extractorNames)
Sets a comma-separated list of extractors.

Parameters:
extractorNames - comma-separated list.

getMavenBuildDir

public String getMavenBuildDir()
Returns:
the mavenBuildDir

setMavenBuildDir

public void setMavenBuildDir(String mavenBuildDir)
Parameters:
mavenBuildDir - the mavenBuildDir to set

getArtifactId

public String getArtifactId()
Returns:
the artifactId

setArtifactId

public void setArtifactId(String artifactId)
Parameters:
artifactId - the artifactId to set

getBuildNumber

public String getBuildNumber()
Returns:
the buildNumber

setBuildNumber

public void setBuildNumber(String buildNumber)
Parameters:
buildNumber - the buildNumber to set

getDate

public String getDate()
Returns:
the date

setDate

public void setDate(String date)
Parameters:
date - the date to set

getGroupId

public String getGroupId()
Returns:
the groupId

setGroupId

public void setGroupId(String groupId)
Parameters:
groupId - the groupId to set

getPersistency

public net.sf.mavenhist.persistency.IPersistency getPersistency()
Returns:
the persistency

setPersistency

public void setPersistency(net.sf.mavenhist.persistency.IPersistency persistency)
Parameters:
persistency - the persistency to set

getMavenDocsDest

public String getMavenDocsDest()
Returns:
the mavenDocsDest

setMavenDocsDest

public void setMavenDocsDest(String mavenDocsDest)
Parameters:
mavenDocsDest - the mavenDocsDest to set


Copyright © 2009. All Rights Reserved.