org.apache.maven.continuum.store
Class JdoContinuumStore

java.lang.Object
  extended by org.codehaus.plexus.logging.AbstractLogEnabled
      extended by org.apache.maven.continuum.store.AbstractContinuumStore
          extended by org.apache.maven.continuum.store.JdoContinuumStore
All Implemented Interfaces:
org.apache.maven.continuum.store.ContinuumStore, org.codehaus.plexus.logging.LogEnabled, org.codehaus.plexus.personality.plexus.lifecycle.phase.Initializable

public class JdoContinuumStore
extends AbstractContinuumStore
implements org.apache.maven.continuum.store.ContinuumStore, org.codehaus.plexus.personality.plexus.lifecycle.phase.Initializable

Version:
$Id: JdoContinuumStore.java 555514 2007-07-12 07:30:22Z evenisse $
Author:
Trygve Laugstøl, Brett Porter

Field Summary
 
Fields inherited from interface org.apache.maven.continuum.store.ContinuumStore
ROLE
 
Constructor Summary
JdoContinuumStore()
           
 
Method Summary
 void addBuildResult(org.apache.maven.continuum.model.project.Project project, org.apache.maven.continuum.model.project.BuildResult build)
           
 org.apache.maven.continuum.model.system.Installation addInstallation(org.apache.maven.continuum.model.system.Installation installation)
           
 org.apache.maven.continuum.model.system.Profile addProfile(org.apache.maven.continuum.model.system.Profile profile)
           
 org.apache.maven.continuum.model.project.ProjectGroup addProjectGroup(org.apache.maven.continuum.model.project.ProjectGroup group)
           
 org.apache.maven.continuum.model.project.Schedule addSchedule(org.apache.maven.continuum.model.project.Schedule schedule)
           
 org.apache.maven.continuum.model.system.SystemConfiguration addSystemConfiguration(org.apache.maven.continuum.model.system.SystemConfiguration systemConf)
           
 void closeStore()
           
 void eraseDatabase()
           
 java.util.Map getAggregatedProjectIdsAndBuildDefinitionIdsBySchedule(int scheduleId)
          get the combined list of projectId and build definitions, including the ones inherited by their project group
 java.util.List getAllBuildsForAProjectByDate(int projectId)
           
 java.util.List getAllInstallations()
           
 java.util.List getAllProfilesByName()
           
 java.util.Collection getAllProjectGroups()
           
 java.util.List getAllProjectGroupsWithBuildDetails()
           
 java.util.Collection getAllProjectGroupsWithProjects()
           
 java.util.Collection getAllProjectGroupsWithTheLot()
           
 java.util.List getAllProjectsByName()
           
 java.util.List getAllProjectsByNameWithBuildDetails()
           
 java.util.List getAllProjectsByNameWithDependencies()
           
 java.util.List getAllProjectsWithAllDetails()
           
 java.util.List getAllSchedulesByName()
           
 org.apache.maven.continuum.model.project.BuildDefinition getBuildDefinition(int buildDefinitionId)
           
 org.apache.maven.continuum.model.project.BuildResult getBuildResult(int buildId)
           
 java.util.List getBuildResultByBuildNumber(int projectId, int buildNumber)
           
 java.util.List getBuildResultsForProject(int projectId, long fromDate)
           
 java.util.Map getBuildResultsInSuccess()
           
 java.util.Map getBuildResultsInSuccessByProjectGroupId(int projectGroupId)
           
 java.util.List getBuildResultsInSuccessForProject(int projectId, long fromDate)
           
 org.apache.maven.continuum.model.project.BuildDefinition getDefaultBuildDefinition(int projectId)
           
 org.apache.maven.continuum.model.project.BuildDefinition getDefaultBuildDefinitionForProject(int projectId)
           
 org.apache.maven.continuum.model.project.BuildDefinition getDefaultBuildDefinitionForProjectGroup(int projectGroupId)
           
 java.util.Map getDefaultBuildDefinitions()
           
 org.apache.maven.continuum.model.system.Installation getInstallationByName(java.lang.String name)
           
 org.apache.maven.continuum.model.project.BuildResult getLatestBuildResultForBuildDefinition(int projectId, int buildDefinitionId)
           
 org.apache.maven.continuum.model.project.BuildResult getLatestBuildResultForProject(int projectId)
           
 java.util.Map getLatestBuildResults()
           
 java.util.Map getLatestBuildResultsByProjectGroupId(int projectGroupId)
           
 org.apache.maven.continuum.model.system.Profile getProfile(int profileId)
           
 org.apache.maven.continuum.model.system.Profile getProfileByName(java.lang.String profileName)
           
 org.apache.maven.continuum.model.project.Project getProject(int projectId)
           
 org.apache.maven.continuum.model.project.Project getProject(java.lang.String groupId, java.lang.String artifactId, java.lang.String version)
           
 org.apache.maven.continuum.model.project.Project getProjectByName(java.lang.String name)
           
 org.apache.maven.continuum.model.project.ProjectGroup getProjectGroup(int projectGroupId)
           
 org.apache.maven.continuum.model.project.ProjectGroup getProjectGroupByGroupId(java.lang.String groupId)
           
 org.apache.maven.continuum.model.project.ProjectGroup getProjectGroupByGroupIdWithBuildDetails(java.lang.String groupId)
           
 org.apache.maven.continuum.model.project.ProjectGroup getProjectGroupByGroupIdWithProjects(java.lang.String groupId)
           
 org.apache.maven.continuum.model.project.ProjectGroup getProjectGroupByProjectId(int projectId)
           
 java.util.Map getProjectGroupIdsAndBuildDefinitionsIdsBySchedule(int scheduleId)
           
 org.apache.maven.continuum.model.project.ProjectGroup getProjectGroupWithBuildDetailsByProjectGroupId(int projectGroupId)
           
 org.apache.maven.continuum.model.project.ProjectGroup getProjectGroupWithProjects(int projectGroupId)
           
 java.util.Map getProjectIdsAndBuildDefinitionsIdsBySchedule(int scheduleId)
           
 java.util.List getProjectsInGroup(int projectGroupId)
           
 java.util.List getProjectsInGroupWithDependencies(int projectGroupId)
           
 java.util.List getProjectsWithDependenciesByGroupId(int projectGroupId)
           
 org.apache.maven.continuum.model.project.Project getProjectWithAllDetails(int projectId)
           
 org.apache.maven.continuum.model.project.Project getProjectWithBuildDetails(int projectId)
           
 org.apache.maven.continuum.model.project.Project getProjectWithBuilds(int projectId)
           
 org.apache.maven.continuum.model.project.Project getProjectWithCheckoutResult(int projectId)
           
 org.apache.maven.continuum.model.project.Schedule getSchedule(int scheduleId)
           
 org.apache.maven.continuum.model.project.Schedule getScheduleByName(java.lang.String name)
           
 org.apache.maven.continuum.model.system.SystemConfiguration getSystemConfiguration()
           
 void initialize()
           
 void removeBuildDefinition(org.apache.maven.continuum.model.project.BuildDefinition buildDefinition)
           
 void removeBuildResult(org.apache.maven.continuum.model.project.BuildResult buildResult)
           
 void removeInstallation(org.apache.maven.continuum.model.system.Installation installation)
           
 void removeNotifier(org.apache.maven.continuum.model.project.ProjectNotifier notifier)
           
 void removeProfile(org.apache.maven.continuum.model.system.Profile profile)
           
 void removeProject(org.apache.maven.continuum.model.project.Project project)
           
 void removeProjectGroup(org.apache.maven.continuum.model.project.ProjectGroup projectGroup)
           
 void removeSchedule(org.apache.maven.continuum.model.project.Schedule schedule)
           
 org.apache.maven.continuum.model.project.BuildDefinition storeBuildDefinition(org.apache.maven.continuum.model.project.BuildDefinition buildDefinition)
           
 org.apache.maven.continuum.model.project.ProjectNotifier storeNotifier(org.apache.maven.continuum.model.project.ProjectNotifier notifier)
           
 org.apache.maven.continuum.model.project.Schedule storeSchedule(org.apache.maven.continuum.model.project.Schedule schedule)
           
 void updateBuildResult(org.apache.maven.continuum.model.project.BuildResult build)
           
 void updateInstallation(org.apache.maven.continuum.model.system.Installation installation)
           
 void updateProfile(org.apache.maven.continuum.model.system.Profile profile)
           
 void updateProject(org.apache.maven.continuum.model.project.Project project)
           
 void updateProjectGroup(org.apache.maven.continuum.model.project.ProjectGroup group)
           
 void updateSchedule(org.apache.maven.continuum.model.project.Schedule schedule)
           
 void updateSystemConfiguration(org.apache.maven.continuum.model.system.SystemConfiguration systemConf)
           
 
