org.apache.continuum.dao
Class ProjectGroupDaoImpl

java.lang.Object
  extended by org.apache.continuum.dao.AbstractDao
      extended by org.apache.continuum.dao.ProjectGroupDaoImpl
All Implemented Interfaces:
ProjectGroupDao

@Repository(value="projectGroupDao")
public class ProjectGroupDaoImpl
extends AbstractDao
implements ProjectGroupDao

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

Field Summary
 
Fields inherited from class org.apache.continuum.dao.AbstractDao
BUILD_RESULT_WITH_DETAILS_FETCH_GROUP, BUILD_TEMPLATE_BUILD_DEFINITIONS, PROJECT_ALL_DETAILS_FETCH_GROUP, PROJECT_BUILD_DETAILS_FETCH_GROUP, PROJECT_DEPENDENCIES_FETCH_GROUP, PROJECT_WITH_BUILDS_FETCH_GROUP, PROJECT_WITH_CHECKOUT_RESULT_FETCH_GROUP, PROJECTGROUP_PROJECTS_FETCH_GROUP
 
Constructor Summary
ProjectGroupDaoImpl()
           
 
Method Summary
 ProjectGroup addProjectGroup(ProjectGroup group)
          Add the project group.
 List<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.
 List<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 group)
          Save the modified project group.
 
Methods inherited from class org.apache.continuum.dao.AbstractDao
addObject, attachAndDelete, getAllObjectsDetached, getAllObjectsDetached, getAllObjectsDetached, getAllObjectsDetached, getContinuumPersistenceManagerFactory, getObjectById, getObjectById, getObjectFromQuery, getPersistenceManager, makePersistent, removeObject, rollback, updateObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProjectGroupDaoImpl

public ProjectGroupDaoImpl()
Method Detail

addProjectGroup

public ProjectGroup addProjectGroup(ProjectGroup group)
Description copied from interface: ProjectGroupDao
Add the project group.

Specified by:
addProjectGroup in interface ProjectGroupDao
Parameters:
group - The project group
Returns:
The project group added

removeProjectGroup

public void removeProjectGroup(ProjectGroup projectGroup)
Description copied from interface: ProjectGroupDao
Remove the project group.

Specified by:
removeProjectGroup in interface ProjectGroupDao
Parameters:
projectGroup - the project group to remove

getProjectGroup

public ProjectGroup getProjectGroup(int projectGroupId)
                             throws ContinuumStoreException
Description copied from interface: ProjectGroupDao
Return the project group associated to the project group id parameter.

Specified by:
getProjectGroup in interface ProjectGroupDao
Parameters:
projectGroupId - The project group id
Returns:
The project group
Throws:
ContinuumStoreException - if the project group can't be obtain

getProjectGroupByGroupId

public ProjectGroup getProjectGroupByGroupId(String groupId)
                                      throws ContinuumStoreException
Description copied from interface: ProjectGroupDao
Return the project group associated to the groupId parameter.

Specified by:
getProjectGroupByGroupId in interface ProjectGroupDao
Parameters:
groupId - The group id
Returns:
The project group
Throws:
ContinuumStoreException - if the project group can't be obtain

getProjectGroupByGroupIdWithBuildDetails

public ProjectGroup getProjectGroupByGroupIdWithBuildDetails(String groupId)
                                                      throws ContinuumStoreException
Description copied from interface: ProjectGroupDao
Return the project group associated to the groupId parameter.

Specified by:
getProjectGroupByGroupIdWithBuildDetails in interface ProjectGroupDao
Parameters:
groupId - The group id
Returns:
The project group
Throws:
ContinuumStoreException - if the project group can't be obtain

getProjectGroupByGroupIdWithProjects

public ProjectGroup getProjectGroupByGroupIdWithProjects(String groupId)
                                                  throws ContinuumStoreException
Description copied from interface: ProjectGroupDao
Return the project group associated to the groupId parameter.

Specified by:
getProjectGroupByGroupIdWithProjects in interface ProjectGroupDao
Parameters:
groupId - The group id
Returns:
The project group
Throws:
ContinuumStoreException - if the project group can't be obtain

getProjectGroupByProjectId

public ProjectGroup getProjectGroupByProjectId(int projectId)
                                        throws ContinuumObjectNotFoundException
Description copied from interface: ProjectGroupDao
Return the project group of the project.

Specified by:
getProjectGroupByProjectId in interface ProjectGroupDao
Parameters:
projectId - The project id
Returns:
The project group
Throws:
ContinuumObjectNotFoundException - if the project group can't be obtain

getProjectGroupByProject

public ProjectGroup getProjectGroupByProject(Project project)
                                      throws ContinuumObjectNotFoundException
Description copied from interface: ProjectGroupDao
Return the project group of the project.

Specified by:
getProjectGroupByProject in interface ProjectGroupDao
Parameters:
project - The project
Returns:
The project group
Throws:
ContinuumObjectNotFoundException - if the project group can't be obtain

updateProjectGroup

public void updateProjectGroup(ProjectGroup group)
                        throws ContinuumStoreException
Description copied from interface: ProjectGroupDao
Save the modified project group.

Specified by:
updateProjectGroup in interface ProjectGroupDao
Parameters:
group - The project group
Throws:
ContinuumStoreException - if the project group can't be saved

getProjectGroupWithProjects

public ProjectGroup getProjectGroupWithProjects(int projectGroupId)
                                         throws ContinuumStoreException
Description copied from interface: ProjectGroupDao
Return the project group with projects populated.

Specified by:
getProjectGroupWithProjects in interface ProjectGroupDao
Parameters:
projectGroupId - The project group id
Returns:
All project groups
Throws:
ContinuumStoreException - if the project group can't be obtain

getAllProjectGroupsWithProjects

public Collection<ProjectGroup> getAllProjectGroupsWithProjects()
Description copied from interface: ProjectGroupDao
Return all project groups with projects populated.

Specified by:
getAllProjectGroupsWithProjects in interface ProjectGroupDao
Returns:
All project groups

getAllProjectGroupsWithBuildDetails

public List<ProjectGroup> getAllProjectGroupsWithBuildDetails()
Description copied from interface: ProjectGroupDao
Return all project groups with build details populated.

Specified by:
getAllProjectGroupsWithBuildDetails in interface ProjectGroupDao
Returns:
All project groups

getAllProjectGroups

public List<ProjectGroup> getAllProjectGroups()
Description copied from interface: ProjectGroupDao
Return all project groups.

Specified by:
getAllProjectGroups in interface ProjectGroupDao
Returns:
All project groups

getAllProjectGroupsWithTheLot

public List<ProjectGroup> getAllProjectGroupsWithTheLot()
Description copied from interface: ProjectGroupDao
Return all project groups with all associated objects populated. This method return the majority of the database.

Specified by:
getAllProjectGroupsWithTheLot in interface ProjectGroupDao
Returns:
all project groups

getProjectGroupWithBuildDetailsByProjectGroupId

public ProjectGroup getProjectGroupWithBuildDetailsByProjectGroupId(int projectGroupId)
                                                             throws ContinuumStoreException
Description copied from interface: ProjectGroupDao
Return the project group with associated build details populated.

Specified by:
getProjectGroupWithBuildDetailsByProjectGroupId in interface ProjectGroupDao
Parameters:
projectGroupId - the project group id
Returns:
the project group
Throws:
ContinuumStoreException - if the project group can't be obtain

getProjectGroupByRepository

public List<ProjectGroup> getProjectGroupByRepository(int repositoryId)
Specified by:
getProjectGroupByRepository in interface ProjectGroupDao


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