org.apache.continuum.dao
Interface ProjectGroupDao

All Known Implementing Classes:
ProjectGroupDaoImpl

public interface ProjectGroupDao

Version:
$Id: ProjectGroupDao.java 1372260 2012-08-13 04:29:09Z brett $
Author:
Emmanuel Venisse

Method Summary
 ProjectGroup addProjectGroup(ProjectGroup group)
          Add the project group.
 Collection<ProjectGroup> getAllProjectGroups()
          Return all project groups.
 List<ProjectGroup> getAllProjectGroupsWithBuildDetails()
          Return all project groups with build details populated.
 Collection<ProjectGroup> getAllProjectGroupsWithProjects()
          Return all project groups with projects populated.
 Collection<ProjectGroup> getAllProjectGroupsWithTheLot()
          Return all project groups with all associated objects populated.
 ProjectGroup getProjectGroup(int projectGroupId)
          Return the project group associated to the project group id parameter.
 ProjectGroup getProjectGroupByGroupId(String groupId)
          Return the project group associated to the groupId parameter.
 ProjectGroup getProjectGroupByGroupIdWithBuildDetails(String groupId)
          Return the project group associated to the groupId parameter.
 ProjectGroup getProjectGroupByGroupIdWithProjects(String groupId)
          Return the project group associated to the groupId parameter.
 ProjectGroup getProjectGroupByProject(Project project)
          Return the project group of the project.
 ProjectGroup getProjectGroupByProjectId(int projectId)
          Return the project group of the project.
 List<ProjectGroup> getProjectGroupByRepository(int repositoryId)
           
 ProjectGroup getProjectGroupWithBuildDetailsByProjectGroupId(int projectGroupId)
          Return the project group with associated build details populated.
 ProjectGroup getProjectGroupWithProjects(int projectGroupId)
          Return the project group with projects populated.
 void removeProjectGroup(ProjectGroup projectGroup)
          Remove the project group.
 void updateProjectGroup(ProjectGroup projectGroup)
          Save the modified project group.
 

Method Detail

addProjectGroup

ProjectGroup addProjectGroup(ProjectGroup group)
Add the project group.

Parameters:
group - The project group
Returns:
The project group added

removeProjectGroup

void removeProjectGroup(ProjectGroup projectGroup)
Remove the project group.

Parameters:
projectGroup - the project group to remove

getProjectGroup

ProjectGroup getProjectGroup(int projectGroupId)
                             throws ContinuumStoreException,
                                    ContinuumObjectNotFoundException
Return the project group associated to the project group id parameter.

Parameters:
projectGroupId - The project group id
Returns:
The project group
Throws:
ContinuumStoreException - if the project group can't be obtain
ContinuumObjectNotFoundException

getProjectGroupByGroupId

ProjectGroup getProjectGroupByGroupId(String groupId)
                                      throws ContinuumStoreException
Return the project group associated to the groupId parameter.

Parameters:
groupId - The group id
Returns:
The project group
Throws:
ContinuumStoreException - if the project group can't be obtain

getProjectGroupByGroupIdWithBuildDetails

ProjectGroup getProjectGroupByGroupIdWithBuildDetails(String groupId)
                                                      throws ContinuumStoreException
Return the project group associated to the groupId parameter.

Parameters:
groupId - The group id
Returns:
The project group
Throws:
ContinuumStoreException - if the project group can't be obtain

getProjectGroupByGroupIdWithProjects

ProjectGroup getProjectGroupByGroupIdWithProjects(String groupId)
                                                  throws ContinuumStoreException
Return the project group associated to the groupId parameter.

Parameters:
groupId - The group id
Returns:
The project group
Throws:
ContinuumStoreException - if the project group can't be obtain

getProjectGroupByProjectId

ProjectGroup getProjectGroupByProjectId(int projectId)
                                        throws ContinuumObjectNotFoundException
Return the project group of the project.

Parameters:
projectId - The project id
Returns:
The project group
Throws:
ContinuumObjectNotFoundException - if the project group can't be obtain

getProjectGroupByProject

ProjectGroup getProjectGroupByProject(Project project)
                                      throws ContinuumObjectNotFoundException
Return the project group of the project.

Parameters:
project - The project
Returns:
The project group
Throws:
ContinuumObjectNotFoundException - if the project group can't be obtain

updateProjectGroup

void updateProjectGroup(ProjectGroup projectGroup)
                        throws ContinuumStoreException
Save the modified project group.

Parameters:
projectGroup - The project group
Throws:
ContinuumStoreException - if the project group can't be saved

getProjectGroupWithProjects

ProjectGroup getProjectGroupWithProjects(int projectGroupId)
                                         throws ContinuumStoreException
Return the project group with projects populated.

Parameters:
projectGroupId - The project group id
Returns:
All project groups
Throws:
ContinuumStoreException - if the project group can't be obtain

getAllProjectGroupsWithProjects

Collection<ProjectGroup> getAllProjectGroupsWithProjects()
Return all project groups with projects populated.

Returns:
All project groups

getAllProjectGroupsWithBuildDetails

List<ProjectGroup> getAllProjectGroupsWithBuildDetails()
Return all project groups with build details populated.

Returns:
All project groups

getAllProjectGroups

Collection<ProjectGroup> getAllProjectGroups()
Return all project groups.

Returns:
All project groups

getAllProjectGroupsWithTheLot

Collection<ProjectGroup> getAllProjectGroupsWithTheLot()
Return all project groups with all associated objects populated. This method return the majority of the database.

Returns:
all project groups

getProjectGroupWithBuildDetailsByProjectGroupId

ProjectGroup getProjectGroupWithBuildDetailsByProjectGroupId(int projectGroupId)
                                                             throws ContinuumStoreException
Return the project group with associated build details populated.

Parameters:
projectGroupId - the project group id
Returns:
the project group
Throws:
ContinuumStoreException - if the project group can't be obtain

getProjectGroupByRepository

List<ProjectGroup> getProjectGroupByRepository(int repositoryId)


Copyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.