Methods inherited from class org.codehaus.plexus.logging.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JdoContinuumStore

public JdoContinuumStore()
Method Detail

initialize

public void initialize()
                throws org.codehaus.plexus.personality.plexus.lifecycle.phase.InitializationException
Specified by:
initialize in interface org.codehaus.plexus.personality.plexus.lifecycle.phase.Initializable
Throws:
org.codehaus.plexus.personality.plexus.lifecycle.phase.InitializationException

getProjectByName

public org.apache.maven.continuum.model.project.Project getProjectByName(java.lang.String name)
                                                                  throws org.apache.maven.continuum.store.ContinuumStoreException
Specified by:
getProjectByName in interface org.apache.maven.continuum.store.ContinuumStore
Throws:
org.apache.maven.continuum.store.ContinuumStoreException

getProject

public org.apache.maven.continuum.model.project.Project getProject(java.lang.String groupId,
                                                                   java.lang.String artifactId,
                                                                   java.lang.String version)
                                                            throws org.apache.maven.continuum.store.ContinuumStoreException
Specified by:
getProject in interface org.apache.maven.continuum.store.ContinuumStore
Throws:
org.apache.maven.continuum.store.ContinuumStoreException

getAggregatedProjectIdsAndBuildDefinitionIdsBySchedule

public java.util.Map getAggregatedProjectIdsAndBuildDefinitionIdsBySchedule(int scheduleId)
                                                                     throws org.apache.maven.continuum.store.ContinuumStoreException
get the combined list of projectId and build definitions, including the ones inherited by their project group

Specified by:
getAggregatedProjectIdsAndBuildDefinitionIdsBySchedule in interface org.apache.maven.continuum.store.ContinuumStore
Parameters:
scheduleId -
Returns:
Throws:
ContinuumStoreException

getProjectIdsAndBuildDefinitionsIdsBySchedule

public java.util.Map getProjectIdsAndBuildDefinitionsIdsBySchedule(int scheduleId)
                                                            throws org.apache.maven.continuum.store.ContinuumStoreException
Specified by:
getProjectIdsAndBuildDefinitionsIdsBySchedule in interface org.apache.maven.continuum.store.ContinuumStore
Throws:
org.apache.maven.continuum.store.ContinuumStoreException

getProjectGroupIdsAndBuildDefinitionsIdsBySchedule

public java.util.Map getProjectGroupIdsAndBuildDefinitionsIdsBySchedule(int scheduleId)
                                                                 throws org.apache.maven.continuum.store.ContinuumStoreException
Specified by:
getProjectGroupIdsAndBuildDefinitionsIdsBySchedule in interface org.apache.maven.continuum.store.ContinuumStore
Throws:
org.apache.maven.continuum.store.ContinuumStoreException

updateBuildResult

public void updateBuildResult(org.apache.maven.continuum.model.project.BuildResult build)
                       throws org.apache.maven.continuum.store.ContinuumStoreException
Specified by:
updateBuildResult in interface org.apache.maven.continuum.store.ContinuumStore
Throws:
org.apache.maven.continuum.store.ContinuumStoreException

addBuildResult

public void addBuildResult(org.apache.maven.continuum.model.project.Project project,
                           org.apache.maven.continuum.model.project.BuildResult build)
                    throws org.apache.maven.continuum.store.ContinuumStoreException,
                           org.apache.maven.continuum.store.ContinuumObjectNotFoundException
Specified by:
addBuildResult in interface org.apache.maven.continuum.store.ContinuumStore
Throws:
org.apache.maven.continuum.store.ContinuumStoreException
org.apache.maven.continuum.store.ContinuumObjectNotFoundException

getLatestBuildResultForProject

public org.apache.maven.continuum.model.project.BuildResult getLatestBuildResultForProject(int projectId)
Specified by:
getLatestBuildResultForProject in interface org.apache.maven.continuum.store.ContinuumStore

getLatestBuildResultForBuildDefinition

public org.apache.maven.continuum.model.project.BuildResult getLatestBuildResultForBuildDefinition(int projectId,
                                                                                                   int buildDefinitionId)
Specified by:
getLatestBuildResultForBuildDefinition in interface org.apache.maven.continuum.store.ContinuumStore

getLatestBuildResultsByProjectGroupId

public java.util.Map getLatestBuildResultsByProjectGroupId(int projectGroupId)
Specified by:
getLatestBuildResultsByProjectGroupId in interface org.apache.maven.continuum.store.ContinuumStore

getLatestBuildResults

public java.util.Map getLatestBuildResults()
Specified by:
getLatestBuildResults in interface org.apache.maven.continuum.store.ContinuumStore

removeBuildResult

public void removeBuildResult(org.apache.maven.continuum.model.project.BuildResult buildResult)
Specified by:
removeBuildResult in interface org.apache.maven.continuum.store.ContinuumStore

removeNotifier

public void removeNotifier(org.apache.maven.continuum.model.project.ProjectNotifier notifier)
                    throws org.apache.maven.continuum.store.ContinuumStoreException
Specified by:
removeNotifier in interface org.apache.maven.continuum.store.ContinuumStore
Throws:
org.apache.maven.continuum.store.ContinuumStoreException

storeNotifier

public org.apache.maven.continuum.model.project.ProjectNotifier storeNotifier(org.apache.maven.continuum.model.project.ProjectNotifier notifier)
                                                                       throws org.apache.maven.continuum.store.ContinuumStoreException
Specified by:
storeNotifier in interface org.apache.maven.continuum.store.ContinuumStore
Throws:
org.apache.maven.continuum.store.ContinuumStoreException

getDefaultBuildDefinition

public org.apache.maven.continuum.model.project.BuildDefinition getDefaultBuildDefinition(int projectId)
                                                                                   throws org.apache.maven.continuum.store.ContinuumStoreException,
                                                                                          org.apache.maven.continuum.store.ContinuumObjectNotFoundException
Specified by:
getDefaultBuildDefinition in interface org.apache.maven.continuum.store.ContinuumStore
Throws:
org.apache.maven.continuum.store.ContinuumStoreException
org.apache.maven.continuum.store.ContinuumObjectNotFoundException

getDefaultBuildDefinitionForProject

public org.apache.maven.continuum.model.project.BuildDefinition getDefaultBuildDefinitionForProject(int projectId)
                                                                                             throws org.apache.maven.continuum.store.ContinuumStoreException,
                                                                                                    org.apache.maven.continuum.store.ContinuumObjectNotFoundException
Specified by:
getDefaultBuildDefinitionForProject in interface org.apache.maven.continuum.store.ContinuumStore
Throws:
org.apache.maven.continuum.store.ContinuumStoreException
org.apache.maven.continuum.store.ContinuumObjectNotFoundException

getDefaultBuildDefinitionForProjectGroup

public org.apache.maven.continuum.model.project.BuildDefinition getDefaultBuildDefinitionForProjectGroup(int projectGroupId)
                                                                                                  throws org.apache.maven.continuum.store.ContinuumStoreException,
                                                                                                         org.apache.maven.continuum.store.ContinuumObjectNotFoundException
Specified by:
getDefaultBuildDefinitionForProjectGroup in interface org.apache.maven.continuum.store.ContinuumStore
Throws:
org.apache.maven.continuum.store.ContinuumStoreException
org.apache.maven.continuum.store.ContinuumObjectNotFoundException

getDefaultBuildDefinitions

public java.util.Map getDefaultBuildDefinitions()
Specified by:
getDefaultBuildDefinitions in interface org.apache.maven.continuum.store.ContinuumStore

getBuildDefinition

public org.apache.maven.continuum.model.project.BuildDefinition getBuildDefinition(int buildDefinitionId)
                                                                            throws org.apache.maven.continuum.store.ContinuumStoreException,
                                                                                   org.apache.maven.continuum.store.ContinuumObjectNotFoundException
Specified by:
getBuildDefinition in interface org.apache.maven.continuum.store.ContinuumStore
Throws:
org.apache.maven.continuum.store.ContinuumStoreException
org.apache.maven.continuum.store.ContinuumObjectNotFoundException

removeBuildDefinition

public void removeBuildDefinition(org.apache.maven.continuum.model.project.BuildDefinition buildDefinition)
                           throws org.apache.maven.continuum.store.ContinuumStoreException
Specified by:
removeBuildDefinition in interface org.apache.maven.continuum.store.ContinuumStore
Throws:
org.apache.maven.continuum.store.ContinuumStoreException

storeBuildDefinition

public org.apache.maven.continuum.model.project.BuildDefinition storeBuildDefinition(org.apache.maven.continuum.model.project.BuildDefinition buildDefinition)
                                                                              throws org.apache.maven.continuum.store.ContinuumStoreException
Specified by:
storeBuildDefinition in interface org.apache.maven.continuum.store.ContinuumStore
Throws:
org.apache.maven.continuum.store.ContinuumStoreException

getProjectGroup

public org.apache.maven.continuum.model.project.ProjectGroup getProjectGroup(int projectGroupId)
                                                                      throws org.apache.maven.continuum.store.ContinuumStoreException,
                                                                             org.apache.maven.continuum.store.ContinuumObjectNotFoundException
Specified by:
getProjectGroup in interface org.apache.maven.continuum.store.ContinuumStore
Throws:
org.apache.maven.continuum.store.ContinuumStoreException
org.apache.maven.continuum.store.ContinuumObjectNotFoundException

updateProjectGroup

public void updateProjectGroup(org.apache.maven.continuum.model.project.ProjectGroup group)
                        throws org.apache.maven.continuum.store.ContinuumStoreException
Specified by:
updateProjectGroup in interface org.apache.maven.continuum.store.ContinuumStore
Throws:
org.apache.maven.continuum.store.ContinuumStoreException

getAllProjectGroupsWithProjects

public java.util.Collection getAllProjectGroupsWithProjects()
Specified by:
getAllProjectGroupsWithProjects in interface org.apache.maven.continuum.store.ContinuumStore

getAllProjectGroups

public java.util.Collection getAllProjectGroups()
Specified by:
getAllProjectGroups in interface org.apache.maven.continuum.store.ContinuumStore

getAllProjectsByName

public java.util.List getAllProjectsByName()
Specified by:
getAllProjectsByName in interface org.apache.maven.continuum.store.ContinuumStore

getProjectsWithDependenciesByGroupId

public java.util.List getProjectsWithDependenciesByGroupId(int projectGroupId)
Specified by:
getProjectsWithDependenciesByGroupId in interface org.apache.maven.continuum.store.ContinuumStore

getAllProjectsByNameWithDependencies

public java.util.List getAllProjectsByNameWithDependencies()
Specified by:
getAllProjectsByNameWithDependencies in interface org.apache.maven.continuum.store.ContinuumStore

getAllProjectsByNameWithBuildDetails

public java.util.List getAllProjectsByNameWithBuildDetails()
Specified by:
getAllProjectsByNameWithBuildDetails in interface org.apache.maven.continuum.store.ContinuumStore

getAllSchedulesByName

public java.util.List getAllSchedulesByName()
Specified by:
getAllSchedulesByName in interface org.apache.maven.continuum.store.ContinuumStore

addSchedule

public org.apache.maven.continuum.model.project.Schedule addSchedule(org.apache.maven.continuum.model.project.Schedule schedule)
Specified by:
addSchedule in interface org.apache.maven.continuum.store.ContinuumStore

getScheduleByName

public org.apache.maven.continuum.model.project.Schedule getScheduleByName(java.lang.String name)
                                                                    throws org.apache.maven.continuum.store.ContinuumStoreException
Specified by:
getScheduleByName in interface org.apache.maven.continuum.store.ContinuumStore
Throws:
org.apache.maven.continuum.store.ContinuumStoreException

storeSchedule

public org.apache.maven.continuum.model.project.Schedule storeSchedule(org.apache.maven.continuum.model.project.Schedule schedule)
                                                                throws org.apache.maven.continuum.store.ContinuumStoreException
Specified by:
storeSchedule in interface org.apache.maven.continuum.store.ContinuumStore
Throws:
org.apache.maven.continuum.store.ContinuumStoreException

getAllProfilesByName

public java.util.List getAllProfilesByName()
Specified by:
getAllProfilesByName in interface org.apache.maven.continuum.store.ContinuumStore

getProfileByName

public org.apache.maven.continuum.model.system.Profile getProfileByName(java.lang.String profileName)
                                                                 throws org.apache.maven.continuum.store.ContinuumStoreException
Throws:
org.apache.maven.continuum.store.ContinuumStoreException

addProfile

public org.apache.maven.continuum.model.system.Profile addProfile(org.apache.maven.continuum.model.system.Profile profile)
Specified by:
addProfile in interface org.apache.maven.continuum.store.ContinuumStore

addInstallation

public org.apache.maven.continuum.model.system.Installation addInstallation(org.apache.maven.continuum.model.system.Installation installation)
Specified by:
addInstallation in interface org.apache.maven.continuum.store.ContinuumStore

getAllInstallations

public java.util.List getAllInstallations()
Specified by:
getAllInstallations in interface org.apache.maven.continuum.store.ContinuumStore

removeInstallation

public void removeInstallation(org.apache.maven.continuum.model.system.Installation installation)
                        throws org.apache.maven.continuum.store.ContinuumStoreException,
                               org.apache.maven.continuum.store.ContinuumObjectNotFoundException
Specified by:
removeInstallation in interface org.apache.maven.continuum.store.ContinuumStore
Throws:
org.apache.maven.continuum.store.ContinuumStoreException
org.apache.maven.continuum.store.ContinuumObjectNotFoundException

updateInstallation

public void updateInstallation(org.apache.maven.continuum.model.system.Installation installation)
                        throws org.apache.maven.continuum.store.ContinuumStoreException,
                               org.apache.maven.continuum.store.ContinuumObjectNotFoundException
Specified by:
updateInstallation in interface org.apache.maven.continuum.store.ContinuumStore
Throws:
org.apache.maven.continuum.store.ContinuumStoreException
org.apache.maven.continuum.store.ContinuumObjectNotFoundException

getInstallationByName

public org.apache.maven.continuum.model.system.Installation getInstallationByName(java.lang.String name)
                                                                           throws org.apache.maven.continuum.store.ContinuumStoreException,
                                                                                  org.apache.maven.continuum.store.ContinuumObjectNotFoundException
Specified by:
getInstallationByName in interface org.apache.maven.continuum.store.ContinuumStore
Throws:
org.apache.maven.continuum.store.ContinuumStoreException
org.apache.maven.continuum.store.ContinuumObjectNotFoundException

getAllBuildsForAProjectByDate

public java.util.List getAllBuildsForAProjectByDate(int projectId)
Specified by:
getAllBuildsForAProjectByDate in interface org.apache.maven.continuum.store.ContinuumStore

getProject

public org.apache.maven.continuum.model.project.Project getProject(int projectId)
                                                            throws org.apache.maven.continuum.store.ContinuumStoreException,
                                                                   org.apache.maven.continuum.store.ContinuumObjectNotFoundException
Specified by:
getProject in interface org.apache.maven.continuum.store.ContinuumStore
Throws:
org.apache.maven.continuum.store.ContinuumStoreException
org.apache.maven.continuum.store.ContinuumObjectNotFoundException

updateProject

public void updateProject(org.apache.maven.continuum.model.project.Project project)
                   throws org.apache.maven.continuum.store.ContinuumStoreException
Specified by:
updateProject in interface org.apache.maven.continuum.store.ContinuumStore
Throws:
org.apache.maven.continuum.store.ContinuumStoreException

updateProfile

public void updateProfile(org.apache.maven.continuum.model.system.Profile profile)
                   throws org.apache.maven.continuum.store.ContinuumStoreException
Specified by:
updateProfile in interface org.apache.maven.continuum.store.ContinuumStore
Throws:
org.apache.maven.continuum.store.ContinuumStoreException

updateSchedule

public void updateSchedule(org.apache.maven.continuum.model.project.Schedule schedule)
                    throws org.apache.maven.continuum.store.ContinuumStoreException
Specified by:
updateSchedule in interface org.apache.maven.continuum.store.ContinuumStore
Throws:
org.apache.maven.continuum.store.ContinuumStoreException

getProjectWithBuilds

public org.apache.maven.continuum.model.project.Project getProjectWithBuilds(int projectId)
                                                                      throws org.apache.maven.continuum.store.ContinuumStoreException,
                                                                             org.apache.maven.continuum.store.ContinuumObjectNotFoundException
Specified by:
getProjectWithBuilds in interface org.apache.maven.continuum.store.ContinuumStore
Throws:
org.apache.maven.continuum.store.ContinuumStoreException
org.apache.maven.continuum.store.ContinuumObjectNotFoundException

removeProfile

public void removeProfile(org.apache.maven.continuum.model.system.Profile profile)
Specified by:
removeProfile in interface org.apache.maven.continuum.store.ContinuumStore

removeSchedule

public void removeSchedule(org.apache.maven.continuum.model.project.Schedule schedule)
Specified by:
removeSchedule in interface org.apache.maven.continuum.store.ContinuumStore

getProjectWithCheckoutResult

public org.apache.maven.continuum.model.project.Project getProjectWithCheckoutResult(int projectId)
                                                                              throws org.apache.maven.continuum.store.ContinuumObjectNotFoundException,
                                                                                     org.apache.maven.continuum.store.ContinuumStoreException
Specified by:
getProjectWithCheckoutResult in interface org.apache.maven.continuum.store.ContinuumStore
Throws:
org.apache.maven.continuum.store.ContinuumObjectNotFoundException
org.apache.maven.continuum.store.ContinuumStoreException

getBuildResult

public org.apache.maven.continuum.model.project.BuildResult getBuildResult(int buildId)
                                                                    throws org.apache.maven.continuum.store.ContinuumObjectNotFoundException,
                                                                           org.apache.maven.continuum.store.ContinuumStoreException
Specified by:
getBuildResult in interface org.apache.maven.continuum.store.ContinuumStore
Throws:
org.apache.maven.continuum.store.ContinuumObjectNotFoundException
org.apache.maven.continuum.store.ContinuumStoreException

getBuildResultByBuildNumber

public java.util.List getBuildResultByBuildNumber(int projectId,
                                                  int buildNumber)
Specified by:
getBuildResultByBuildNumber in interface org.apache.maven.continuum.store.ContinuumStore

getBuildResultsForProject

public java.util.List getBuildResultsForProject(int projectId,
                                                long fromDate)
Specified by:
getBuildResultsForProject in interface org.apache.maven.continuum.store.ContinuumStore

getBuildResultsInSuccessForProject

public java.util.List getBuildResultsInSuccessForProject(int projectId,
                                                         long fromDate)
Specified by:
getBuildResultsInSuccessForProject in interface org.apache.maven.continuum.store.ContinuumStore

getBuildResultsInSuccessByProjectGroupId

public java.util.Map getBuildResultsInSuccessByProjectGroupId(int projectGroupId)
Specified by:
getBuildResultsInSuccessByProjectGroupId in interface org.apache.maven.continuum.store.ContinuumStore

getBuildResultsInSuccess

public java.util.Map getBuildResultsInSuccess()
Specified by:
getBuildResultsInSuccess in interface org.apache.maven.continuum.store.ContinuumStore

removeProject

public void removeProject(org.apache.maven.continuum.model.project.Project project)
Specified by:
removeProject in interface org.apache.maven.continuum.store.ContinuumStore

removeProjectGroup

public void removeProjectGroup(org.apache.maven.continuum.model.project.ProjectGroup projectGroup)
Specified by:
removeProjectGroup in interface org.apache.maven.continuum.store.ContinuumStore

getProjectsInGroup

public java.util.List getProjectsInGroup(int projectGroupId)
                                  throws org.apache.maven.continuum.store.ContinuumObjectNotFoundException,
                                         org.apache.maven.continuum.store.ContinuumStoreException
Specified by:
getProjectsInGroup in interface org.apache.maven.continuum.store.ContinuumStore
Throws:
org.apache.maven.continuum.store.ContinuumObjectNotFoundException
org.apache.maven.continuum.store.ContinuumStoreException

getProjectsInGroupWithDependencies

public java.util.List getProjectsInGroupWithDependencies(int projectGroupId)
                                                  throws org.apache.maven.continuum.store.ContinuumObjectNotFoundException,
                                                         org.apache.maven.continuum.store.ContinuumStoreException
Specified by:
getProjectsInGroupWithDependencies in interface org.apache.maven.continuum.store.ContinuumStore
Throws:
org.apache.maven.continuum.store.ContinuumObjectNotFoundException
org.apache.maven.continuum.store.ContinuumStoreException

getProjectGroupWithProjects

public org.apache.maven.continuum.model.project.ProjectGroup getProjectGroupWithProjects(int projectGroupId)
                                                                                  throws org.apache.maven.continuum.store.ContinuumObjectNotFoundException,
                                                                                         org.apache.maven.continuum.store.ContinuumStoreException
Specified by:
getProjectGroupWithProjects in interface org.apache.maven.continuum.store.ContinuumStore
Throws:
org.apache.maven.continuum.store.ContinuumObjectNotFoundException
org.apache.maven.continuum.store.ContinuumStoreException

getProjectGroupWithBuildDetailsByProjectGroupId

public org.apache.maven.continuum.model.project.ProjectGroup getProjectGroupWithBuildDetailsByProjectGroupId(int projectGroupId)
                                                                                                      throws org.apache.maven.continuum.store.ContinuumObjectNotFoundException,
                                                                                                             org.apache.maven.continuum.store.ContinuumStoreException
Specified by:
getProjectGroupWithBuildDetailsByProjectGroupId in interface org.apache.maven.continuum.store.ContinuumStore
Throws:
org.apache.maven.continuum.store.ContinuumObjectNotFoundException
org.apache.maven.continuum.store.ContinuumStoreException

getAllProjectGroupsWithBuildDetails

public java.util.List getAllProjectGroupsWithBuildDetails()
Specified by:
getAllProjectGroupsWithBuildDetails in interface org.apache.maven.continuum.store.ContinuumStore

getAllProjectsWithAllDetails

public java.util.List getAllProjectsWithAllDetails()
Specified by:
getAllProjectsWithAllDetails in interface org.apache.maven.continuum.store.ContinuumStore

getProjectWithAllDetails

public org.apache.maven.continuum.model.project.Project getProjectWithAllDetails(int projectId)
                                                                          throws org.apache.maven.continuum.store.ContinuumObjectNotFoundException,
                                                                                 org.apache.maven.continuum.store.ContinuumStoreException
Specified by:
getProjectWithAllDetails in interface org.apache.maven.continuum.store.ContinuumStore
Throws:
org.apache.maven.continuum.store.ContinuumObjectNotFoundException
org.apache.maven.continuum.store.ContinuumStoreException

getSchedule

public org.apache.maven.continuum.model.project.Schedule getSchedule(int scheduleId)
                                                              throws org.apache.maven.continuum.store.ContinuumObjectNotFoundException,
                                                                     org.apache.maven.continuum.store.ContinuumStoreException
Specified by:
getSchedule in interface org.apache.maven.continuum.store.ContinuumStore
Throws:
org.apache.maven.continuum.store.ContinuumObjectNotFoundException
org.apache.maven.continuum.store.ContinuumStoreException

getProfile

public org.apache.maven.continuum.model.system.Profile getProfile(int profileId)
                                                           throws org.apache.maven.continuum.store.ContinuumObjectNotFoundException,
                                                                  org.apache.maven.continuum.store.ContinuumStoreException
Specified by:
getProfile in interface org.apache.maven.continuum.store.ContinuumStore
Throws:
org.apache.maven.continuum.store.ContinuumObjectNotFoundException
org.apache.maven.continuum.store.ContinuumStoreException

addProjectGroup

public org.apache.maven.continuum.model.project.ProjectGroup addProjectGroup(org.apache.maven.continuum.model.project.ProjectGroup group)
Specified by:
addProjectGroup in interface org.apache.maven.continuum.store.ContinuumStore

getProjectGroupByGroupId

public org.apache.maven.continuum.model.project.ProjectGroup getProjectGroupByGroupId(java.lang.String groupId)
                                                                               throws org.apache.maven.continuum.store.ContinuumStoreException,
                                                                                      org.apache.maven.continuum.store.ContinuumObjectNotFoundException
Specified by:
getProjectGroupByGroupId in interface org.apache.maven.continuum.store.ContinuumStore
Throws:
org.apache.maven.continuum.store.ContinuumStoreException
org.apache.maven.continuum.store.ContinuumObjectNotFoundException

getProjectGroupByGroupIdWithBuildDetails

public org.apache.maven.continuum.model.project.ProjectGroup getProjectGroupByGroupIdWithBuildDetails(java.lang.String groupId)
                                                                                               throws org.apache.maven.continuum.store.ContinuumStoreException,
                                                                                                      org.apache.maven.continuum.store.ContinuumObjectNotFoundException
Specified by:
getProjectGroupByGroupIdWithBuildDetails in interface org.apache.maven.continuum.store.ContinuumStore
Throws:
org.apache.maven.continuum.store.ContinuumStoreException
org.apache.maven.continuum.store.ContinuumObjectNotFoundException

getProjectGroupByGroupIdWithProjects

public org.apache.maven.continuum.model.project.ProjectGroup getProjectGroupByGroupIdWithProjects(java.lang.String groupId)
                                                                                           throws org.apache.maven.continuum.store.ContinuumStoreException,
                                                                                                  org.apache.maven.continuum.store.ContinuumObjectNotFoundException
Specified by:
getProjectGroupByGroupIdWithProjects in interface org.apache.maven.continuum.store.ContinuumStore
Throws:
org.apache.maven.continuum.store.ContinuumStoreException
org.apache.maven.continuum.store.ContinuumObjectNotFoundException

getProjectWithBuildDetails

public org.apache.maven.continuum.model.project.Project getProjectWithBuildDetails(int projectId)
                                                                            throws org.apache.maven.continuum.store.ContinuumObjectNotFoundException,
                                                                                   org.apache.maven.continuum.store.ContinuumStoreException
Specified by:
getProjectWithBuildDetails in interface org.apache.maven.continuum.store.ContinuumStore
Throws:
org.apache.maven.continuum.store.ContinuumObjectNotFoundException
org.apache.maven.continuum.store.ContinuumStoreException

getProjectGroupByProjectId

public org.apache.maven.continuum.model.project.ProjectGroup getProjectGroupByProjectId(int projectId)
                                                                                 throws org.apache.maven.continuum.store.ContinuumObjectNotFoundException
Specified by:
getProjectGroupByProjectId in interface org.apache.maven.continuum.store.ContinuumStore
Throws:
org.apache.maven.continuum.store.ContinuumObjectNotFoundException

addSystemConfiguration

public org.apache.maven.continuum.model.system.SystemConfiguration addSystemConfiguration(org.apache.maven.continuum.model.system.SystemConfiguration systemConf)
Specified by:
addSystemConfiguration in interface org.apache.maven.continuum.store.ContinuumStore

updateSystemConfiguration

public void updateSystemConfiguration(org.apache.maven.continuum.model.system.SystemConfiguration systemConf)
                               throws org.apache.maven.continuum.store.ContinuumStoreException
Specified by:
updateSystemConfiguration in interface org.apache.maven.continuum.store.ContinuumStore
Throws:
org.apache.maven.continuum.store.ContinuumStoreException

getSystemConfiguration

public org.apache.maven.continuum.model.system.SystemConfiguration getSystemConfiguration()
                                                                                   throws org.apache.maven.continuum.store.ContinuumStoreException
Specified by:
getSystemConfiguration in interface org.apache.maven.continuum.store.ContinuumStore
Throws:
org.apache.maven.continuum.store.ContinuumStoreException

closeStore

public void closeStore()
Specified by:
closeStore in interface org.apache.maven.continuum.store.ContinuumStore

getAllProjectGroupsWithTheLot

public java.util.Collection getAllProjectGroupsWithTheLot()
Specified by:
getAllProjectGroupsWithTheLot in interface org.apache.maven.continuum.store.ContinuumStore

eraseDatabase

public void eraseDatabase()
Specified by:
eraseDatabase in interface org.apache.maven.continuum.store.ContinuumStore


Copyright © 2003-2007 Apache Software Foundation. All Rights Reserved.